]> 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 39721a20be204e10d16e0ae200f6778084e5c1ed..9327e199c5ecbda021cc83c58c69e4d0358d0478 100644 (file)
@@ -11,69 +11,63 @@ infodir = $(prefix)/info
 libdir = $(prefix)/lib/gnudl
 mandir = $(prefix)/man/man1
 
-CC = g++
-CPPFLAGS = @CPPFLAGS@
+CC = @CXX@
+CPPFLAGS = -Wall @CPPFLAGS@
 CFLAGS = $(CPPFLAGS) @CFLAGS@
 LDFLAGS = @LDFLAGS@
 LIBS = @LIBS@
 INSTALL = @INSTALL@
 
-all:   config.h tcpclient
+DRIVER = tcpclient.cpp
+CONSOLEDRIVER = devel.cpp
 
-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
+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
 
-tcpserver.o:   tcpserver.cpp sockhelp.cpp
-       $(CC) $(CFLAGS) -c tcpserver.cpp
+CONSOLESRCS = $(TSRCS) $(CONSOLEDRIVER)
+SRCS = $(TSRCS) $(DRIVER)
+ALLSRCS = $(TSRCS) $(DRIVER) $(CONSOLEDRIVER)
 
-sockhelp.o:    sockhelp.cpp aClient.h player.h extern.h  list.h listnode.h  sockhelp.h
-       $(CC) $(CFLAGS) -c sockhelp.cpp
+OBJS = ${SRCS:.cpp=.o}
+CONSOLEOBJS = $(CONSOLESRCS:.cpp=.o)
 
-aClient.o:     aClient.cpp aClient.h player.h extern.h  list.h listnode.h sockhelp.h
-       $(CC) $(CFLAGS) -c aClient.cpp
+all:   gameserv
 
-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
+clean:
+       /bin/rm -f *.o
 
-${srcdir}/configure: configure.in
-       cd ${srcdir} && autoconf
+distclean: clean
+       /bin/rm -f Makefile config.h config.status config.cache config.log \
+       options.h gameserv .config .gstimestamp
 
-# autoheader might not change config.h.in, so touch a stamp file
-${srcdir}/config.h.in: stamp-h.in
+gameserv: $(OBJS)
+       $(CC) -o $@ $(OBJS) $(LIBS)
 
-${srcdir}/stamp-h.in: configure.in
-               cd ${srcdir} && autoheader
-               echo timestamp > ${srcdir}/stamp-h.in
+.cpp.o:
+       $(CC) $(CFLAGS) -c $<
 
-config.h: stamp-h
+depend:
+       $(CC) -MM $(CFLAGS) $(ALLSRCS) > .depend
 
-stamp-h: config.h.in config.status
-       ./config.status
+configscript: configscript.o
+       $(CC) -o .config configscript.o
 
-Makefile: Makefile.in config.status
-       ./config.status
+console: $(CONSOLEOBJS)
+       $(CC) -o $@ $(CONSOLEOBJS) $(LIBS)
 
-config.status: configure
-       ./config.status --recheck
+# Catch any changes in the Makefile, everything depends on it.
+$(OBJS): Makefile
+$(CONSOLEOBJS): Makefile
 
+include .depend