]> git.pond.sub.org Git - empserver/blob - src/util/Makefile
Update copyright notice.
[empserver] / src / util / Makefile
1
2 #   Empire - A multi-player, client/server Internet based war game.
3 #   Copyright (C) 1986-2004, 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 LIBDIR = $(SRCDIR)/lib
36
37 LIBS = $(LIBDIR)/libsubs.a \
38        $(LIBDIR)/libcommon.a \
39        $(LIBDIR)/libgen.a \
40        $(LIBDIR)/libglobal.a
41
42 NTLIBS = $(LIBDIR)\libsubs.lib \
43        $(LIBDIR)\libcommon.lib \
44        $(LIBDIR)\libgen.lib \
45        $(LIBDIR)\libglobal.lib
46
47 OBJS = fairland.o files.o pconfig.o
48
49 NTOBJS = fairland.obj files.obj pconfig.obj
50
51 nt: ntfairland ntfiles ntpconfig
52
53 all: fairland files pconfig
54
55 osx: fairland files pconfig
56
57 ntfiles: files.obj
58         link /OUT:files.exe \
59         /NOD /DEBUG:full /DEBUGTYPE:cv /MACHINE:IX86 /NOLOGO \
60         files.obj $(NTLIBS) \
61         kernel32.lib \
62         wsock32.lib \
63         libcmt.lib \
64         oldnames.lib
65
66 files: files.o
67         $(CC) -o files $(IFLAGS) $(CFLAGS) files.o $(LIBS) $(LFLAGS) -lc
68
69 fairland: fairland.o
70         $(CC) -o fairland $(IFLAGS) $(CFLAGS) fairland.o $(LIBS) $(LFLAGS) -lc
71
72 ntfairland: fairland.obj
73         link /OUT:fairland.exe \
74         /NOD /DEBUG:full /DEBUGTYPE:cv /MACHINE:IX86 /NOLOGO \
75         fairland.obj $(NTLIBS) \
76         kernel32.lib \
77         wsock32.lib \
78         libcmt.lib \
79         oldnames.lib
80
81 pconfig: pconfig.o
82         $(CC) -o pconfig $(IFLAGS) $(CFLAGS) pconfig.o $(LIBS) $(LFLAGS) -lc
83
84 ntpconfig: pconfig.o
85         link /OUT:pconfig.exe \
86         /NOD /DEBUG:full /DEBUGTYPE:cv /MACHINE:IX86 /NOLOGO \
87         pconfig.obj $(NTLIBS) \
88         kernel32.lib \
89         wsock32.lib \
90         libcmt.lib \
91         oldnames.lib
92
93 clean:
94         -(rm -f files fairland pconfig $(OBJS))
95         -(del /q *.exe *.pdb *.ilk $(NTOBJS))
96
97 install:
98         -(mkdir $(EMPDIR)/bin)
99         -(cp files $(EMPDIR)/bin)
100         -(cp fairland $(EMPDIR)/bin)
101         -(cp pconfig $(EMPDIR)/bin)
102
103 ntinstall:
104         -(mkdir $(NTINSTDIR)\bin)
105         -(copy files.exe $(NTINSTDIR)\bin)
106         -(copy fairland.exe $(NTINSTDIR)\bin)
107         -(copy pconfig.exe $(NTINSTDIR)\bin)
108
109 include ../make.rules
110 include Makedepend