]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/Makefile.in
implemented the tavern only listing certain items based on level
[irc/gameservirc.git] / gameserv / Makefile.in
index f308688a1d77e15311d02eade154da15f7fbac94..9327e199c5ecbda021cc83c58c69e4d0358d0478 100644 (file)
@@ -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 \
@@ -28,11 +31,16 @@ SRCS =      aClient.cpp \
        level.cpp \
        log.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
 
@@ -50,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