]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - .Makefile.inc
Add directory change to unit-cc, to fix the immensely stupid BSD make behavior of...
[user/henk/code/inspircd.git] / .Makefile.inc
index 4f619feac17b996d6ae26c36990de876f772fe9c..ef1610ab5ace94d65eceb43d801a4cd5b63cc13d 100644 (file)
@@ -41,6 +41,8 @@ INSTMODE = 0755
   LDLIBS += -ldl
   SHARED = -bundle -twolevel_namespace -undefined dynamic_lookup
   CORELDFLAGS = -dynamic -bind_at_load -L.
+@ELSIFEQ $(SYSTEM) interix
+  CXXFLAGS += -D_ALL_SOURCE -I/usr/local/include
 @ENDIF 
 
 @IFDEF D
@@ -65,7 +67,7 @@ CXXFLAGS += -Iinclude
 @ELSE
     @GNU_ONLY MAKEFLAGS += --silent
     @BSD_ONLY MAKE += -s
-    RUNCC = $(SOURCEPATH)/make/run-cc.pl $(CC)
+    RUNCC = perl $(SOURCEPATH)/make/run-cc.pl $(CC)
 @ENDIF
 
 @DO_EXPORT RUNCC CXXFLAGS CC LDLIBS PICLDFLAGS VERBOSE SOCKETENGINE CORELDFLAGS
@@ -155,6 +157,10 @@ install: target@EXTRA_DIR@
        @echo "* REMEMBER TO EDIT YOUR CONFIG FILE *"
        @echo "*************************************"
 
+@GNU_ONLY RCS_FILES = $(wildcard .git/index .svn/entries)
+@GNU_ONLY GNUmakefile: .Makefile.inc configure .config.cache $(RCS_FILES)
+@GNU_ONLY      ./configure -update
+
 clean:
        @echo Cleaning...
        @rm -f src/inspircd src/modes/modeclasses.a
@@ -186,6 +192,7 @@ configureclean:
        rm -f BSDmakefile
        rm -f GNUmakefile
        rm -f include/inspircd_config.h
+       rm -f include/inspircd_version.h
        rm -f include/inspircd_se_config.h
 
 distclean: clean configureclean
@@ -198,7 +205,6 @@ help:
        @echo 'Flags:'
        @echo ' V=1       Show the full command being executed instead of "BUILD: dns.cpp"'
        @echo ' D=1       Enable debug build, for module development or crash tracing'
-       @echo ' O=objdir  Use an alternate location for storing object files'
        @echo ' -j <N>    Run a parallel build using N jobs'
        @echo ''
        @echo 'User targets:'
@@ -207,10 +213,9 @@ help:
        @echo '           Currently installs to ${BASE}'
        @echo ' debug     Compile a debug build. Equivalent to "make D=1 all"'
        @echo ''
-       @echo ' M=m_foo   Builds a single module'
-       @echo ' T=target  Builds a user-specified target'
-       @echo '           Target can be a file path relative to src/, or one of:'
-       @echo '            inspircd  commands  modules'
+       @echo ' M=m_foo   Builds a single module (cmd_foo also works here)'
+       @echo ' T=target  Builds a user-specified target, such as "inspircd" or "modules"'
+       @echo '           Other targets are specified by their path in the build directory'
        @echo '           Multiple targets may be separated by a space'
        @echo ''
        @echo ' clean     Cleans object files produced by the compile'