File: Makefile

package info (click to toggle)
xtux 0.2.030306-12
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 10,200 kB
  • ctags: 2,009
  • sloc: ansic: 11,703; makefile: 174; perl: 126; sh: 44
file content (50 lines) | stat: -rw-r--r-- 1,236 bytes parent folder | download | duplicates (2)
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
50
#============================================================#
# 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)