]> jfr.im git - irc/gameservirc.git/blob - gameserv/Makefile.in
Finished splitting files, and updated dependencies.
[irc/gameservirc.git] / gameserv / Makefile.in
1 SHELL = /bin/sh
2 VPATH = @srcdir@
3
4 subdirs = @subdirs@
5 top_srcdir = @top_srcdir@
6 srcdir = @srcdir@
7 prefix = @prefix@
8 exec_prefix = @exec_prefix@
9 bindir = $(exec_prefix)/bin
10 infodir = $(prefix)/info
11 libdir = $(prefix)/lib/gnudl
12 mandir = $(prefix)/man/man1
13
14 CC = @CXX@
15 CPPFLAGS = -Wall @CPPFLAGS@
16 CFLAGS = $(CPPFLAGS) @CFLAGS@
17 LDFLAGS = @LDFLAGS@
18 LIBS = @LIBS@
19 INSTALL = @INSTALL@
20
21 DRIVER = tcpclient.cpp
22 CONSOLEDRIVER = devel.cpp
23
24 TSRCS = aClient.cpp \
25 boolean.cpp \
26 config.cpp \
27 c_forest.cpp \
28 do_admin.cpp \
29 do_attack.cpp \
30 do_bank.cpp \
31 do_check.cpp \
32 do_dragon.cpp \
33 do_equip.cpp \
34 do_fight.cpp \
35 do_heal.cpp \
36 do_help.cpp \
37 do_identify.cpp \
38 do_inventory.cpp \
39 do_list.cpp \
40 do_logout.cpp \
41 do_master.cpp \
42 do_refresh.cpp \
43 do_register.cpp \
44 do_reset.cpp \
45 do_run.cpp \
46 do_set.cpp \
47 do_stats.cpp \
48 do_store.cpp \
49 do_tavern.cpp \
50 do_use.cpp \
51 find.cpp \
52 gameserv.cpp \
53 hash.cpp \
54 item.cpp \
55 level.cpp \
56 loadsave.cpp \
57 log.cpp \
58 messages.cpp \
59 misc.cpp \
60 news.cpp \
61 pouch.cpp \
62 player.cpp \
63 script.cpp \
64 sockhelp.cpp \
65 strings.cpp \
66 toplist.cpp
67
68 CONSOLESRCS = $(TSRCS) $(CONSOLEDRIVER)
69 SRCS = $(TSRCS) $(DRIVER)
70 ALLSRCS = $(TSRCS) $(DRIVER) $(CONSOLEDRIVER)
71
72 OBJS = ${SRCS:.cpp=.o}
73 CONSOLEOBJS = $(CONSOLESRCS:.cpp=.o)
74
75 all: gameserv
76
77 clean:
78 /bin/rm -f *.o
79
80 distclean: clean
81 /bin/rm -f Makefile config.h config.status config.cache config.log \
82 options.h gameserv .config .gstimestamp
83
84 gameserv: $(OBJS)
85 $(CC) -o $@ $(OBJS) $(LIBS)
86
87 .cpp.o:
88 $(CC) $(CFLAGS) -c $<
89
90 depend:
91 $(CC) -MM $(CFLAGS) $(ALLSRCS) > .depend
92
93 configscript: configscript.o
94 $(CC) -o .config configscript.o
95
96 console: $(CONSOLEOBJS)
97 $(CC) -o $@ $(CONSOLEOBJS) $(LIBS)
98
99 # Catch any changes in the Makefile, everything depends on it.
100 $(OBJS): Makefile
101 $(CONSOLEOBJS): Makefile
102
103 include .depend