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

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