]>
Commit | Line | Data |
---|---|---|
c1068b6e | 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 | ||
ee05c957 | 14 | CC = @CXX@ |
fb37ecc7 | 15 | CPPFLAGS = -Wall @CPPFLAGS@ |
c1068b6e | 16 | CFLAGS = $(CPPFLAGS) @CFLAGS@ |
17 | LDFLAGS = @LDFLAGS@ | |
18 | LIBS = @LIBS@ | |
19 | INSTALL = @INSTALL@ | |
20 | ||
b5fb1cc5 | 21 | SRCS = aClient.cpp \ |
22 | config.cpp \ | |
23 | c_forest.cpp \ | |
24 | gameserv.cpp \ | |
25 | log.cpp \ | |
26 | player.cpp \ | |
27 | sockhelp.cpp \ | |
28 | tcpclient.cpp | |
29 | ||
30 | OBJS = ${SRCS:.cpp=.o} | |
31 | ||
32 | all: gameserv | |
c1068b6e | 33 | |
34 | clean: | |
35 | /bin/rm -f *.o | |
36 | ||
37 | distclean: clean | |
c7340cbd | 38 | /bin/rm -f Makefile config.h config.status config.cache config.log \ |
b0a5c536 | 39 | options.h gameserv .config .gstimestamp |
c1068b6e | 40 | |
b5fb1cc5 | 41 | gameserv: $(OBJS) |
42 | $(CC) -o $@ $(OBJS) $(LIBS) | |
c1068b6e | 43 | |
b5fb1cc5 | 44 | .cpp.o: |
45 | $(CC) $(CFLAGS) -c $< | |
c1068b6e | 46 | |
b5fb1cc5 | 47 | depend: |
48 | $(CC) -MM $(CFLAGS) $(SRCS) > .depend | |
c1068b6e | 49 | |
b5fb1cc5 | 50 | configscript: configscript.o |
51 | $(CC) -o .config configscript.o | |
c1068b6e | 52 | |
b5fb1cc5 | 53 | # Catch any changes in the Makefile, everything depends on it. |
54 | $(OBJS): Makefile | |
c1068b6e | 55 | |
b5fb1cc5 | 56 | include .depend |