16 lines
295 B
Makefile
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)
|