]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - make/bsd-real.mk
Use CXXFLAGS rather than nonstandard NICEFLAGS/FLAGS/etc
[user/henk/code/inspircd.git] / make / bsd-real.mk
1 CORE_TARGS != perl -e 'print join " ", grep s/\.cpp/.o/, <*.cpp>, <modes/*.cpp>'
2 CMD_TARGS != perl -e 'print join " ", grep s/\.cpp/.so/, <commands/*.cpp>'
3 MOD_TARGS != perl -e 'print join " ", grep s/\.cpp/.so/, <modules/*.cpp>'
4 MDIR_TARGS != perl -e 'print join " ", grep s!/?$$!.so!, <modules/m_*/>'
5
6 CORE_TARGS += socketengines/$(SOCKETENGINE).o threadengines/threadengine_pthread.o
7
8 DFILES != perl -e 'print join " ", grep s!([^/]+)\.cpp!.$$1.d!, <*.cpp>, <commands/*.cpp>, <modes/*.cpp>, <modules/*.cpp>, <modules/m_*/*.cpp>'
9 DFILES2 != perl -e 'print join " ", grep s!([^/]+)/?$$!.$$1.d!, <modules/m_*/>'
10 DFILES += $(DFILES2) socketengines/.$(SOCKETENGINE).d threadengines/.threadengine_pthread.d
11
12 all: inspircd commands modules
13
14 commands: $(CMD_TARGS)
15
16 modules: $(MOD_TARGS) $(MDIR_TARGS)
17
18 inspircd: $(CORE_TARGS)
19         $(RUNCC) -o $@ $(CORELDFLAGS) $(LDLIBS) $(CORE_TARGS)
20
21 .for FILE in $(DFILES)
22 .include "$(FILE)"
23 .endfor