]>
Commit | Line | Data |
---|---|---|
1 | SHELL = /bin/sh | |
2 | VPATH = @srcdir@ | |
3 | ||
4 | subdirs = @subdirs@ | |
5 | top_srcdir = @top_srcdir@ | |
6 | srcdir = @srcdir@ | |
7 | prefix = @prefix@ | |
8 | exec_prefix = @exec_prefix@ | |
9 | bindir = $(exec_prefix)/bin | |
10 | infodir = $(prefix)/info | |
11 | libdir = $(prefix)/lib/gnudl | |
12 | mandir = $(prefix)/man/man1 | |
13 | ||
14 | CC = @CXX@ | |
15 | CPPFLAGS = -Wno-deprecated -Wall @CPPFLAGS@ | |
16 | CFLAGS = $(CPPFLAGS) @CFLAGS@ | |
17 | LDFLAGS = @LDFLAGS@ | |
18 | LIBS = @LIBS@ | |
19 | INSTALL = @INSTALL@ | |
20 | ||
21 | all: tcpclient | |
22 | ||
23 | clean: | |
24 | /bin/rm -f *.o | |
25 | ||
26 | distclean: clean | |
27 | /bin/rm -f Makefile config.h config.status config.cache config.log \ | |
28 | options.h gameserv | |
29 | ||
30 | tcpclient: aClient.o config.o c_forest.o gameserv.o player.o sockhelp.o tcpclient.o | |
31 | $(CC) -o gameserv aClient.o config.o c_forest.o gameserv.o player.o sockhelp.o\ | |
32 | tcpclient.o $(LIBS) | |
33 | ||
34 | tcpclient.o: tcpclient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h\ | |
35 | options.h | |
36 | $(CC) $(CFLAGS) -c tcpclient.cpp | |
37 | ||
38 | tcpserver.o: tcpserver.cpp sockhelp.cpp | |
39 | $(CC) $(CFLAGS) -c tcpserver.cpp | |
40 | ||
41 | sockhelp.o: sockhelp.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h | |
42 | $(CC) $(CFLAGS) -c sockhelp.cpp | |
43 | ||
44 | aClient.o: aClient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h | |
45 | $(CC) $(CFLAGS) -c aClient.cpp | |
46 | ||
47 | gameserv.o: gameserv.cpp aClient.h player.h extern.h flags.h list.h\ | |
48 | listnode.h sockhelp.h | |
49 | $(CC) $(CFLAGS) -c gameserv.cpp | |
50 | ||
51 | c_forest.o: c_forest.cpp aClient.h player.h extern.h list.h\ | |
52 | listnode.h sockhelp.h | |
53 | $(CC) $(CFLAGS) -c c_forest.cpp | |
54 | ||
55 | player.o: player.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h | |
56 | $(CC) $(CFLAGS) -c player.cpp | |
57 | ||
58 | config.o: config.cpp extern.h | |
59 | $(CC) $(CFLAGS) -c config.cpp | |
60 | ||
61 | ${srcdir}/configure: configure.in | |
62 | cd ${srcdir} && autoconf | |
63 | ||
64 | # autoheader might not change config.h.in, so touch a stamp file | |
65 | ${srcdir}/config.h.in: stamp-h.in | |
66 | ||
67 | ${srcdir}/stamp-h.in: configure.in | |
68 | cd ${srcdir} && autoheader | |
69 | echo timestamp > ${srcdir}/stamp-h.in | |
70 | ||
71 | config.h: stamp-h | |
72 | ||
73 | stamp-h: config.h.in config.status | |
74 | ./config.status | |
75 | ||
76 | Makefile: Makefile.in config.status | |
77 | ./config.status | |
78 | ||
79 | config.status: configure | |
80 | ./config.status --recheck | |
81 |