1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
CFLAGS += -O2 -Wall -Wextra -Wpedantic CPPFLAGS += -MMD -MP LDFLAGS += -lm -lncurses TARGET := dartboat SRC := $(wildcard *.c) OBJ := $(SRC:.c=.o) DEP := $(OBJ:.o=.d) all: $(TARGET) $(TARGET): $(OBJ) clean: rm -f $(TARGET) $(OBJ) $(DEP) -include $(DEP) .PHONY: all clean