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
38 CONSOLESRCS = $(TSRCS) $(CONSOLEDRIVER)
39 SRCS = $(TSRCS) $(DRIVER)
40 ALLSRCS = $(TSRCS) $(DRIVER) $(CONSOLEDRIVER)
42 OBJS = ${SRCS:.cpp=.o}
43 CONSOLEOBJS = $(CONSOLESRCS:.cpp=.o)
51 /bin/rm -f Makefile config.h config.status config.cache config.log \
52 options.h gameserv .config .gstimestamp
55 $(CC) -o $@ $(OBJS) $(LIBS)
61 $(CC) -MM $(CFLAGS) $(ALLSRCS) > .depend
63 configscript: configscript.o
64 $(CC) -o .config configscript.o
66 console: $(CONSOLEOBJS)
67 $(CC) -o $@ $(CONSOLEOBJS) $(LIBS)
69 # Catch any changes in the Makefile, everything depends on it.
71 $(CONSOLEOBJS): Makefile