summaryrefslogtreecommitdiff
path: root/Makefile-optimized
diff options
context:
space:
mode:
authorDennis Friis <peavey@placid.dk>2008-04-02 16:03:12 +0000
committerDennis Friis <peavey@placid.dk>2008-04-02 16:03:12 +0000
commit5fb275ef59b10587b44eb37b17f39cb0db96b147 (patch)
tree00ac538f8d8d2ab38dd3bbf374b96653ebcbb257 /Makefile-optimized
parent3856aa3b5ae48757dfbec4cf9a1142be3a8f2adb (diff)
downloadtmwa-5fb275ef59b10587b44eb37b17f39cb0db96b147.tar.gz
tmwa-5fb275ef59b10587b44eb37b17f39cb0db96b147.tar.bz2
tmwa-5fb275ef59b10587b44eb37b17f39cb0db96b147.tar.xz
tmwa-5fb275ef59b10587b44eb37b17f39cb0db96b147.zip
move makefiles to where they are supposed to be
Diffstat (limited to 'Makefile-optimized')
-rw-r--r--Makefile-optimized49
1 files changed, 49 insertions, 0 deletions
diff --git a/Makefile-optimized b/Makefile-optimized
new file mode 100644
index 0000000..63dc5ff
--- /dev/null
+++ b/Makefile-optimized
@@ -0,0 +1,49 @@
+# $Id: Makefile-optimized,v 1.7 2004/07/29 09:35:21 Yor Exp $
+
+CC = gcc -pipe
+PACKETDEF = -DPACKETVER=5 -DNEW_006b
+#PACKETDEF = -DPACKETVER=4 -DNEW_006b
+#PACKETDEF = -DPACKETVER=3 -DNEW_006b
+#PACKETDEF = -DPACKETVER=2 -DNEW_006b
+#PACKETDEF = -DPACKETVER=1 -DNEW_006b
+
+PLATFORM = $(shell uname)
+
+ifeq ($(findstring FreeBSD,$(PLATFORM)), FreeBSD)
+MAKE = gmake
+else
+MAKE = make
+endif
+
+ifeq ($(findstring CYGWIN,$(PLATFORM)), CYGWIN)
+OS_TYPE = -DCYGWIN
+CFLAGS = -O2 -Wall -DFD_SETSIZE=4096 -I../common $(PACKETDEF) $(OS_TYPE)
+else
+OS_TYPE =
+CFLAGS = -O2 -Wall -I../common $(PACKETDEF) $(OS_TYPE)
+endif
+
+MKDEF = CC="$(CC)" CFLAGS="$(CFLAGS)"
+
+
+all clean: src/common/GNUmakefile src/login/GNUmakefile src/char_unblocked/GNUmakefile src/map/GNUmakefile src/ladmin/GNUmakefile
+ cd src ; cd common ; $(MAKE) $(MKDEF) $@ ; cd ..
+ cd src ; cd login ; $(MAKE) $(MKDEF) $@ ; cd ..
+ cd src ; cd char_unblocked ; $(MAKE) $(MKDEF) $@ ; cd ..
+ cd src ; cd map ; $(MAKE) $(MKDEF) $@ ; cd ..
+ cd src ; cd ladmin ; $(MAKE) $(MKDEF) $@ ; cd ..
+
+tools:
+ cd tool && $(MAKE) $(MKDEF) && cd ..
+ $(CC) -o setupwizard setupwizard.c
+
+src/common/GNUmakefile: src/common/Makefile
+ sed -e 's/$$>/$$^/' src/common/Makefile > src/common/GNUmakefile
+src/login/GNUmakefile: src/login/Makefile
+ sed -e 's/$$>/$$^/' src/login/Makefile > src/login/GNUmakefile
+src/char_unblocked/GNUmakefile: src/char_unblocked/Makefile
+ sed -e 's/$$>/$$^/' src/char_unblocked/Makefile > src/char_unblocked/GNUmakefile
+src/map/GNUmakefile: src/map/Makefile
+ sed -e 's/$$>/$$^/' src/map/Makefile > src/map/GNUmakefile
+src/ladmin/GNUmakefile: src/ladmin/Makefile
+ sed -e 's/$$>/$$^/' src/ladmin/Makefile > src/ladmin/GNUmakefile