diff options
Diffstat (limited to '.Makefile.inc')
-rw-r--r-- | .Makefile.inc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/.Makefile.inc b/.Makefile.inc index d39c91b0d..feb8ed99b 100644 --- a/.Makefile.inc +++ b/.Makefile.inc @@ -51,7 +51,9 @@ SOCKETENGINE = @SOCKETENGINE@ # Default target @IFDEF M - _all: module + _all: module + @BSD_ONLY MODNAME = ${M:S/.so$//} + @GNU_ONLY MODNAME = $(M:.so=) @ENDIF all: finishmessage @@ -64,6 +66,10 @@ alldep: $(HEADER) allreal: alldep @$(MAKEENV) $(MAKE) -C src -f ../make/$(MAKESTYLE)-real.mk all +module: + @cd src; ../make/calcdep.pl modules/$(MODNAME).cpp + @$(MAKEENV) $(MAKE) -C src -f modules/.$(MODNAME).d modules/$(MODNAME).so + debug: @${MAKE} D=1 all @@ -121,10 +127,6 @@ install: allreal@EXTRA_DIR@ @echo "* REMEMBER TO EDIT YOUR CONFIG FILE *" @echo "*************************************" -module: - @BSD_ONLY @${MAKE} -C src/modules $(MAKEARGS) ${M:S/.so$//}.so - @GNU_ONLY @${MAKE} -C src/modules $(MAKEARGS) $(M:.so=).so - clean: @echo Cleaning... @rm -f src/inspircd src/modes/modeclasses.a |