os/macosx/Makefile
changeset 3212 39c32be8404c
parent 3211 a0f00b66cfad
child 3303 9e18c441e9b2
equal deleted inserted replaced
3211:a0f00b66cfad 3212:39c32be8404c
     1 # $Id: Makefile 3214 2005-11-17 19:43:37Z bjarni $
     1 # $Id: Makefile 3214 2005-11-17 19:43:37Z bjarni $
     2 # This makefile is not a standalone makefile, but is called from the general one
     2 # This makefile is not a standalone makefile, but is called from the general one
     3 # it contains targets specific to MacOS X
     3 # it contains targets specific to MacOS X
     4 
     4 
     5 ifdef TRIPPLE_BINARY
     5 ifdef TRIPLE_BINARY
     6 # this is to add G5_FLAGS to ppc970 builds only. If the ability to add flags to a single arch only shows up in the future
     6 # this is to add G5_FLAGS to ppc970 builds only. If the ability to add flags to a single arch only shows up in the future
     7 # we can get rid of this. Xcode supports arch dependant flags, but we can't do it in the makefile (yet?)
     7 # we can get rid of this. Xcode supports arch dependant flags, but we can't do it in the makefile (yet?)
     8 %.o: %.c $(MAKE_CONFIG)
     8 %.o: %.c $(MAKE_CONFIG)
     9 	@echo '===> Compiling $<'
     9 	@echo '===> Compiling $<'
    10 	$(Q)$(CC) $(CFLAGS) $(CDEFS) -arch ppc -c -arch i386 -o $@.uni $<
    10 	$(Q)$(CC) $(CFLAGS) $(CDEFS) -arch ppc -c -arch i386 -o $@.uni $<
    35 endif
    35 endif
    36 
    36 
    37 # build the bundle. OSX wants to keep apps in bundles, so we will give it one
    37 # build the bundle. OSX wants to keep apps in bundles, so we will give it one
    38 # the good thing about bundles is that you can keep extra files in them, so we keep lng files and a data dir in it
    38 # the good thing about bundles is that you can keep extra files in them, so we keep lng files and a data dir in it
    39 
    39 
    40 $(BUILD_OSX_BUNDLE): $(TTD) $(UNIVERSAL_BINARY) $(TRIPPLE_BINARY)
    40 $(BUILD_OSX_BUNDLE): $(TTD)
    41 	@echo '===> Building application bundle'
    41 	@echo '===> Building application bundle'
    42 	$(Q)rm -fr "$(OSXAPP)"
    42 	$(Q)rm -fr "$(OSXAPP)"
    43 	$(Q)mkdir -p "$(OSXAPP)"/Contents/MacOS
    43 	$(Q)mkdir -p "$(OSXAPP)"/Contents/MacOS
    44 	$(Q)mkdir -p "$(OSXAPP)"/Contents/Resources
    44 	$(Q)mkdir -p "$(OSXAPP)"/Contents/Resources
    45 	$(Q)mkdir -p "$(OSXAPP)"/Contents/Data
    45 	$(Q)mkdir -p "$(OSXAPP)"/Contents/Data