]> git.pond.sub.org Git - empserver/blob - src/client/Makefile
9621f2fc9fb5e791e33fc3fba4539b81a1839795
[empserver] / src / client / Makefile
1
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
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 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 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 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         cl $(CFLAGS) /Feemp_client.exe $(OBJFILES) wsock32.lib advapi32.lib
62
63 dgux: $(OFILES) 
64         $(CC) $(CFLAGS) -dn -o emp_client $(OFILES) -lsocket -lnsl -ltermcap -lc
65
66 solaris:
67         $(MAKE) emp_client CLIENTLIBS="-lsocket -lnsl -ltermcap -lc"
68
69 hpux:
70         $(MAKE) emp_client CLIENTLIBS=-ltermcap
71
72 clean:
73         -(rm -f $(OFILES))
74         -(rm -f emp_client)
75         -(del /q $(OBJFILES))
76         -(del /q emp_client.exe)
77         -(del /q emp_client.ilk)
78         -(del /q emp_client.pdb)
79
80 install:
81         -(mkdir $(EMPDIR)/bin)
82         cp emp_client $(EMPDIR)/bin
83
84 ntinstall:
85         -(mkdir $(NTINSTDIR)\bin)
86         copy emp_client.exe $(NTINSTDIR)\bin
87
88 include ../make.rules
89 include Makedepend
90