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