]> git.pond.sub.org Git - empserver/blob - src/client/Makefile
Update copyright notice.
[empserver] / src / client / 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 #
27 # Empire front end Makefile
28 # (server mode)
29 #
30
31 include ../../build.conf
32 include ../make.src
33 include ../make.defs
34
35 CFILES = expect.c globals.c handle.c host.c \
36         ioqueue.c ipglob.c login.c main.c queue.c saveargv.c \
37         servcmd.c serverio.c tags.c termio.c termlib.c
38 OFILES = expect.o globals.o handle.o host.o \
39         ioqueue.o ipglob.o login.o main.o queue.o saveargv.o \
40         servcmd.o serverio.o tags.o termio.o termlib.o
41 OBJFILES = expect.obj globals.obj handle.obj host.obj \
42         ioqueue.obj ipglob.obj login.obj main.obj queue.obj saveargv.obj \
43         servcmd.obj serverio.obj tags.obj termio.obj termlib.obj
44
45 CLIENTLIBS= -ltermlib
46
47 #
48 # Change this line to the compiler you are going to use.
49 #
50
51 all: emp_client
52
53 osx: emp_client
54
55 emp_client: $(OFILES) 
56         $(CC) -o emp_client $(OFILES) $(LFLAGS) $(CLIENTLIBS) -lc
57
58 nt: emp_client.exe
59
60 emp_client.exe: $(OBJFILES) $(CFILES)
61         link /OUT:emp_client.exe \
62         /PDB:emp_client.pdb  /NOLOGO \
63         /NOD /DEBUG:full /DEBUGTYPE:cv /MACHINE:IX86 /NOLOGO \
64         $(OBJFILES) \
65         kernel32.lib \
66         wsock32.lib \
67         libcmt.lib \
68         oldnames.lib
69
70 #       cl /D_WIN32 /Feemp_client.exe $(CFILES) wsock32.lib
71
72 dgux: $(OFILES) 
73         $(CC) $(CFLAGS) -dn -o emp_client $(OFILES) -lsocket -lnsl -ltermcap -lc
74
75 solaris:
76         $(MAKE) emp_client CLIENTLIBS="-lsocket -lnsl -ltermcap -lc"
77
78 hpux:
79         $(MAKE) emp_client CLIENTLIBS=-ltermcap
80
81 clean:
82         -(rm -f $(OFILES))
83         -(rm -f emp_client)
84         -(del /q $(OBJFILES))
85         -(del /q emp_client.exe)
86         -(del /q emp_client.ilk)
87         -(del /q emp_client.pdb)
88
89 install:
90         -(mkdir $(EMPDIR)/bin)
91         cp emp_client $(EMPDIR)/bin
92
93 ntinstall:
94         -(mkdir $(NTINSTDIR)\bin)
95         copy emp_client.exe $(NTINSTDIR)\bin
96
97 include ../make.rules
98 include Makedepend
99