########### CC ####################### CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1 INCPATH1=/Developer/Platforms/iPhoneOS.platform/Developer/usr/include INCPATH2=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/usr/include INCPATH3=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/System/Library/Frameworks INCPATH4=~/myframeworks INCPATH5=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/usr/include INCPATH6=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/usr/lib/gcc/arm-apple-darwin9/4.0.1/include/ CFLAGS= -I$(INCPATH1) \ -I$(INCPATH2) \ -I$(INCPATH3) \ -I$(INCPATH4) \ -I$(INCPATH5) \ -I$(INCPATH6) \ -I. ############# LD ####################### LD=$(CC) LDPATH1=/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/gcc/arm-apple-darwin9/4.0.1 LDPATH2=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/usr/lib LDPATH3= FPATH=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/System/Library/Frameworks LDFLAGS=-lobjc \ -framework CoreFoundation \ -framework Foundation \ -framework UIKit \ -framework CoreGraphics \ -L$(LDPATH1) \ -L$(LDPATH2) \ -L$(LDPATH3) \ -F$(FPATH) \ -bind_at_load \ -lgcc_s.1 FILES=Classes/*.o \ main.o %.o: %.m $(CC) -c $(CFLAGS) -x objective-c $< -o $@ APPNAME=myName ALL: $(APPNAME)
$(APPNAME): $(FILES) $(LD) $(LDFLAGS) -v -o $@ $^
Jul 9, 2009
quick notes
Subscribe to:
Posts (Atom)