]>
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 | SRCS = aClient.cpp \ | |
22 | config.cpp \ | |
23 | c_forest.cpp \ | |
24 | gameserv.cpp \ | |
25 | hash.cpp \ | |
26 | log.cpp \ | |
27 | myString.cpp \ | |
28 | news.cpp \ | |
29 | player.cpp \ | |
30 | sockhelp.cpp \ | |
31 | tcpclient.cpp | |
32 | ||
33 | OBJS = ${SRCS:.cpp=.o} | |
34 | ||
35 | all: gameserv | |
36 | ||
37 | clean: | |
38 | /bin/rm -f *.o | |
39 | ||
40 | distclean: clean | |
41 | /bin/rm -f Makefile config.h config.status config.cache config.log \ | |
42 | options.h gameserv .config .gstimestamp | |
43 | ||
44 | gameserv: $(OBJS) | |
45 | $(CC) -o $@ $(OBJS) $(LIBS) | |
46 | ||
47 | .cpp.o: | |
48 | $(CC) $(CFLAGS) -c $< | |
49 | ||
50 | depend: | |
51 | $(CC) -MM $(CFLAGS) $(SRCS) > .depend | |
52 | ||
53 | configscript: configscript.o | |
54 | $(CC) -o .config configscript.o | |
55 | ||
56 | # Catch any changes in the Makefile, everything depends on it. | |
57 | $(OBJS): Makefile | |
58 | ||
59 | include .depend |