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 = -Wall @CPPFLAGS@
16 CFLAGS = $(CPPFLAGS) @CFLAGS@
21 DRIVER = tcpclient.cpp
22 CONSOLEDRIVER = devel.cpp
68 CONSOLESRCS = $(TSRCS) $(CONSOLEDRIVER)
69 SRCS = $(TSRCS) $(DRIVER)
70 ALLSRCS = $(TSRCS) $(DRIVER) $(CONSOLEDRIVER)
72 OBJS = ${SRCS:.cpp=.o}
73 CONSOLEOBJS = $(CONSOLESRCS:.cpp=.o)
81 /bin/rm -f Makefile config.h config.status config.cache config.log \
82 options.h gameserv .config .gstimestamp
85 $(CC) -o $@ $(OBJS) $(LIBS)
91 $(CC) -MM $(CFLAGS) $(ALLSRCS) > .depend
93 configscript: configscript.o
94 $(CC) -o .config configscript.o
96 console: $(CONSOLEOBJS)
97 $(CC) -o $@ $(CONSOLEOBJS) $(LIBS)
99 # Catch any changes in the Makefile, everything depends on it.
101 $(CONSOLEOBJS): Makefile