From eda5d1668dbc8529453b7128c4ec2d51aeb1e783 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Fri, 15 Apr 2022 01:18:36 -0700 Subject: split code into multiple files --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b4dcc2c..83ec0a8 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3-70-g09d2