summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile3
2 files changed, 4 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 24bf1cb..d4b91b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
*.o
+*.d
camicro
out*.png
out
diff --git a/Makefile b/Makefile
index 792b835..a7ff439 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
libs := libusb-1.0 libpng16 sdl2 SDL2_ttf
CFLAGS := -g -Wall $(shell pkg-config $(libs) --cflags)
+CPPFLAGS := -MMD
LDLIBS := $(shell pkg-config $(libs) --libs)
SOURCES := \
@@ -18,3 +19,5 @@ camicro: $(SOURCES:%.c=%.o)
clean:
rm -f camicro $(SOURCES:%.c=%.o)
+
+-include $(SOURCES:%.c=%.d)