]>
Commit | Line | Data |
---|---|---|
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 | config.cpp \ | |
26 | c_forest.cpp \ | |
27 | do_attack.cpp \ | |
28 | gameserv.cpp \ | |
29 | hash.cpp \ | |
30 | item.cpp \ | |
31 | level.cpp \ | |
32 | log.cpp \ | |
33 | news.cpp \ | |
34 | pouch.cpp \ | |
35 | player.cpp \ | |
36 | sockhelp.cpp | |
37 | ||
38 | CONSOLESRCS = $(TSRCS) $(CONSOLEDRIVER) | |
39 | SRCS = $(TSRCS) $(DRIVER) | |
40 | ALLSRCS = $(TSRCS) $(DRIVER) $(CONSOLEDRIVER) | |
41 | ||
42 | OBJS = ${SRCS:.cpp=.o} | |
43 | CONSOLEOBJS = $(CONSOLESRCS:.cpp=.o) | |
44 | ||
45 | all: gameserv | |
46 | ||
47 | clean: | |
48 | /bin/rm -f *.o | |
49 | ||
50 | distclean: clean | |
51 | /bin/rm -f Makefile config.h config.status config.cache config.log \ | |
52 | options.h gameserv .config .gstimestamp | |
53 | ||
54 | gameserv: $(OBJS) | |
55 | $(CC) -o $@ $(OBJS) $(LIBS) | |
56 | ||
57 | .cpp.o: | |
58 | $(CC) $(CFLAGS) -c $< | |
59 | ||
60 | depend: | |
61 | $(CC) -MM $(CFLAGS) $(ALLSRCS) > .depend | |
62 | ||
63 | configscript: configscript.o | |
64 | $(CC) -o .config configscript.o | |
65 | ||
66 | console: $(CONSOLEOBJS) | |
67 | $(CC) -o $@ $(CONSOLEOBJS) $(LIBS) | |
68 | ||
69 | # Catch any changes in the Makefile, everything depends on it. | |
70 | $(OBJS): Makefile | |
71 | $(CONSOLEOBJS): Makefile | |
72 | ||
73 | include .depend |