tempus/Makefile
2023-06-03 15:45:04 -04:00

15 lines
310 B
Makefile

OBJ = $(patsubst src/%.c,%.o,$(wildcard src/*.c))
HEADERS = $(wildcard src/*.h)
FLAGS := $(CFLAGS) -std=c17 -O3 -pthread
LIB = -lncurses -lnotcurses -lnotcurses-core
%.o: src/%.c $(HEADERS)
$(CC) $(FLAGS) -c $< -o $@
tempus: $(OBJ)
$(CC) $(LIB) $(FLAGS) $^ -o $@
.PHONY: clean
clean:
rm $(OBJ)