macosx.mk 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. include $(ROOTDIR)/makefiles/arch/unix.mk
  2. DESTDIR ?= /Applications
  3. INSTALLDIR = /FBReader.app
  4. BINDIR = $(INSTALLDIR)/Contents/MacOS
  5. SHAREDIR = $(INSTALLDIR)/Contents/Share
  6. IMAGEDIR = $(SHAREDIR)/icons
  7. APPIMAGEDIR = $(SHAREDIR)/icons
  8. SHAREDIR_MACRO = ~~/Contents/Share
  9. IMAGEDIR_MACRO = $(SHAREDIR_MACRO)/icons
  10. APPIMAGEDIR_MACRO = $(SHAREDIR_MACRO)/icons
  11. ZLSHARED = no
  12. TOOLSPATH = /Developer/usr/bin
  13. CC = $(TOOLSPATH)/gcc-4.2
  14. AR = $(TOOLSPATH)/ar rsu
  15. LD = $(TOOLSPATH)/g++-4.2
  16. MACOS_VERSION = 10.5
  17. #ARCH_FLAGS = -arch x86_64 -arch i386 -arch ppc7400 -arch ppc64
  18. ARCH_FLAGS = -arch i386 -arch ppc7400
  19. CFLAGS_NOARCH = \
  20. -fmessage-length=0 -pipe -fpascal-strings -fasm-blocks \
  21. -mdynamic-no-pic -W -Wall \
  22. -isysroot /Developer/SDKs/MacOSX$(MACOS_VERSION).sdk \
  23. -fvisibility=hidden -fvisibility-inlines-hidden \
  24. -mmacosx-version-min=$(MACOS_VERSION) \
  25. -gdwarf-2
  26. CFLAGS = $(ARCH_FLAGS) $(CFLAGS_NOARCH)
  27. LDFLAGS = $(ARCH_FLAGS) \
  28. -isysroot /Developer/SDKs/MacOSX$(MACOS_VERSION).sdk \
  29. -mmacosx-version-min=$(MACOS_VERSION)
  30. EXTERNAL_INCLUDE = -I/usr/local/include
  31. EXTERNAL_LIBS = -liconv
  32. UILIBS = -framework Cocoa $(ROOTDIR)/zlibrary/ui/src/cocoa/application/CocoaWindow.o $(ROOTDIR)/zlibrary/ui/src/cocoa/library/ZLCocoaAppDelegate.o
  33. RM = rm -rvf
  34. RM_QUIET = rm -rf