(svn r4994) -Fix: changed the stripping parts a bit. OSX is no longer an exeption
This commit is contained in:
		
							
								
								
									
										7
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								Makefile
									
									
									
									
									
								
							@@ -348,18 +348,11 @@ ifndef PROFILE
 | 
				
			|||||||
# Release mode
 | 
					# Release mode
 | 
				
			||||||
ifndef MORPHOS
 | 
					ifndef MORPHOS
 | 
				
			||||||
ifndef IRIX
 | 
					ifndef IRIX
 | 
				
			||||||
ifdef OSX
 | 
					 | 
				
			||||||
# it appears that OSX can't handle automated stripping when mixing C and C++
 | 
					 | 
				
			||||||
# we will do it manually in the target OSX_STRIP
 | 
					 | 
				
			||||||
OSX_STRIP:=OSX_STRIP
 | 
					 | 
				
			||||||
else
 | 
					 | 
				
			||||||
# automatical strip breaks under morphos
 | 
					# automatical strip breaks under morphos
 | 
				
			||||||
CC_CFLAGS += -s
 | 
					 | 
				
			||||||
LDFLAGS += -s
 | 
					LDFLAGS += -s
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
ifdef OSX
 | 
					ifdef OSX
 | 
				
			||||||
# these compilerflags makes the app run as fast as possible without making the app unstable. It works on G3 or newer
 | 
					# these compilerflags makes the app run as fast as possible without making the app unstable. It works on G3 or newer
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,9 +42,6 @@ endif
 | 
				
			|||||||
ifndef LIPO
 | 
					ifndef LIPO
 | 
				
			||||||
LIPO := lipo
 | 
					LIPO := lipo
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
ifndef STRIP
 | 
					 | 
				
			||||||
STRIP := strip
 | 
					 | 
				
			||||||
endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# targets to link OpenTTD
 | 
					# targets to link OpenTTD
 | 
				
			||||||
$(TTD): $(OTTD_PPC) $(OTTD_i386) $(OTTD_PPC970)
 | 
					$(TTD): $(OTTD_PPC) $(OTTD_i386) $(OTTD_PPC970)
 | 
				
			||||||
@@ -102,10 +99,6 @@ $(OTTD_PPC970): $(MAKE_CONFIG) $(OBJS_ppc970)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# manual strip, as the -s option fails
 | 
					 | 
				
			||||||
$(OSX_STRIP): $(TTD)
 | 
					 | 
				
			||||||
	$(Q)$(STRIP) openttd
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
ifdef JAGUAR
 | 
					ifdef JAGUAR
 | 
				
			||||||
JAGUAR_POSTFIX := -jaguar
 | 
					JAGUAR_POSTFIX := -jaguar
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
@@ -113,7 +106,7 @@ endif
 | 
				
			|||||||
# build the bundle. OSX wants to keep apps in bundles, so we will give it one
 | 
					# build the bundle. OSX wants to keep apps in bundles, so we will give it one
 | 
				
			||||||
# 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
 | 
					# 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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
BUILD_OSX_BUNDLE: $(TTD) $(OSX_STRIP)
 | 
					BUILD_OSX_BUNDLE: $(TTD)
 | 
				
			||||||
	@echo '===> Building application bundle'
 | 
						@echo '===> Building application bundle'
 | 
				
			||||||
	$(Q)rm -fr "$(OSXAPP)"
 | 
						$(Q)rm -fr "$(OSXAPP)"
 | 
				
			||||||
	$(Q)mkdir -p "$(OSXAPP)"/Contents/MacOS
 | 
						$(Q)mkdir -p "$(OSXAPP)"/Contents/MacOS
 | 
				
			||||||
@@ -148,6 +141,6 @@ release: all
 | 
				
			|||||||
	$(Q)hdiutil create -ov -format UDZO -srcfolder "OpenTTD $(REV)" openttd-"$(REV)"-osx"$(JAGUAR_POSTFIX)".dmg
 | 
						$(Q)hdiutil create -ov -format UDZO -srcfolder "OpenTTD $(REV)" openttd-"$(REV)"-osx"$(JAGUAR_POSTFIX)".dmg
 | 
				
			||||||
	$(Q)rm -fr "OpenTTD $(REV)"
 | 
						$(Q)rm -fr "OpenTTD $(REV)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$(OSX): $(TTD) $(OSX_STRIP) BUILD_OSX_BUNDLE
 | 
					$(OSX): $(TTD) BUILD_OSX_BUNDLE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.PHONY: release $(BUILD_OSX_BUNDLE) $(UNIVERSAL_BINARY)
 | 
					.PHONY: release $(BUILD_OSX_BUNDLE) $(UNIVERSAL_BINARY)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user