diff options
-rwxr-xr-x | configure | 21 | ||||
-rw-r--r-- | src/Makefile.FreeBSD | 2 | ||||
-rw-r--r-- | src/Makefile.Linux | 2 | ||||
-rw-r--r-- | src/modules/Makefile.FreeBSD | 8 | ||||
-rw-r--r-- | src/modules/Makefile.Linux | 8 |
5 files changed, 14 insertions, 27 deletions
@@ -263,7 +263,7 @@ echo "#define SYSLOG_FACILITY LOG_DAEMON" >>include/inspircd_config.h echo "#define SYSLOG_LEVEL LOG_NOTICE" >>include/inspircd_config.h echo "#define CONFIG_FILE \"$CONFIG_DIR/inspircd.conf\"" >>include/inspircd_config.h echo "#define MOD_PATH \"$MODULE_DIR\"" >>include/inspircd_config.h -echo "#define VERSION \"`sh ./version.sh`\"" >>include/inspircd_config.h +echo "#define VERSION \"`sh ./src/version.sh`\"" >>include/inspircd_config.h echo "#define MAXCLIENTS $MAX_CLIENT" >>include/inspircd_config.h echo "#define NICKMAX $NICK_LENGT" >>include/inspircd_config.h echo "#define CHANMAX $CHAN_LENGT" >>include/inspircd_config.h @@ -272,26 +272,13 @@ echo "#define MAXMODES $MAXI_MODES" >>include/inspircd_config.h echo "#define SYSTEM \"`uname -n -s -r`\"" >>include/inspircd_config.h echo "#define MAXBUF 514">>include/inspircd_config.h -touch inspircd_config.h -rm -rf *.o core $MOD_PATH/*.so - -echo "" -echo -e "\033[1;32mDetecting modules...\033[0;37m" -MODLINE="" -for module in m_*.cpp ; do - mod=`perl -e '$a='$module';print substr($a,0,length($a)-3)'` - dmod=`perl -e '$a="'$mod'";while (length($a)<30) { $a = "$a ";}; print $a;'` - desc=`perl -e 'open (F, "<'$module'");local($/)=undef;$blah=<F>;$blah=~/\$ModDesc(.*)\*\//;print substr($1,13,length($1));close F;'` - echo -e "Found \033[1;32m$dmod\033[0;37m$desc" - MODLINE="$mod.so $MODLINE" -done -echo "" +touch include/inspircd_config.h echo -e "Writing \033[1;37m$OSNAME\033[0;37m makefile" cp -f Makefile.$OSNAME Makefile -cp -f src/Makefile.$OSNAME src/Makefile.$OSNAME -cp -f src/modules/Makefile.$OSNAME src/modules/Makefile.$OSNAME +cp -f src/Makefile.$OSNAME src/Makefile +cp -f src/modules/Makefile.$OSNAME src/modules/Makefile echo "" echo "Do you want to compile the IRCd binaries?" diff --git a/src/Makefile.FreeBSD b/src/Makefile.FreeBSD index 0b7a8b8c9..849a0ba61 100644 --- a/src/Makefile.FreeBSD +++ b/src/Makefile.FreeBSD @@ -16,5 +16,5 @@ CXXFLAGS = -I$../../include ${FLAGS} all: inspircd inspircd: $(OBJS) - $(CXX) -rdynamic $^ -o $@ $(LDLIBS) + $(CXX) -rdynamic $^ -o $@ $(LDLIBS) diff --git a/src/Makefile.Linux b/src/Makefile.Linux index 0b7a8b8c9..849a0ba61 100644 --- a/src/Makefile.Linux +++ b/src/Makefile.Linux @@ -16,5 +16,5 @@ CXXFLAGS = -I$../../include ${FLAGS} all: inspircd inspircd: $(OBJS) - $(CXX) -rdynamic $^ -o $@ $(LDLIBS) + $(CXX) -rdynamic $^ -o $@ $(LDLIBS) diff --git a/src/modules/Makefile.FreeBSD b/src/modules/Makefile.FreeBSD index af59f2b72..2dbb2da29 100644 --- a/src/modules/Makefile.FreeBSD +++ b/src/modules/Makefile.FreeBSD @@ -7,10 +7,10 @@ MODS2 = `/bin/ls *.cpp` MODULES2 = $(MODS2:.cpp=.so) main: - rm -f .make ; \ - for i in $(MODULES) ; do \ - echo "$(CXX) $(CXXFLAGS) -shared -o $$i `echo $$i | sed 's/.so/.cpp/'`">>.make ; \ - done ; chmod u+x .make ; ./.make + rm -f .make ; \ + for i in $(MODULES) ; do \ + echo "$(CXX) $(CXXFLAGS) -shared -o $$i `echo $$i | sed 's/.so/.cpp/'`">>.make ; \ + done ; chmod u+x .make ; ./.make all: main diff --git a/src/modules/Makefile.Linux b/src/modules/Makefile.Linux index af59f2b72..2dbb2da29 100644 --- a/src/modules/Makefile.Linux +++ b/src/modules/Makefile.Linux @@ -7,10 +7,10 @@ MODS2 = `/bin/ls *.cpp` MODULES2 = $(MODS2:.cpp=.so) main: - rm -f .make ; \ - for i in $(MODULES) ; do \ - echo "$(CXX) $(CXXFLAGS) -shared -o $$i `echo $$i | sed 's/.so/.cpp/'`">>.make ; \ - done ; chmod u+x .make ; ./.make + rm -f .make ; \ + for i in $(MODULES) ; do \ + echo "$(CXX) $(CXXFLAGS) -shared -o $$i `echo $$i | sed 's/.so/.cpp/'`">>.make ; \ + done ; chmod u+x .make ; ./.make all: main |