diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,16 +1,20 @@ CFLAGS += -O2 -Wall -Wextra -Wpedantic +CPPFLAGS += -MMD -MP LDFLAGS += -lm -lncurses TARGET := dartbot SRC := $(wildcard *.c) OBJ := $(SRC:.c=.o) +DEP := $(OBJ:.o=.d) all: $(TARGET) $(TARGET): $(OBJ) clean: - rm -f $(TARGET) $(OBJ) + rm -f $(TARGET) $(OBJ) $(DEP) + +-include $(DEP) .PHONY: all clean |