2022-07-27 01:16:32 +05:30
|
|
|
OBJ = $(patsubst src/%.c,%.o,$(wildcard src/*.c))
|
|
|
|
HEADERS = $(wildcard src/*.h)
|
2023-10-19 04:12:43 +05:30
|
|
|
CFLAGS += -std=c17 -pthread -O2
|
|
|
|
LIB = -lncurses -lnotcurses-core -lm
|
2022-07-27 01:16:32 +05:30
|
|
|
|
|
|
|
%.o: src/%.c $(HEADERS)
|
2023-10-19 04:12:43 +05:30
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
2022-07-27 01:16:32 +05:30
|
|
|
|
|
|
|
2048: $(OBJ)
|
2023-10-19 04:12:43 +05:30
|
|
|
$(CC) $(LIB) $(CFLAGS) $^ -o $@
|
2022-07-27 01:16:32 +05:30
|
|
|
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
$(RM) $(OBJ)
|