Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # |
michael@0 | 2 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | |
michael@0 | 6 | # |
michael@0 | 7 | # Config stuff for HP-UX |
michael@0 | 8 | # |
michael@0 | 9 | |
michael@0 | 10 | include $(CORE_DEPTH)/coreconf/UNIX.mk |
michael@0 | 11 | |
michael@0 | 12 | DEFAULT_COMPILER = cc |
michael@0 | 13 | |
michael@0 | 14 | ifeq ($(OS_TEST),ia64) |
michael@0 | 15 | CPU_ARCH = ia64 |
michael@0 | 16 | CPU_TAG = _$(CPU_ARCH) |
michael@0 | 17 | ifneq ($(USE_64),1) |
michael@0 | 18 | 64BIT_TAG = _32 |
michael@0 | 19 | endif |
michael@0 | 20 | DLL_SUFFIX = so |
michael@0 | 21 | else |
michael@0 | 22 | CPU_ARCH = hppa |
michael@0 | 23 | DLL_SUFFIX = sl |
michael@0 | 24 | endif |
michael@0 | 25 | CC = cc |
michael@0 | 26 | CCC = CC |
michael@0 | 27 | ifndef NS_USE_GCC |
michael@0 | 28 | OS_CFLAGS += -Ae |
michael@0 | 29 | endif |
michael@0 | 30 | OS_CFLAGS += $(DSO_CFLAGS) -DHPUX -D$(CPU_ARCH) -D_HPUX_SOURCE -D_USE_BIG_FDS |
michael@0 | 31 | |
michael@0 | 32 | ifeq ($(DEFAULT_IMPL_STRATEGY),_PTH) |
michael@0 | 33 | USE_PTHREADS = 1 |
michael@0 | 34 | ifeq ($(CLASSIC_NSPR),1) |
michael@0 | 35 | USE_PTHREADS = |
michael@0 | 36 | IMPL_STRATEGY = _CLASSIC |
michael@0 | 37 | endif |
michael@0 | 38 | ifeq ($(PTHREADS_USER),1) |
michael@0 | 39 | USE_PTHREADS = |
michael@0 | 40 | IMPL_STRATEGY = _PTH_USER |
michael@0 | 41 | endif |
michael@0 | 42 | endif |
michael@0 | 43 | |
michael@0 | 44 | ifdef PTHREADS_USER |
michael@0 | 45 | OS_CFLAGS += -D_POSIX_C_SOURCE=199506L |
michael@0 | 46 | endif |
michael@0 | 47 | |
michael@0 | 48 | LDFLAGS = -z -Wl,+s |
michael@0 | 49 | |
michael@0 | 50 | ifdef NS_USE_GCC |
michael@0 | 51 | LD = $(CC) |
michael@0 | 52 | endif |
michael@0 | 53 | MKSHLIB = $(LD) $(DSO_LDOPTS) $(RPATH) |
michael@0 | 54 | ifdef MAPFILE |
michael@0 | 55 | ifndef NS_USE_GCC |
michael@0 | 56 | MKSHLIB += -c $(MAPFILE) |
michael@0 | 57 | else |
michael@0 | 58 | MKSHLIB += -Wl,-c,$(MAPFILE) |
michael@0 | 59 | endif |
michael@0 | 60 | endif |
michael@0 | 61 | PROCESS_MAP_FILE = grep -v ';+' $< | grep -v ';-' | \ |
michael@0 | 62 | sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' -e 's,^,+e ,' > $@ |
michael@0 | 63 | |
michael@0 | 64 | ifndef NS_USE_GCC |
michael@0 | 65 | DSO_LDOPTS = -b +h $(notdir $@) |
michael@0 | 66 | RPATH = +b '$$ORIGIN' |
michael@0 | 67 | else |
michael@0 | 68 | DSO_LDOPTS = -shared -Wl,+h,$(notdir $@) |
michael@0 | 69 | RPATH = -Wl,+b,'$$ORIGIN' |
michael@0 | 70 | endif |
michael@0 | 71 | ifneq ($(OS_TEST),ia64) |
michael@0 | 72 | # pa-risc |
michael@0 | 73 | ifndef USE_64 |
michael@0 | 74 | RPATH = |
michael@0 | 75 | endif |
michael@0 | 76 | endif |
michael@0 | 77 | |
michael@0 | 78 | # +Z generates position independent code for use in shared libraries. |
michael@0 | 79 | ifndef NS_USE_GCC |
michael@0 | 80 | DSO_CFLAGS = +Z |
michael@0 | 81 | else |
michael@0 | 82 | DSO_CFLAGS = -fPIC |
michael@0 | 83 | ASFLAGS += -x assembler-with-cpp |
michael@0 | 84 | endif |