X-Git-Url: https://jfr.im/git/irc/gameservirc.git/blobdiff_plain/37ed80a99c033d815fcef9a7d1c8b48ef334220d..1e7678e9262962f78ff7b15636bf0a817e47d97a:/gameserv/Makefile.in diff --git a/gameserv/Makefile.in b/gameserv/Makefile.in index cd4ef20..9327e19 100644 --- a/gameserv/Makefile.in +++ b/gameserv/Makefile.in @@ -18,7 +18,10 @@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ INSTALL = @INSTALL@ -SRCS = aClient.cpp \ +DRIVER = tcpclient.cpp +CONSOLEDRIVER = devel.cpp + +TSRCS = aClient.cpp \ config.cpp \ c_forest.cpp \ do_attack.cpp \ @@ -30,10 +33,14 @@ SRCS = aClient.cpp \ news.cpp \ pouch.cpp \ player.cpp \ - sockhelp.cpp \ - tcpclient.cpp + sockhelp.cpp + +CONSOLESRCS = $(TSRCS) $(CONSOLEDRIVER) +SRCS = $(TSRCS) $(DRIVER) +ALLSRCS = $(TSRCS) $(DRIVER) $(CONSOLEDRIVER) OBJS = ${SRCS:.cpp=.o} +CONSOLEOBJS = $(CONSOLESRCS:.cpp=.o) all: gameserv @@ -51,12 +58,16 @@ gameserv: $(OBJS) $(CC) $(CFLAGS) -c $< depend: - $(CC) -MM $(CFLAGS) $(SRCS) > .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