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 @CPPFLAGS@
16 CFLAGS = $(CPPFLAGS) @CFLAGS@
27 /bin/rm -f Makefile config.h config.status config.cache config.log gameserv
29 tcpclient: aClient.o config.o c_forest.o gameserv.o player.o sockhelp.o tcpclient.o
30 $(CC) -o gameserv aClient.o config.o c_forest.o gameserv.o player.o sockhelp.o\
33 tcpclient.o: tcpclient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
34 $(CC) $(CFLAGS) -c tcpclient.cpp
36 tcpserver.o: tcpserver.cpp sockhelp.cpp
37 $(CC) $(CFLAGS) -c tcpserver.cpp
39 sockhelp.o: sockhelp.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
40 $(CC) $(CFLAGS) -c sockhelp.cpp
42 aClient.o: aClient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
43 $(CC) $(CFLAGS) -c aClient.cpp
45 gameserv.o: gameserv.cpp aClient.h player.h extern.h list.h\
47 $(CC) $(CFLAGS) -c gameserv.cpp
49 c_forest.o: c_forest.cpp aClient.h player.h extern.h list.h\
51 $(CC) $(CFLAGS) -c c_forest.cpp
53 player.o: player.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h
54 $(CC) $(CFLAGS) -c player.cpp
56 config.o: config.cpp extern.h
57 $(CC) $(CFLAGS) -c config.cpp
59 ${srcdir}/configure: configure.in
60 cd ${srcdir} && autoconf
62 # autoheader might not change config.h.in, so touch a stamp file
63 ${srcdir}/config.h.in: stamp-h.in
65 ${srcdir}/stamp-h.in: configure.in
66 cd ${srcdir} && autoheader
67 echo timestamp > ${srcdir}/stamp-h.in
71 stamp-h: config.h.in config.status
74 Makefile: Makefile.in config.status
77 config.status: configure
78 ./config.status --recheck