From 26e77466107b72fdd9a0f382b80664876155713f Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 10 Nov 2019 14:37:01 +0100 Subject: Use -MMD for dependencies --- .gitignore | 1 + Makefile | 3 +++ 2 files changed, 4 insertions(+) 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) -- cgit v1.2.3