-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (41 loc) · 1.21 KB
/
Makefile
File metadata and controls
50 lines (41 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#============================================================#
# Top level Makefile for XTux Arena #
# David Lawrence (nogoodpunk@yahoo.com) #
# Makefile correction thanks to Milo van Handel (mwq@dds.nl) #
#============================================================#
#Change this to where you want to put the data directory.
DATADIR = `pwd`/data
#Eg you might want to put the data files here......
#DATADIR = /usr/share/games/xtux
MFLAGS = DATADIR=$(DATADIR)
CM_SRC_DIR = src/common
SV_SRC_DIR = src/server
CL_SRC_DIR = src/client
GZ_SRC_DIR = src/ggz
MAKE = @make -C
all: common ggz client server
clean:
$(MAKE) $(CM_SRC_DIR) clean
$(MAKE) $(SV_SRC_DIR) clean
$(MAKE) $(CL_SRC_DIR) clean
$(MAKE) $(GZ_SRC_DIR) clean
common:
@echo
@echo " ************* Building COMMON lib *************"
@echo
$(MAKE) $(CM_SRC_DIR) $(MFLAGS)
server:
@echo
@echo " ************* Building SERVER *************"
@echo
$(MAKE) $(SV_SRC_DIR) $(MFLAGS)
client:
@echo
@echo " ************* Building CLIENT *************"
@echo
$(MAKE) $(CL_SRC_DIR) $(MFLAGS)
ggz:
@echo
@echo " ************* Building GGZ *************"
@echo
$(MAKE) $(GZ_SRC_DIR) $(MFLAGS)