]> git.pond.sub.org Git - empserver/blob - src/server/Makefile
Import of Empire 4.2.12
[empserver] / src / server / Makefile
1
2 #   Empire - A multi-player, client/server Internet based war game.
3 #   Copyright (C) 1986-2000, Dave Pare, Jeff Bailey, Thomas Ruschak,
4 #                            Ken Stevens, Steve McClure
5
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.
10
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.
15
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
19
20 #   ---
21
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.
25
26 # Makefile - Wolfpack, 1996
27
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.
30
31 include ../../build.conf
32 include ../make.src
33 include ../make.defs
34
35 OBJS = main.o idle.o lostitem.o marketup.o shutdown.o timestamp.o update.o
36
37 NTOBJS = main.obj idle.obj lostitem.obj marketup.obj shutdown.obj \
38         timestamp.obj update.obj
39
40 LIBDIR = $(SRCDIR)/lib
41
42 LIBS = $(LIBDIR)/libplayer.a \
43        $(LIBDIR)/libupdate.a \
44        $(LIBDIR)/libcommands.a \
45        $(LIBDIR)/libsubs.a \
46        $(LIBDIR)/libcommon.a \
47        $(LIBDIR)/libgen.a \
48        $(LIBDIR)/libglobal.a \
49        $(LIBDIR)/libas.a \
50        $(LIBDIR)/libempth.a \
51        $(LIBDIR)/liblwp.a
52
53 OSXLIBS = $(LIBDIR)/libplayer.a \
54        $(LIBDIR)/libupdate.a \
55        $(LIBDIR)/libcommands.a \
56        $(LIBDIR)/libsubs.a \
57        $(LIBDIR)/libcommon.a \
58        $(LIBDIR)/libgen.a \
59        $(LIBDIR)/libglobal.a \
60        $(LIBDIR)/libas.a \
61        $(LIBDIR)/libempth.a
62
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 \
70        $(LIBDIR)\libas.lib \
71        $(LIBDIR)\libempth.lib
72
73 all: emp_server
74
75 osx: empX_server
76
77 nt: emp_server.exe
78
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 \
83         $(NTOBJS) $(NTLIBS) \
84         kernel32.lib \
85         wsock32.lib \
86         libcmt.lib \
87         oldnames.lib
88
89 emp_server: $(OBJS) $(LIBS)
90         $(CC) -o emp_server $(OBJS) $(LIBS) $(LFLAGS) $(GLOBALPFLAGS) -lm -lc
91
92 empX_server: $(OBJS) $(OSXLIBS)
93         $(CC) -o emp_server $(OBJS) $(OSXLIBS) $(LFLAGS) $(GLOBALPFLAGS) -lm -lc
94
95 clean:
96         -(del /q $(NTOBJS))
97         -(del /q emp_server.exe)
98         -(del /q emp_server.ilk)
99         -(del /q emp_server.pdb)
100         -(rm -f $(OBJS))
101         -(rm -f emp_server)
102         -(rm -f $(OSXOBJS))
103         -(rm -f empX_server)
104
105 install:
106         -(mkdir $(EMPDIR)/bin)
107         -(cp emp_server $(EMPDIR)/bin)
108
109 OSXinstall:
110         -(mkdir $(EMPDIR)/bin)
111         -(cp empX_server $(EMPDIR)/bin)
112
113 ntinstall:
114         -(mkdir $(NTINSTDIR)\bin)
115         -(copy emp_server.exe $(NTINSTDIR)\bin)
116
117 include ../make.rules
118 include Makedepend