Makefile (205B)
- .POSIX:
- EXE = day1
- CFLAGS = -std=c99 -lm -Wall -Wextra -D_POSIX_C_SOURCE=200809L
- all: $(EXE)
- .PHONY: clean
- clean:
- rm $(EXE)
- format: *.c
- clang-format -style=file -assume-filename=.clang-format -i *.c
git clone https://hacktivis.me/git/adventofcode.git
Makefile (205B)
- .POSIX:
- EXE = day1
- CFLAGS = -std=c99 -lm -Wall -Wextra -D_POSIX_C_SOURCE=200809L
- all: $(EXE)
- .PHONY: clean
- clean:
- rm $(EXE)
- format: *.c
- clang-format -style=file -assume-filename=.clang-format -i *.c