michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: # michael@0: # Config stuff for HP-UX michael@0: # michael@0: michael@0: include $(CORE_DEPTH)/coreconf/UNIX.mk michael@0: michael@0: DEFAULT_COMPILER = cc michael@0: michael@0: ifeq ($(OS_TEST),ia64) michael@0: CPU_ARCH = ia64 michael@0: CPU_TAG = _$(CPU_ARCH) michael@0: ifneq ($(USE_64),1) michael@0: 64BIT_TAG = _32 michael@0: endif michael@0: DLL_SUFFIX = so michael@0: else michael@0: CPU_ARCH = hppa michael@0: DLL_SUFFIX = sl michael@0: endif michael@0: CC = cc michael@0: CCC = CC michael@0: ifndef NS_USE_GCC michael@0: OS_CFLAGS += -Ae michael@0: endif michael@0: OS_CFLAGS += $(DSO_CFLAGS) -DHPUX -D$(CPU_ARCH) -D_HPUX_SOURCE -D_USE_BIG_FDS michael@0: michael@0: ifeq ($(DEFAULT_IMPL_STRATEGY),_PTH) michael@0: USE_PTHREADS = 1 michael@0: ifeq ($(CLASSIC_NSPR),1) michael@0: USE_PTHREADS = michael@0: IMPL_STRATEGY = _CLASSIC michael@0: endif michael@0: ifeq ($(PTHREADS_USER),1) michael@0: USE_PTHREADS = michael@0: IMPL_STRATEGY = _PTH_USER michael@0: endif michael@0: endif michael@0: michael@0: ifdef PTHREADS_USER michael@0: OS_CFLAGS += -D_POSIX_C_SOURCE=199506L michael@0: endif michael@0: michael@0: LDFLAGS = -z -Wl,+s michael@0: michael@0: ifdef NS_USE_GCC michael@0: LD = $(CC) michael@0: endif michael@0: MKSHLIB = $(LD) $(DSO_LDOPTS) $(RPATH) michael@0: ifdef MAPFILE michael@0: ifndef NS_USE_GCC michael@0: MKSHLIB += -c $(MAPFILE) michael@0: else michael@0: MKSHLIB += -Wl,-c,$(MAPFILE) michael@0: endif michael@0: endif michael@0: PROCESS_MAP_FILE = grep -v ';+' $< | grep -v ';-' | \ michael@0: sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' -e 's,^,+e ,' > $@ michael@0: michael@0: ifndef NS_USE_GCC michael@0: DSO_LDOPTS = -b +h $(notdir $@) michael@0: RPATH = +b '$$ORIGIN' michael@0: else michael@0: DSO_LDOPTS = -shared -Wl,+h,$(notdir $@) michael@0: RPATH = -Wl,+b,'$$ORIGIN' michael@0: endif michael@0: ifneq ($(OS_TEST),ia64) michael@0: # pa-risc michael@0: ifndef USE_64 michael@0: RPATH = michael@0: endif michael@0: endif michael@0: michael@0: # +Z generates position independent code for use in shared libraries. michael@0: ifndef NS_USE_GCC michael@0: DSO_CFLAGS = +Z michael@0: else michael@0: DSO_CFLAGS = -fPIC michael@0: ASFLAGS += -x assembler-with-cpp michael@0: endif