tempus/Makefile

16 lines
295 B
Makefile
Raw Normal View History

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)