From facb1eb98f911b3e3811ad9cebaf221931ee9c7a Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 1 Sep 2009 15:06:11 +0000 Subject: Replace special treatment of spanningtree module directory with a generic directory build This allows "make M=m_spanningtree" to work on a clean build tree It also allows for other complex modules to be created (i.e. m_services) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11567 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/bsd-real.mk | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'make/bsd-real.mk') diff --git a/make/bsd-real.mk b/make/bsd-real.mk index 12211e7cb..f12efd2b8 100644 --- a/make/bsd-real.mk +++ b/make/bsd-real.mk @@ -1,22 +1,19 @@ CORE_TARGS != perl -e 'print join " ", grep s/\.cpp/.o/, <*.cpp>, ' CMD_TARGS != perl -e 'print join " ", grep s/\.cpp/.so/, ' MOD_TARGS != perl -e 'print join " ", grep s/\.cpp/.so/, ' -SPANNINGTREE_TARGS != perl -e 'print join " ", grep s/\.cpp/.o/, ' +MDIR_TARGS != perl -e 'print join " ", grep s!/?$$!.so!, ' CORE_TARGS += socketengines/$(SOCKETENGINE).o threadengines/threadengine_pthread.o -MOD_TARGS += modules/m_spanningtree.so -DFILES != perl -e 'print join " ", grep s!([^/]+)\.cpp!.$$1.d!, <*.cpp>, , , , ' -DFILES += socketengines/.$(SOCKETENGINE).d threadengines/.threadengine_pthread.d +DFILES != perl -e 'print join " ", grep s!([^/]+)\.cpp!.$$1.d!, <*.cpp>, , , , ' +DFILES2 != perl -e 'print join " ", grep s!([^/]+)/?$$!.$$1.d!, ' +DFILES += $(DFILES2) socketengines/.$(SOCKETENGINE).d threadengines/.threadengine_pthread.d all: inspircd commands modules commands: $(CMD_TARGS) -modules: $(MOD_TARGS) - -modules/m_spanningtree.so: $(SPANNINGTREE_TARGS) - $(RUNCC) $(FLAGS) -shared -export-dynamic -o $@ $(SPANNINGTREE_TARGS) +modules: $(MOD_TARGS) $(MDIR_TARGS) inspircd: $(CORE_TARGS) $(RUNCC) $(FLAGS) $(CORE_FLAGS) -o inspircd $(LDLIBS) $(CORE_TARGS) -- cgit v1.2.3