diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-11-22 08:41:20 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-11-22 08:41:20 +0000 |
commit | 1d0f57cbceb778139ca215cc4fcfd1584951f6dd (patch) | |
tree | cafd60c944c51fcce778aa5d6912bc548c518339 /crawl-ref/source/makefile.osx | |
parent | 6f5e187a9e5cd348296dba2fd89d2e206e775a01 (diff) | |
download | crawl-ref-1d0f57cbceb778139ca215cc4fcfd1584951f6dd.tar.gz crawl-ref-1d0f57cbceb778139ca215cc4fcfd1584951f6dd.zip |
Merged stone_soup r15:451 into trunk.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@452 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makefile.osx')
-rw-r--r-- | crawl-ref/source/makefile.osx | 83 |
1 files changed, 33 insertions, 50 deletions
diff --git a/crawl-ref/source/makefile.osx b/crawl-ref/source/makefile.osx index 7cee7c3452..69c78b127e 100644 --- a/crawl-ref/source/makefile.osx +++ b/crawl-ref/source/makefile.osx @@ -4,58 +4,41 @@ # Modified for Crawl Reference by $Author$ on $Date$ # -GAME = crawl - -# this file contains a list of the libraries. -# it will make a variable called OBJECTS that contains all the libraries -include makefile.obj - -OBJECTS += libunix.o - -CXX = g++ -DELETE = rm -f -COPY = cp -OS_TYPE = OSX - -CFLAGS = -Wall -Werror -D$(OS_TYPE) $(EXTRA_FLAGS) - -MCHMOD = 711 -INSTALLDIR = /tmp/CRAWLTEST/testdev -LIB = -lncurses -lstdc++ +PROJECT = Crawl.xcodeproj +GAME = Crawl all: $(GAME) -install: $(GAME) - $(COPY) $(GAME) ${INSTALLDIR} - ${MCHMOD} ${INSTALLDIR}/$(GAME) +# Xcode handles dependencies, so install does _not_ have to depend on building. +install: + xcodebuild -project $(PROJECT) -target $(GAME) -configuration Release install clean: - $(DELETE) *.o - -distclean: - $(DELETE) *.o - $(DELETE) bones.* - $(DELETE) morgue.txt - $(DELETE) scores - $(DELETE) $(GAME) - $(DELETE) *.sav - $(DELETE) core - $(DELETE) *.0* - $(DELETE) *.lab - - -$(GAME): $(OBJECTS) - ${CXX} ${LDFLAGS} $(INCLUDES) $(CFLAGS) $(OBJECTS) -o $(GAME) $(LIB) - -debug: $(OBJECTS) - ${CXX} ${LDFLAGS} $(INCLUDES) $(CFLAGS) $(OBJECTS) -o $(GAME) $(LIB) - -profile: $(OBJECTS) - ${CXX} -g -p ${LDFLAGS} $(INCLUDES) $(CFLAGS) $(OBJECTS) -o $(GAME) $(LIB) - -.cc.o: - ${CXX} ${CFLAGS} $(INCLUDES) -c $< ${INCLUDE} - -.h.cc: - touch $@ - + 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 |