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
72 CONSOLESRCS = $(TSRCS) $(CONSOLEDRIVER)
73 SRCS = $(TSRCS) $(DRIVER)
74 ALLSRCS = $(TSRCS) $(DRIVER) $(CONSOLEDRIVER)
76 OBJS = ${SRCS:.cpp=.o}
77 CONSOLEOBJS = $(CONSOLESRCS:.cpp=.o)
85 /bin/rm -f Makefile config.h config.status config.cache config.log \
86 options.h gameserv .config .gstimestamp
89 $(CC) -o $@ $(OBJS) $(LIBS)
95 $(CC) -MM $(CFLAGS) $(ALLSRCS) > .depend
97 configscript: configscript.o
98 $(CC) -o .config configscript.o
100 console: $(CONSOLEOBJS)
101 $(CC) -o $@ $(CONSOLEOBJS) $(LIBS)
103 # Catch any changes in the Makefile, everything depends on it.
105 $(CONSOLEOBJS): Makefile