diff options
author | frostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-03 19:38:01 +0000 |
---|---|---|
committer | frostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-03 19:38:01 +0000 |
commit | fb947d5615d96922efac7ecda941caab77dceb0f (patch) | |
tree | b590b55ad41b07853e2826aa9cc75c0102ebf1ec /.Makefile.inc | |
parent | e0f00618c3c7440de7ed091a93e016175dc8c3b5 (diff) |
Fixed bugs in ./configure
Created new Makefile Generator
Removed some redundant makefiles.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@365 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to '.Makefile.inc')
-rw-r--r-- | .Makefile.inc | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.Makefile.inc b/.Makefile.inc new file mode 100644 index 000000000..6899d35d8 --- /dev/null +++ b/.Makefile.inc @@ -0,0 +1,41 @@ +echo "# Insp Main Makefile" > Makefile +echo "#" >> Makefile +echo "# (C) ChatSpike development team" >> Makefile +echo "#####" >> Makefile +echo "# MAKEFILE DYNAMICLY GENERATED BY ./configure" >> Makefile +echo "# DO NOT MODIFY UNLESS YOU KNOW WHAT YOU ARE DOING!" >> Makefile +echo "#####" >> Makefile +echo "# Original Makefile & ./configure by <Craig@ChatSpike.net>" >> Makefile +echo "# Small modifications by <brain@ChatSpike.net>" >> Makefile +echo "#" >>Makefile +echo "" +echo "CC = g++" >> Makefile +echo "PROGS = inspircd" >> Makefile +echo "FLAGS = $FLAGS" >> Makefile +echo "LDLIBS = $LDLIBS" >> Makefile +echo "CONPATH = $CONFIG_DIR" >> Makefile +echo "MODPATH = $MODULE_DIR" >> Makefile +echo "BINPATH = $BINARY_DIR" >> Makefile +echo "MODULES =$MODULES" >> Makefile +echo "MAKEARGS = 'PROGS=\${PROGS}' 'FLAGS=\${FLAGS}' 'CC=\${CC}' 'LDLIBS=\${LDLIBS}' 'MODULES=\${MODULES}'" >> Makefile +echo "" >> Makefile +echo "all : ircd mods config" >> Makefile +echo "" >> Makefile +echo "mods:" >> Makefile +echo " make -C src/modules DIRNAME="src/modules" \$(MAKEARGS)" >> Makefile +echo " mv src/modules/*.so \$(MODPATH)" >> Makefile +echo "" >> Makefile +echo "ircd:" >> Makefile +echo " make -C src DIRNAME="src" \$(MAKEARGS)" >> Makefile +echo " cp src/inspircd \$(BINPATH)" >> Makefile +echo "" >> Makefile +echo "config:" >> Makefile +echo " cp conf/* \$(CONPATH)" >> Makefile +echo "clean:" >> Makefile +echo " rm -rf src/*.o" >> Makefile +echo " rm -rf src/modules/*.o" >> Makefile +echo "" >> Makefile +echo "modclean:" >> Makefile +echo " rm -rf modules/*.so" >> Makefile +echo "" >> Makefile +echo "squeakyclean: modclean clean" >> Makefile |