# Setup macros definitions include $(BUILD_SYSTEM)/core/defs.mk # include generic makefile : include $(BUILD_SYSTEM)/core/check-project-variable.mk # for MAcOSX we need to FORCE CLANG CLANG:=1 # ewemple of a cross compiler : # http://biolpc22.york.ac.uk/pub/linux-mac-cross/ # http://devs.openttd.org/~truebrain/compile-farm/apple-darwin9.txt TARGET_OUT_FOLDER_BINARY := MacOS TARGET_OUT_FOLDER_LIBRAIRY := lib TARGET_OUT_FOLDER_DATA := Resources TARGET_OUT_FOLDER_DOC := doc TARGET_OUT_PREFIX_LIBRAIRY := # include generic makefile : include $(BUILD_SYSTEM)/core/main.mk FINAL_FOLDER= $(TARGET_OUT_FINAL)/$(PROJECT_NAME).app/Contents FINAL_FOLDER_BIN= $(FINAL_FOLDER)/MacOS FINAL_FOLDER_DATA= $(FINAL_FOLDER)/Resources FINAL_FILE_INFO=$(FINAL_FOLDER)/Info.plist # http://www.sandroid.org/imcross/#Deployment final: @echo ------------------------------------------------------------------------ @echo Final @echo ------------------------------------------------------------------------ @echo 'Create Folders ...' @mkdir -p $(FINAL_FOLDER) @mkdir -p $(FINAL_FOLDER_BIN) @mkdir -p $(FINAL_FOLDER_DATA) # Create the info file @echo "" > $(FINAL_FILE_INFO) @echo "" >> $(FINAL_FILE_INFO) @echo "" >> $(FINAL_FILE_INFO) @echo " " >> $(FINAL_FILE_INFO) @echo " CFBundleExecutableFile" >> $(FINAL_FILE_INFO) @echo " "$(PROJECT_NAME)"" >> $(FINAL_FILE_INFO) @echo " CFBundleName" >> $(FINAL_FILE_INFO) @echo " "$(PROJECT_NAME)"" >> $(FINAL_FILE_INFO) @echo " CFBundleIdentifier" >> $(FINAL_FILE_INFO) @echo " com."$(PROJECT_VENDOR)"."$(PROJECT_NAME)"" >> $(FINAL_FILE_INFO) @echo " CFBundleIconFile" >> $(FINAL_FILE_INFO) @echo " "$(PROJECT_NAME)".icns" >> $(FINAL_FILE_INFO) @echo " " >> $(FINAL_FILE_INFO) @echo "" >> $(FINAL_FILE_INFO) @echo "" >> $(FINAL_FILE_INFO) # copy program and data : @cp -f $(TARGET_OUT_STAGING)/usr/bin/* $(FINAL_FOLDER_BIN) $(if $(wildcard ./share/*), cp -rf share/* $(FINAL_FOLDER_DATA)) @echo pachage : TARBALL @cd $(TARGET_OUT_FINAL)/; tar -cf $(PROJECT_NAME).tar $(PROJECT_NAME).app @cd $(TARGET_OUT_FINAL)/; tar -czf $(PROJECT_NAME).tar.gz $(PROJECT_NAME).app install: final @echo ------------------------------------------------------------------------ @echo Install : ???? @echo ------------------------------------------------------------------------ uninstall: @echo ------------------------------------------------------------------------ @echo UnInstall : ???? @echo ------------------------------------------------------------------------