X-Git-Url: https://jfr.im/git/irc/gameservirc.git/blobdiff_plain/dff2bbf42ac98466a763629634716e452824987d..6f727d4c9eb5c886f14598577f40da583577444e:/gameserv/Makefile.in diff --git a/gameserv/Makefile.in b/gameserv/Makefile.in index f9af4be..629c303 100644 --- a/gameserv/Makefile.in +++ b/gameserv/Makefile.in @@ -12,68 +12,45 @@ libdir = $(prefix)/lib/gnudl mandir = $(prefix)/man/man1 CC = @CXX@ -CPPFLAGS = -Wno-deprecated -Wall @CPPFLAGS@ +CPPFLAGS = -Wall @CPPFLAGS@ CFLAGS = $(CPPFLAGS) @CFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ INSTALL = @INSTALL@ -all: tcpclient +SRCS = aClient.cpp \ + config.cpp \ + c_forest.cpp \ + gameserv.cpp \ + log.cpp \ + player.cpp \ + sockhelp.cpp \ + tcpclient.cpp + +OBJS = ${SRCS:.cpp=.o} + +all: gameserv clean: /bin/rm -f *.o distclean: clean - /bin/rm -f Makefile config.h config.status config.cache config.log gameserv - -tcpclient: aClient.o config.o c_forest.o gameserv.o player.o sockhelp.o tcpclient.o - $(CC) -o gameserv aClient.o config.o c_forest.o gameserv.o player.o sockhelp.o\ - tcpclient.o $(LIBS) - -tcpclient.o: tcpclient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h - $(CC) $(CFLAGS) -c tcpclient.cpp - -tcpserver.o: tcpserver.cpp sockhelp.cpp - $(CC) $(CFLAGS) -c tcpserver.cpp - -sockhelp.o: sockhelp.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h - $(CC) $(CFLAGS) -c sockhelp.cpp - -aClient.o: aClient.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h - $(CC) $(CFLAGS) -c aClient.cpp - -gameserv.o: gameserv.cpp aClient.h player.h extern.h list.h\ - listnode.h sockhelp.h - $(CC) $(CFLAGS) -c gameserv.cpp - -c_forest.o: c_forest.cpp aClient.h player.h extern.h list.h\ - listnode.h sockhelp.h - $(CC) $(CFLAGS) -c c_forest.cpp - -player.o: player.cpp aClient.h player.h extern.h list.h listnode.h sockhelp.h - $(CC) $(CFLAGS) -c player.cpp - -config.o: config.cpp extern.h - $(CC) $(CFLAGS) -c config.cpp - -${srcdir}/configure: configure.in - cd ${srcdir} && autoconf - -# autoheader might not change config.h.in, so touch a stamp file -${srcdir}/config.h.in: stamp-h.in + /bin/rm -f Makefile config.h config.status config.cache config.log \ + options.h gameserv .config .gstimestamp -${srcdir}/stamp-h.in: configure.in - cd ${srcdir} && autoheader - echo timestamp > ${srcdir}/stamp-h.in +gameserv: $(OBJS) + $(CC) -o $@ $(OBJS) $(LIBS) -config.h: stamp-h +.cpp.o: + $(CC) $(CFLAGS) -c $< -stamp-h: config.h.in config.status - ./config.status +depend: + $(CC) -MM $(CFLAGS) $(SRCS) > .depend -Makefile: Makefile.in config.status - ./config.status +configscript: configscript.o + $(CC) -o .config configscript.o -config.status: configure - ./config.status --recheck +# Catch any changes in the Makefile, everything depends on it. +$(OBJS): Makefile +include .depend