SHELL = /bin/sh VPATH = @srcdir@ subdirs = @subdirs@ top_srcdir = @top_srcdir@ srcdir = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = $(exec_prefix)/bin infodir = $(prefix)/info libdir = $(prefix)/lib/gnudl mandir = $(prefix)/man/man1 CC = @CXX@ CPPFLAGS = -Wall @CPPFLAGS@ CFLAGS = $(CPPFLAGS) @CFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ INSTALL = @INSTALL@ DRIVER = tcpclient.cpp CONSOLEDRIVER = devel.cpp TSRCS = aClient.cpp \ config.cpp \ c_forest.cpp \ do_attack.cpp \ gameserv.cpp \ hash.cpp \ item.cpp \ level.cpp \ log.cpp \ news.cpp \ pouch.cpp \ player.cpp \ sockhelp.cpp CONSOLESRCS = $(TSRCS) $(CONSOLEDRIVER) SRCS = $(TSRCS) $(DRIVER) ALLSRCS = $(TSRCS) $(DRIVER) $(CONSOLEDRIVER) OBJS = ${SRCS:.cpp=.o} CONSOLEOBJS = $(CONSOLESRCS:.cpp=.o) all: gameserv clean: /bin/rm -f *.o distclean: clean /bin/rm -f Makefile config.h config.status config.cache config.log \ options.h gameserv .config .gstimestamp gameserv: $(OBJS) $(CC) -o $@ $(OBJS) $(LIBS) .cpp.o: $(CC) $(CFLAGS) -c $< depend: $(CC) -MM $(CFLAGS) $(ALLSRCS) > .depend configscript: configscript.o $(CC) -o .config configscript.o console: $(CONSOLEOBJS) $(CC) -o $@ $(CONSOLEOBJS) $(LIBS) # Catch any changes in the Makefile, everything depends on it. $(OBJS): Makefile $(CONSOLEOBJS): Makefile include .depend