5 top_srcdir = @top_srcdir@
8 exec_prefix = @exec_prefix@
9 bindir = $(exec_prefix)/bin
10 infodir = $(prefix)/info
11 libdir = $(prefix)/lib/gnudl
12 mandir = $(prefix)/man/man1
15 CPPFLAGS = -Wno-deprecated -Wall @CPPFLAGS@
16 CFLAGS = $(CPPFLAGS) @CFLAGS@
27 /bin/rm -f Makefile config.h config.status config.cache config.log \
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\
34 tcpclient.o: tcpclient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h\
36 $(CC) $(CFLAGS) -c tcpclient.cpp
38 tcpserver.o: tcpserver.cpp sockhelp.cpp
39 $(CC) $(CFLAGS) -c tcpserver.cpp
41 sockhelp.o: sockhelp.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
42 $(CC) $(CFLAGS) -c sockhelp.cpp
44 aClient.o: aClient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
45 $(CC) $(CFLAGS) -c aClient.cpp
47 gameserv.o: gameserv.cpp aClient.h player.h extern.h list.h\
49 $(CC) $(CFLAGS) -c gameserv.cpp
51 c_forest.o: c_forest.cpp aClient.h player.h extern.h list.h\
53 $(CC) $(CFLAGS) -c c_forest.cpp
55 player.o: player.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
56 $(CC) $(CFLAGS) -c player.cpp
58 config.o: config.cpp extern.h
59 $(CC) $(CFLAGS) -c config.cpp
61 ${srcdir}/configure: configure.in
62 cd ${srcdir} && autoconf
64 # autoheader might not change config.h.in, so touch a stamp file
65 ${srcdir}/config.h.in: stamp-h.in
67 ${srcdir}/stamp-h.in: configure.in
68 cd ${srcdir} && autoheader
69 echo timestamp > ${srcdir}/stamp-h.in
73 stamp-h: config.h.in config.status
76 Makefile: Makefile.in config.status
79 config.status: configure
80 ./config.status --recheck