LIBS = @LIBS@
INSTALL = @INSTALL@
-SRCS = aClient.cpp \
+DRIVER = tcpclient.cpp
+CONSOLEDRIVER = devel.cpp
+
+TSRCS = aClient.cpp \
+ boolean.cpp \
config.cpp \
c_forest.cpp \
+ do_admin.cpp \
+ do_attack.cpp \
+ do_bank.cpp \
+ do_check.cpp \
+ do_dragon.cpp \
+ do_equip.cpp \
+ do_fight.cpp \
+ do_heal.cpp \
+ do_help.cpp \
+ do_identify.cpp \
+ do_inventory.cpp \
+ do_list.cpp \
+ do_load.cpp \
+ do_logout.cpp \
+ do_master.cpp \
+ do_raw.cpp \
+ do_refresh.cpp \
+ do_register.cpp \
+ do_reset.cpp \
+ do_run.cpp \
+ do_save.cpp \
+ do_set.cpp \
+ do_shutdown.cpp \
+ do_stats.cpp \
+ do_store.cpp \
+ do_tavern.cpp \
+ do_use.cpp \
+ find.cpp \
gameserv.cpp \
hash.cpp \
+ item.cpp \
level.cpp \
+ loadsave.cpp \
log.cpp \
+ messages.cpp \
+ misc.cpp \
news.cpp \
+ pouch.cpp \
player.cpp \
+ script.cpp \
sockhelp.cpp \
- tcpclient.cpp
+ strings.cpp \
+ toplist.cpp
+
+CONSOLESRCS = $(TSRCS) $(CONSOLEDRIVER)
+SRCS = $(TSRCS) $(DRIVER)
+ALLSRCS = $(TSRCS) $(DRIVER) $(CONSOLEDRIVER)
OBJS = ${SRCS:.cpp=.o}
+CONSOLEOBJS = $(CONSOLESRCS:.cpp=.o)
all: gameserv
$(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