tempus/Makefile
0xf8 db95c6f0d0
Initial commit
Signed-off-by: 0xf8 <0xf8.dev@proton.me>
2023-02-25 12:06:52 -05:00

16 lines
295 B
Makefile

OBJ = $(patsubst src/%.c,%.o,$(wildcard src/*.c))
HEADERS = $(wildcard src/*.h)
CC = clang
FLAGS = -g -std=c17 -fsanitize=address
LIB = -lncurses
%.o: src/%.c $(HEADERS)
$(CC) $(FLAGS) -c $< -o $@
tempus: $(OBJ)
$(CC) $(LIB) $(FLAGS) $^ -o $@
.PHONY: clean
clean:
rm $(OBJ)