From 3324e62bae6f04e4f16f113b2e3352fae242f405 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Tue, 7 Oct 2008 23:38:25 +0000 Subject: Merge branch 'anopeng' into anopeng-config git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1428 5417fbe8-f217-4b02-8779-1006273d7864 --- src/Makefile | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 53153daf7..ea4b572c2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -36,7 +36,7 @@ distclean: spotless distclean_modules: clean_modules spotless services: $(OBJS) mod_version - $(CC) $(CFLAGS) $(OBJS) $(ANOPELIBS) $(MLIBS) -o $@ $(LDFLAGS) + @../run-cc.pl $(CC) $(CFLAGS) $(OBJS) $(ANOPELIBS) $(MLIBS) -o $@ $(LDFLAGS) $(OBJS): Makefile actions.o: actions.c $(INCLUDES) @@ -80,35 +80,39 @@ mysql.o: mysql.c $(INCLUDES) rdb.o: rdb.c $(INCLUDES) mod_version: mod_version.c $(INCLUDES) - $(CC) $(CDEFS) $(CFLAGS) $(MODULEFLAGS) -I../include/ -c mod_version.c - + @../run-cc.pl $(CC) $(CDEFS) $(CFLAGS) $(MODULEFLAGS) -I../include/ -c mod_version.c modules: DUMMY - (cd modules ; ./configure ; ${MAKE} ${MAKEARGS} all) + @modules/configure modules + @${MAKE} -C modules ${MAKEARGS} all protocols: DUMMY - (cd protocol ; ./configure ; ${MAKE} ${MAKEARGS} all) + @protocol/configure protocol + @${MAKE} -C protocol ${MAKEARGS} all + core: DUMMY - (cd core ; ./configure ; ${MAKE} ${MAKEARGS} all) + @core/configure core + @${MAKE} -C core ${MAKEARGS} all clean: clean_modules clean_protocols clean_core rm -f *.o services a.out + clean_modules: @touch modules/Makefile.inc # Horribly ugly... - (cd modules ; ${MAKE} clean) + @${MAKE} -C modules clean clean_protocols: @touch protocol/Makefile.inc - (cd protocol ; ${MAKE} clean) + @${MAKE} -C protocol clean clean_core: @touch core/Makefile.inc - (cd core ; ${MAKE} clean) + @${MAKE} -C core clean spotless: - (cd modules ; ${MAKE} distclean) - (cd protocol ; ${MAKE} distclean) - (cd core ; ${MAKE} distclean) + @${MAKE} -C modules distclean + @${MAKE} -C protocol distclean + @${MAKE} -C core distclean install: services test -d ${BINDEST} || mkdir ${BINDEST} -- cgit