2 # Empire - A multi-player, client/server Internet based war game.
3 # Copyright (C) 1986-2005, Dave Pare, Jeff Bailey, Thomas Ruschak,
4 # Ken Stevens, Steve McClure
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 # See the "LEGAL", "LICENSE", "CREDITS" and "README" files for all the
23 # related information and legal notices. It is expected that any future
24 # projects/authors will amend these files as needed.
26 # Makefile - Wolfpack, 1996
28 # Note that these could have been listed 1 per line, but I chose to just
29 # stick them all together this way to shorten the file.
31 include ../../build.conf
35 OBJS = main.o idle.o lostitem.o marketup.o shutdown.o timestamp.o update.o
37 NTOBJS = main.obj idle.obj lostitem.obj marketup.obj shutdown.obj \
38 timestamp.obj update.obj
40 LIBDIR = $(SRCDIR)/lib
42 LIBS = $(LIBDIR)/libplayer.a \
43 $(LIBDIR)/libupdate.a \
44 $(LIBDIR)/libcommands.a \
46 $(LIBDIR)/libcommon.a \
48 $(LIBDIR)/libglobal.a \
50 $(LIBDIR)/libempth.a \
53 OSXLIBS = $(LIBDIR)/libplayer.a \
54 $(LIBDIR)/libupdate.a \
55 $(LIBDIR)/libcommands.a \
57 $(LIBDIR)/libcommon.a \
59 $(LIBDIR)/libglobal.a \
63 NTLIBS = $(LIBDIR)\libplayer.lib \
64 $(LIBDIR)\libupdate.lib \
65 $(LIBDIR)\libcommands.lib \
66 $(LIBDIR)\libsubs.lib \
67 $(LIBDIR)\libcommon.lib \
68 $(LIBDIR)\libgen.lib \
69 $(LIBDIR)\libglobal.lib \
71 $(LIBDIR)\libempth.lib
79 emp_server.exe: $(NTOBJS) $(NTLIBS)
80 link /OUT:emp_server.exe \
81 /PDB:emp_server.pdb /NOLOGO \
82 /NOD /DEBUG:full /DEBUGTYPE:cv /MACHINE:IX86 /NOLOGO \
90 emp_server: $(OBJS) $(LIBS)
91 $(CC) -o emp_server $(OBJS) $(LIBS) $(LFLAGS) $(GLOBALPFLAGS) -lm -lc
93 empX_server: $(OBJS) $(OSXLIBS)
94 $(CC) -o emp_server $(OBJS) $(OSXLIBS) $(LFLAGS) $(GLOBALPFLAGS) -lm -lc
98 -(del /q emp_server.exe)
99 -(del /q emp_server.ilk)
100 -(del /q emp_server.pdb)
107 -(mkdir $(EMPDIR)/bin)
108 -(cp emp_server $(EMPDIR)/bin)
111 -(mkdir $(EMPDIR)/bin)
112 -(cp empX_server $(EMPDIR)/bin)
115 -(mkdir $(NTINSTDIR)\bin)
116 -(copy emp_server.exe $(NTINSTDIR)\bin)
118 include ../make.rules