security/nss/coreconf/BSD_OS.mk

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

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 include $(CORE_DEPTH)/coreconf/UNIX.mk
michael@0 7
michael@0 8 DEFAULT_COMPILER = gcc
michael@0 9 CC = gcc
michael@0 10 CCC = g++
michael@0 11 RANLIB = ranlib
michael@0 12
michael@0 13 ifeq ($(OS_TEST),i386)
michael@0 14 OS_REL_CFLAGS = -D__i386__
michael@0 15 CPU_ARCH = x86
michael@0 16 else
michael@0 17 ifeq ($(OS_TEST),ppc)
michael@0 18 OS_REL_CFLAGS = -D__ppc__
michael@0 19 CPU_ARCH = ppc
michael@0 20 else
michael@0 21 ifeq ($(OS_TEST),sparc)
michael@0 22 OS_REL_CFLAGS = -D__sparc__
michael@0 23 CPU_ARCH = sparc
michael@0 24 else
michael@0 25 # treat the ultrasparc like a regular sparc, at least for now!
michael@0 26 ifeq ($(OS_TEST),sparc_v9)
michael@0 27 OS_REL_CFLAGS = -D__sparc__
michael@0 28 CPU_ARCH = sparc
michael@0 29 endif
michael@0 30 endif
michael@0 31 endif
michael@0 32 endif
michael@0 33
michael@0 34 DLL_SUFFIX = so
michael@0 35
michael@0 36 OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -Wno-switch -DBSD_OS -DBSDI -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK
michael@0 37
michael@0 38 ARCH = bsdos
michael@0 39
michael@0 40 DSO_CFLAGS = -fPIC -DPIC
michael@0 41 DSO_LDOPTS = -shared -Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
michael@0 42
michael@0 43 ifdef LIBRUNPATH
michael@0 44 DSO_LDOPTS += -Wl,-R$(LIBRUNPATH)
michael@0 45 endif
michael@0 46
michael@0 47 MKSHLIB = $(CC) $(DSO_LDOPTS)
michael@0 48 ifdef MAPFILE
michael@0 49 # Add LD options to restrict exported symbols to those in the map file
michael@0 50 endif
michael@0 51 # Change PROCESS to put the mapfile in the correct format for this platform
michael@0 52 PROCESS_MAP_FILE = cp $< $@
michael@0 53
michael@0 54 G++INCLUDES = -I/usr/include/g++
michael@0 55
michael@0 56 INCLUDES += -I/usr/X11R6/include

mercurial