]>
Commit | Line | Data |
---|---|---|
c1068b6e | 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 | ||
ee05c957 | 14 | CC = @CXX@ |
dff2bbf4 | 15 | CPPFLAGS = -Wno-deprecated -Wall @CPPFLAGS@ |
c1068b6e | 16 | CFLAGS = $(CPPFLAGS) @CFLAGS@ |
17 | LDFLAGS = @LDFLAGS@ | |
18 | LIBS = @LIBS@ | |
19 | INSTALL = @INSTALL@ | |
20 | ||
ee05c957 | 21 | all: tcpclient |
c1068b6e | 22 | |
23 | clean: | |
24 | /bin/rm -f *.o | |
25 | ||
26 | distclean: clean | |
c7340cbd | 27 | /bin/rm -f Makefile config.h config.status config.cache config.log \ |
b0a5c536 | 28 | options.h gameserv .config .gstimestamp |
c1068b6e | 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 | ||
b0a5c536 | 34 | configscript: configscript.o |
35 | $(CC) -o .config configscript.o | |
36 | ||
37 | configscript.o: configscript.cpp | |
38 | $(CC) $(CFLAGS) -c configscript.cpp | |
39 | ||
c7340cbd | 40 | tcpclient.o: tcpclient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h\ |
41 | options.h | |
c1068b6e | 42 | $(CC) $(CFLAGS) -c tcpclient.cpp |
43 | ||
44 | tcpserver.o: tcpserver.cpp sockhelp.cpp | |
45 | $(CC) $(CFLAGS) -c tcpserver.cpp | |
46 | ||
47 | sockhelp.o: sockhelp.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h | |
48 | $(CC) $(CFLAGS) -c sockhelp.cpp | |
49 | ||
50 | aClient.o: aClient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h | |
51 | $(CC) $(CFLAGS) -c aClient.cpp | |
52 | ||
96f71fee | 53 | gameserv.o: gameserv.cpp aClient.h player.h extern.h flags.h list.h\ |
c1068b6e | 54 | listnode.h sockhelp.h |
55 | $(CC) $(CFLAGS) -c gameserv.cpp | |
56 | ||
57 | c_forest.o: c_forest.cpp aClient.h player.h extern.h list.h\ | |
58 | listnode.h sockhelp.h | |
59 | $(CC) $(CFLAGS) -c c_forest.cpp | |
60 | ||
61 | player.o: player.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h | |
62 | $(CC) $(CFLAGS) -c player.cpp | |
63 | ||
64 | config.o: config.cpp extern.h | |
65 | $(CC) $(CFLAGS) -c config.cpp | |
66 | ||
67 | ${srcdir}/configure: configure.in | |
68 | cd ${srcdir} && autoconf | |
69 | ||
70 | # autoheader might not change config.h.in, so touch a stamp file | |
71 | ${srcdir}/config.h.in: stamp-h.in | |
72 | ||
73 | ${srcdir}/stamp-h.in: configure.in | |
74 | cd ${srcdir} && autoheader | |
75 | echo timestamp > ${srcdir}/stamp-h.in | |
76 | ||
77 | config.h: stamp-h | |
78 | ||
79 | stamp-h: config.h.in config.status | |
80 | ./config.status | |
81 | ||
82 | Makefile: Makefile.in config.status | |
83 | ./config.status | |
84 | ||
85 | config.status: configure | |
86 | ./config.status --recheck | |
87 |