From eb910456e2f01255f277fe060fef6f7dd3018cf7 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 1 Sep 2009 22:44:44 +0000 Subject: Move file inclusion logic into calcdep, and complain about ambiguous #include directives there git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11587 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/gnu-real.mk | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'make/gnu-real.mk') diff --git a/make/gnu-real.mk b/make/gnu-real.mk index 79fc2cd9e..e892295a6 100644 --- a/make/gnu-real.mk +++ b/make/gnu-real.mk @@ -1,16 +1,11 @@ -CORE_TARGS = $(patsubst %.cpp,%.o,$(wildcard *.cpp)) -MODE_TARGS = $(patsubst %.cpp,%.o,$(wildcard modes/*.cpp)) +CORE_TARGS = $(patsubst %.cpp,%.o,$(wildcard *.cpp) $(wildcard modes/*.cpp)) CMD_TARGS = $(patsubst %.cpp,%.so,$(wildcard commands/*.cpp)) MOD_TARGS = $(patsubst %.cpp,%.so,$(wildcard modules/*.cpp)) -CORE_TARGS += threadengines/threadengine_pthread.o -CORE_TARGS += socketengines/$(SOCKETENGINE).o -CORE_TARGS += $(MODE_TARGS) -MOD_TARGS += $(shell perl -e 'print join " ", grep s!([^/]+)/$$!$$1.so!, ') +CORE_TARGS += socketengines/$(SOCKETENGINE).o threadengines/threadengine_pthread.o +MOD_TARGS += $(shell perl -e 'print join " ", grep s!/?$$!.so!, grep -d, ') -DFILES = $(shell perl -e 'print join " ", grep s!([^/]+)\.cpp!.$$1.d!, <*.cpp>, , , , ') -DFILES += $(shell perl -e 'print join " ", grep s!([^/]+)/?$$!.$$1.d!, ') -DFILES += socketengines/.$(SOCKETENGINE).d threadengines/.threadengine_pthread.d +DFILES = $(shell ../make/calcdep.pl -all) all: inspircd commands modules @@ -22,10 +17,10 @@ inspircd: $(CORE_TARGS) $(RUNCC) -o $@ $(CORELDFLAGS) $(LDLIBS) $(CORE_TARGS) .%.d: %.cpp - @../make/calcdep.pl $< + @../make/calcdep.pl -file $< .%.d: % - @../make/calcdep.pl $< + @../make/calcdep.pl -file $< .PHONY: all alldep commands modules -- cgit v1.2.3