/security/coreconf/HP-UX.mk

http://github.com/zpao/v8monkey · Makefile · 116 lines · 65 code · 10 blank · 41 comment · 0 complexity · a2d00de2ba14e09e11214939b6451106 MD5 · raw file

  1. #
  2. # ***** BEGIN LICENSE BLOCK *****
  3. # Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4. #
  5. # The contents of this file are subject to the Mozilla Public License Version
  6. # 1.1 (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. # http://www.mozilla.org/MPL/
  9. #
  10. # Software distributed under the License is distributed on an "AS IS" basis,
  11. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12. # for the specific language governing rights and limitations under the
  13. # License.
  14. #
  15. # The Original Code is the Netscape security libraries.
  16. #
  17. # The Initial Developer of the Original Code is
  18. # Netscape Communications Corporation.
  19. # Portions created by the Initial Developer are Copyright (C) 1994-2000
  20. # the Initial Developer. All Rights Reserved.
  21. #
  22. # Contributor(s):
  23. #
  24. # Alternatively, the contents of this file may be used under the terms of
  25. # either the GNU General Public License Version 2 or later (the "GPL"), or
  26. # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27. # in which case the provisions of the GPL or the LGPL are applicable instead
  28. # of those above. If you wish to allow use of your version of this file only
  29. # under the terms of either the GPL or the LGPL, and not to allow others to
  30. # use your version of this file under the terms of the MPL, indicate your
  31. # decision by deleting the provisions above and replace them with the notice
  32. # and other provisions required by the GPL or the LGPL. If you do not delete
  33. # the provisions above, a recipient may use your version of this file under
  34. # the terms of any one of the MPL, the GPL or the LGPL.
  35. #
  36. # ***** END LICENSE BLOCK *****
  37. #
  38. # Config stuff for HP-UX
  39. #
  40. include $(CORE_DEPTH)/coreconf/UNIX.mk
  41. DEFAULT_COMPILER = cc
  42. ifeq ($(OS_TEST),ia64)
  43. CPU_ARCH = ia64
  44. CPU_TAG = _$(CPU_ARCH)
  45. ifneq ($(USE_64),1)
  46. 64BIT_TAG = _32
  47. endif
  48. DLL_SUFFIX = so
  49. else
  50. CPU_ARCH = hppa
  51. DLL_SUFFIX = sl
  52. endif
  53. CC = cc
  54. CCC = CC
  55. ifndef NS_USE_GCC
  56. OS_CFLAGS += -Ae
  57. endif
  58. OS_CFLAGS += $(DSO_CFLAGS) -DHPUX -D$(CPU_ARCH) -D_HPUX_SOURCE -D_USE_BIG_FDS
  59. ifeq ($(DEFAULT_IMPL_STRATEGY),_PTH)
  60. USE_PTHREADS = 1
  61. ifeq ($(CLASSIC_NSPR),1)
  62. USE_PTHREADS =
  63. IMPL_STRATEGY = _CLASSIC
  64. endif
  65. ifeq ($(PTHREADS_USER),1)
  66. USE_PTHREADS =
  67. IMPL_STRATEGY = _PTH_USER
  68. endif
  69. endif
  70. ifdef PTHREADS_USER
  71. OS_CFLAGS += -D_POSIX_C_SOURCE=199506L
  72. endif
  73. LDFLAGS = -z -Wl,+s
  74. ifdef NS_USE_GCC
  75. LD = $(CC)
  76. endif
  77. MKSHLIB = $(LD) $(DSO_LDOPTS) $(RPATH)
  78. ifdef MAPFILE
  79. ifndef NS_USE_GCC
  80. MKSHLIB += -c $(MAPFILE)
  81. else
  82. MKSHLIB += -Wl,-c,$(MAPFILE)
  83. endif
  84. endif
  85. PROCESS_MAP_FILE = grep -v ';+' $< | grep -v ';-' | \
  86. sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' -e 's,^,+e ,' > $@
  87. ifndef NS_USE_GCC
  88. DSO_LDOPTS = -b +h $(notdir $@)
  89. RPATH = +b '$$ORIGIN'
  90. else
  91. DSO_LDOPTS = -shared -Wl,+h,$(notdir $@)
  92. RPATH = -Wl,+b,'$$ORIGIN'
  93. endif
  94. ifneq ($(OS_TEST),ia64)
  95. # pa-risc
  96. ifndef USE_64
  97. RPATH =
  98. endif
  99. endif
  100. # +Z generates position independent code for use in shared libraries.
  101. ifndef NS_USE_GCC
  102. DSO_CFLAGS = +Z
  103. else
  104. DSO_CFLAGS = -fPIC
  105. ASFLAGS += -x assembler-with-cpp
  106. endif