diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-15 01:18:36 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-15 01:18:36 -0700 |
commit | eda5d1668dbc8529453b7128c4ec2d51aeb1e783 (patch) | |
tree | 2ee5072865a761c540be454abcb6871358be65ea /Makefile | |
parent | 3ffb56f167a1855731b50eebfc484b7cc5f21036 (diff) | |
download | dartboat-eda5d1668dbc8529453b7128c4ec2d51aeb1e783.tar.gz dartboat-eda5d1668dbc8529453b7128c4ec2d51aeb1e783.tar.xz |
split code into multiple files
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 |