PageRenderTime 25ms CodeModel.GetById 16ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/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#
 39# Config stuff for HP-UX
 40#
 41
 42include $(CORE_DEPTH)/coreconf/UNIX.mk
 43
 44DEFAULT_COMPILER = cc
 45
 46ifeq ($(OS_TEST),ia64)
 47	CPU_ARCH = ia64
 48	CPU_TAG = _$(CPU_ARCH)
 49	ifneq ($(USE_64),1)
 50		64BIT_TAG = _32
 51	endif
 52	DLL_SUFFIX = so
 53else
 54	CPU_ARCH = hppa
 55	DLL_SUFFIX = sl
 56endif
 57CC         = cc
 58CCC        = CC
 59ifndef NS_USE_GCC
 60OS_CFLAGS  += -Ae
 61endif
 62OS_CFLAGS  += $(DSO_CFLAGS) -DHPUX -D$(CPU_ARCH) -D_HPUX_SOURCE -D_USE_BIG_FDS
 63
 64ifeq ($(DEFAULT_IMPL_STRATEGY),_PTH)
 65	USE_PTHREADS = 1
 66	ifeq ($(CLASSIC_NSPR),1)
 67		USE_PTHREADS =
 68		IMPL_STRATEGY = _CLASSIC
 69	endif
 70	ifeq ($(PTHREADS_USER),1)
 71		USE_PTHREADS =
 72		IMPL_STRATEGY = _PTH_USER
 73	endif
 74endif
 75
 76ifdef PTHREADS_USER
 77	OS_CFLAGS	+= -D_POSIX_C_SOURCE=199506L
 78endif
 79
 80LDFLAGS			= -z -Wl,+s
 81
 82ifdef NS_USE_GCC
 83LD = $(CC)
 84endif
 85MKSHLIB			= $(LD) $(DSO_LDOPTS) $(RPATH)
 86ifdef MAPFILE
 87ifndef NS_USE_GCC
 88MKSHLIB += -c $(MAPFILE)
 89else
 90MKSHLIB += -Wl,-c,$(MAPFILE)
 91endif
 92endif
 93PROCESS_MAP_FILE = grep -v ';+' $< | grep -v ';-' | \
 94         sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' -e 's,^,+e ,' > $@
 95
 96ifndef NS_USE_GCC
 97DSO_LDOPTS		= -b +h $(notdir $@)
 98RPATH			= +b '$$ORIGIN'
 99else
100DSO_LDOPTS		= -shared -Wl,+h,$(notdir $@)
101RPATH			= -Wl,+b,'$$ORIGIN'
102endif
103ifneq ($(OS_TEST),ia64)
104# pa-risc
105ifndef USE_64
106RPATH			=
107endif
108endif
109
110# +Z generates position independent code for use in shared libraries.
111ifndef NS_USE_GCC
112DSO_CFLAGS = +Z
113else
114DSO_CFLAGS = -fPIC
115ASFLAGS   += -x assembler-with-cpp
116endif