summaryrefslogtreecommitdiff
path: root/make/gnu-dep.mk
diff options
context:
space:
mode:
Diffstat (limited to 'make/gnu-dep.mk')
-rw-r--r--make/gnu-dep.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/make/gnu-dep.mk b/make/gnu-dep.mk
new file mode 100644
index 000000000..e8c70c0cd
--- /dev/null
+++ b/make/gnu-dep.mk
@@ -0,0 +1,11 @@
+DFILES = $(patsubst %.cpp,%.d,$(wildcard *.cpp))
+DFILES += $(patsubst %.cpp,%.d,$(wildcard commands/*.cpp))
+DFILES += $(patsubst %.cpp,%.d,$(wildcard modes/*.cpp))
+DFILES += $(patsubst %.cpp,%.d,$(wildcard modules/*.cpp))
+DFILES += socketengines/$(SOCKETENGINE).d threadengines/threadengine_pthread.d
+
+all: $(DFILES)
+
+%.d: %.cpp
+ @../make/calcdep.pl $<
+ @echo -n .