2023-02-25 22:36:52 +05:30
|
|
|
OBJ = $(patsubst src/%.c,%.o,$(wildcard src/*.c))
|
|
|
|
HEADERS = $(wildcard src/*.h)
|
2023-06-04 01:15:04 +05:30
|
|
|
FLAGS := $(CFLAGS) -std=c17 -O3 -pthread
|
2023-02-25 22:36:53 +05:30
|
|
|
LIB = -lncurses -lnotcurses -lnotcurses-core
|
2023-02-25 22:36:52 +05:30
|
|
|
|
|
|
|
%.o: src/%.c $(HEADERS)
|
|
|
|
$(CC) $(FLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
tempus: $(OBJ)
|
|
|
|
$(CC) $(LIB) $(FLAGS) $^ -o $@
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm $(OBJ)
|