summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-15 01:18:36 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-15 01:18:36 -0700
commiteda5d1668dbc8529453b7128c4ec2d51aeb1e783 (patch)
tree2ee5072865a761c540be454abcb6871358be65ea /Makefile
parent3ffb56f167a1855731b50eebfc484b7cc5f21036 (diff)
downloaddartboat-eda5d1668dbc8529453b7128c4ec2d51aeb1e783.tar.gz
dartboat-eda5d1668dbc8529453b7128c4ec2d51aeb1e783.tar.xz
split code into multiple files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
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