diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-20 08:20:50 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-20 08:21:55 (GMT) |
commit | 6c3332037513e8044671faa1d8195f3c0dbdf25a (patch) | |
tree | 009cbdee2c7da1acaf0232fd4461753a38691549 /Makefile | |
parent | fa9a1b5e78c3af94f9a69f52aef0b666c0d5cf8c (diff) | |
download | swift-contrib-6c3332037513e8044671faa1d8195f3c0dbdf25a.zip swift-contrib-6c3332037513e8044671faa1d8195f3c0dbdf25a.tar.bz2 |
Roll our own Cocoa builds.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -17,12 +17,14 @@ QUIET_CC = @echo " " "CC " $@; QUIET_CXX = @echo " " "CXX " $@; QUIET_AR = @echo " " "AR " $@; QUIET_LINK = @echo " " "LINK" $@; +QUIET_NIB = @echo " " "NIB " $@; else QUIET_MM = @echo " $(shell tput setaf 5)MM$(shell tput sgr0) " $@; QUIET_CC = @echo " $(shell tput setaf 3)CC$(shell tput sgr0) " $@; QUIET_CXX = @echo " $(shell tput setaf 2)CXX$(shell tput sgr0) " $@; QUIET_AR = @echo " $(shell tput setaf 1)AR$(shell tput sgr0) " $@; QUIET_LINK = @echo " $(shell tput setaf 6)LINK$(shell tput sgr0)" $@; +QUIET_NIB = @echo " $(shell tput setaf 4)NIB$(shell tput sgr0) " $@; endif endif endif @@ -84,6 +86,9 @@ ifeq (,$(findstring clean-deps, $(MAKECMDGOALS))) endif endif +%/PkgInfo: + echo -n -e "APPL\x3f\x3f\x3f\x3f" > $@ + %.dep: %.cpp $(QUIET_MM)$(MM) -MM -MG -MT $(basename $@).o $(CPPFLAGS) $(filter-out -arch armv6 -arch i386 -arch ppc,$(CXXFLAGS)) $< > $@ @@ -91,7 +96,10 @@ endif $(QUIET_MM)$(MM) -MM -MG -MT $(basename $@).o $(CPPFLAGS) $(filter-out -arch armv6 -arch i386 -arch ppc,$(CFLAGS)) $< > $@ %.dep: %.mm - $(QUIET_MM)$(CC) -MM -MG -MT $(basename $@).o $(CPPFLAGS) $(filter-out -arch armv6 -arch i386 -arch ppc,$(CXXFLAGS)) $< > $@ + $(QUIET_MM)$(MM) -MM -MG -MT $(basename $@).o $(CPPFLAGS) $(filter-out -arch armv6 -arch i386 -arch ppc,$(CXXFLAGS)) $< > $@ + +%.dep: %.m + $(QUIET_MM)$(MM) -MM -MG -MT $(basename $@).o $(CPPFLAGS) $(filter-out -arch armv6 -arch i386 -arch ppc,$(CFLAGS)) $< > $@ %.o: %.c $(QUIET_CC)$(CC) -c $< -o $@ $(CPPFLAGS) $(CFLAGS) @@ -101,3 +109,9 @@ endif %.o: %.mm $(QUIET_CC)$(CC) -c $< -o $@ $(CPPFLAGS) $(CXXFLAGS) + +%.o: %.m + $(QUIET_CC)$(CC) -c $< -o $@ $(CPPFLAGS) $(CFLAGS) + +%.nib: %.xib + $(QUIET_NIB)/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile $@ $< |