/xbmc/visualizations/Goom/goom2k4-0/mac/Makefile

http://github.com/xbmc/xbmc · Makefile · 88 lines · 37 code · 30 blank · 21 comment · 0 complexity · 232889f6e690aefe4cdb18cfd28277a5 MD5 · raw file

  1. # Makefile
  2. # author: Gyom / iOS-Software
  3. # Jan 2005
  4. ###############
  5. # Settings
  6. macimage_name=iGoom
  7. libobjects=../src/.libs/*.o
  8. #buildroot=defaults read com.apple.Xcode "PBXApplicationwideBuildSettings" | cut -f2 -d"SYMROOT" | cut -f2 -d"\""
  9. buildroot=.
  10. BUNDLE=$(buildroot)/iGoom.bundle
  11. APP=$(buildroot)/iGoom.app
  12. installer=iTunes/iTunes-Installer.app
  13. all: $(APP) $(BUNDLE)
  14. ###############
  15. # Misc library Targets
  16. # We build an embedable version of libgoom
  17. StandAlone/libgoom2.0.dylib:$(libobjects)
  18. gcc -dynamiclib -flat_namespace -o StandAlone/libgoom2.0.dylib $(libobjects) -install_name @executable_path/../Frameworks/libgoom2.0.dylib -compatibility_version 1 -current_version 1.0 -seg1addr 0x40000 -prebind
  19. # We link static only with iTunes because the install_path
  20. # cannot be set properly to embed the lib in the bundle
  21. # We must not place it in the mac folder because the bundle will
  22. # link against the dynamic version if it is present
  23. iTunes/libgoom2.0.a:$(libobjects)
  24. libtool -static -o iTunes/libgoom2.0.a $(libobjects)
  25. #########################
  26. # Standalone Application
  27. standalone:$(APP)
  28. $(APP): StandAlone/libgoom2.0.dylib Makefile
  29. xcodebuild -target "iGoom - StandAlone" -buildstyle Deployment SYMROOT=$(buildroot)
  30. cleanstandalone:
  31. xcodebuild clean -target "iGoom - StandAlone" -buildstyle Deployment SYMROOT=$(buildroot)
  32. ###############
  33. # iTunes Plugin
  34. itunes:$(BUNDLE)
  35. $(BUNDLE):iTunes/libgoom2.0.a Makefile
  36. xcodebuild -target "iGoom - iTunes" -buildstyle Deployment SYMROOT=$(buildroot)
  37. cleanitunes:
  38. xcodebuild clean -target "iGoom - iTunes" -buildstyle Deployment SYMROOT=$(buildroot)
  39. $(installer):iTunes/Installer.applescript
  40. osacompile -o $(installer) -x iTunes/Installer.applescript
  41. ######################
  42. # Distribution Package
  43. all: $(APP) $(BUNDLE)
  44. package:$(macimage_name).dmg
  45. $(macimage_name).dmg:all ReadMe.rtf $(installer)
  46. rm -rf $(macimage_name).dmg $(macimage_name)
  47. mkdir -p $(macimage_name)
  48. cp -r $(BUNDLE) $(macimage_name)
  49. cp -r $(APP) $(macimage_name)
  50. cp ReadMe.rtf $(macimage_name)
  51. cp -rf $(installer) $(macimage_name)/
  52. hdiutil create -srcfolder $(macimage_name) $(macimage_name).dmg
  53. ##########
  54. # Clean up
  55. clean:
  56. rm -rf $(BUNDLE) $(APP) $(installer)
  57. rm -rf $(macimage_name).dmg $(macimage_name) $(buildroot)/iGoom.build
  58. rm -f StandAlone/libgoom2.* iTunes/libgoom2.* libgoom2.*