summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2019-11-10 14:37:01 +0100
committerNicolas Schodet2019-11-14 00:41:59 +0100
commit26e77466107b72fdd9a0f382b80664876155713f (patch)
tree213b191c984ab56743409e2182abf50e6aeff694
parent1bdf71f47e5f9f75308c5fef664814c2c125f305 (diff)
Use -MMD for dependencies
-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)