16 lines
277 B
Makefile
16 lines
277 B
Makefile
OBJ = $(patsubst src/%.c,%.o,$(wildcard src/*.c))
|
|
HEADERS = $(wildcard src/*.h)
|
|
CC = clang
|
|
FLAGS = -std=c17 -O2
|
|
LIB = -lncurses
|
|
|
|
%.o: src/%.c $(HEADERS)
|
|
$(CC) $(FLAGS) -c $< -o $@
|
|
|
|
tempus: $(OBJ)
|
|
$(CC) $(LIB) $(FLAGS) $^ -o $@
|
|
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm $(OBJ)
|