/vm/templates/mac_osx.make

http://github.com/ticking/self · Unknown · 57 lines · 42 code · 15 blank · 0 comment · 0 complexity · f545451e5ae19bfd3f0ff909835f5096 MD5 · raw file

  1. # Sun-$Revision: 30.11 $
  2. # Copyright 1994-2006 Sun Microsystems, Inc. and Stanford University.
  3. # See the LICENSE file for license information.
  4. # Makefile template for compiling on MAC OSX
  5. TARGET_OS_VERSION = MACOSX_VERSION
  6. # another name for the same thing
  7. VM_SUBDIR = mac_osx
  8. TARGET_ARCH = PPC_ARCH
  9. HOST_ARCH = $(TARGET_ARCH)
  10. AS = as
  11. GCC = g++2
  12. SRC_DIRS = $(shell cd ${ROOT}/vm/src; ${MAKE} TARGET_COMPILER=gcc TARGET_ARCH=ppc srcDirList)
  13. # include . for the precompiled header file
  14. SRC_PATH = . \
  15. ${ROOT}/vm/${VM_SUBDIR}/generated/incls \
  16. $(SRC_DIRS:%=${ROOT}/vm/src/%)
  17. #ASM_FILTER = | sed 's;//.*;;'
  18. ASM_FILTER = | removeUnderscore | sed 's;//.*;;'
  19. GLUE_LD_FLAGS = -G
  20. VPATH += $(SRC_PATH:%=%:)
  21. CPP = /usr/bin/cpp
  22. XLIBLIBDIRS = -L/usr/X11R6/lib
  23. XLIBLIBS = -lX11 -lXext
  24. CLIBS =
  25. # link termcap and ucb statically to avoid having to mess with LD_LIBRARY_PATH
  26. OS_GLUE_LIBS =
  27. # precomp headers for OS X
  28. %.p: %.h
  29. @lock_run _$@.lock " \
  30. echo Precompiling header $< to $@; \
  31. ${COMPILE.gnu.precomp} $< -o $@; \
  32. "
  33. CONFIGDEFS = \
  34. ${DYNAMIC} -DXLIB -DMACTOOLBOX_LIB -DFAST_COMPILER \
  35. -DDEBUG \
  36. -DCOMPILER=${COMPILER} -DASSEMBLER=${ASSEMBLER} \
  37. -DMANUFACTURER=${MANUFACTURER}
  38. # -DUSE_TWO_UNDERSCORES
  39. INCLUDES += -I/usr/X11R6/include
  40. COMPILE.gnu.precomp = ${COMPILE.gnu} ${CFLAGS} -precomp
  41. # needed for OS X
  42. LOCALLIBS += -lcurses -framework CoreServices -framework Carbon