summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile.osx
blob: 396f5559d1f58ce8b0523948cacac35c4354f0cb (plain) (blame)
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
# -*- Makefile -*- for Dungeon Crawl

#
# Modified for Crawl Reference by $Author$ on $Date$
#

PROJECT = Crawl.xcodeproj
GAME = Crawl

all: $(GAME)

# Xcode handles dependencies, so install does _not_ have to depend on building.
install:
	xcodebuild -project $(PROJECT) -target $(GAME) -configuration Release install

clean:
	xcodebuild -project $(PROJECT) -target $(GAME) -configuration Release clean
	xcodebuild -project $(PROJECT) -target $(GAME) -configuration Debug clean
	xcodebuild -project $(PROJECT) -target $(GAME) -configuration Wizard clean

distclean: clean
	rm -f bones.*
	rm -f morgue.txt
	rm -f scores
	rm -f $(GAME)
	rm -f *.sav
	rm -f core
	rm -f *.0*
	rm -f *.lab

$(GAME):
	xcodebuild -project $(PROJECT) -target $(GAME) -configuration Release build

debug:
	xcodebuild -project $(PROJECT) -target $(GAME) -configuration Debug build

wizard:
	xcodebuild -project $(PROJECT) -target $(GAME) -configuration Wizard build

devel:
	xcodebuild -project $(PROJECT) -target $(GAME) -configuration Development build

devclean:
	xcodebuild -project $(PROJECT) -target $(GAME) -configuration Development clean