2023-02-25 22:36:52 +05:30
|
|
|
OBJ = $(patsubst src/%.c,%.o,$(wildcard src/*.c))
|
|
|
|
HEADERS = $(wildcard src/*.h)
|
|
|
|
CC = clang
|
2023-02-25 22:36:52 +05:30
|
|
|
FLAGS = -std=c17 -O2
|
2023-02-25 22:36:52 +05:30
|
|
|
LIB = -lncurses
|
|
|
|
|
|
|
|
%.o: src/%.c $(HEADERS)
|
|
|
|
$(CC) $(FLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
tempus: $(OBJ)
|
|
|
|
$(CC) $(LIB) $(FLAGS) $^ -o $@
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm $(OBJ)
|