security/nss/coreconf/BSD_OS.mk

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/coreconf/BSD_OS.mk	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +#
     1.5 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 +
     1.9 +include $(CORE_DEPTH)/coreconf/UNIX.mk
    1.10 +
    1.11 +DEFAULT_COMPILER	= gcc
    1.12 +CC			= gcc
    1.13 +CCC			= g++
    1.14 +RANLIB			= ranlib
    1.15 +
    1.16 +ifeq ($(OS_TEST),i386)
    1.17 +	OS_REL_CFLAGS	= -D__i386__
    1.18 +	CPU_ARCH	= x86
    1.19 +else
    1.20 +ifeq ($(OS_TEST),ppc)
    1.21 +	OS_REL_CFLAGS	= -D__ppc__
    1.22 +	CPU_ARCH	= ppc
    1.23 +else
    1.24 +ifeq ($(OS_TEST),sparc)
    1.25 +	OS_REL_CFLAGS	= -D__sparc__
    1.26 +	CPU_ARCH	= sparc
    1.27 +else
    1.28 +# treat the ultrasparc like a regular sparc, at least for now!
    1.29 +ifeq ($(OS_TEST),sparc_v9)
    1.30 +	OS_REL_CFLAGS	= -D__sparc__
    1.31 +	CPU_ARCH	= sparc
    1.32 +endif
    1.33 +endif
    1.34 +endif
    1.35 +endif
    1.36 +
    1.37 +DLL_SUFFIX		= so
    1.38 +
    1.39 +OS_CFLAGS		= $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -Wno-switch -DBSD_OS -DBSDI -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK
    1.40 +
    1.41 +ARCH			= bsdos
    1.42 +
    1.43 +DSO_CFLAGS		= -fPIC -DPIC
    1.44 +DSO_LDOPTS		= -shared -Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
    1.45 +
    1.46 +ifdef LIBRUNPATH
    1.47 +DSO_LDOPTS		+= -Wl,-R$(LIBRUNPATH)
    1.48 +endif
    1.49 +
    1.50 +MKSHLIB			= $(CC) $(DSO_LDOPTS)
    1.51 +ifdef MAPFILE
    1.52 +# Add LD options to restrict exported symbols to those in the map file
    1.53 +endif
    1.54 +# Change PROCESS to put the mapfile in the correct format for this platform
    1.55 +PROCESS_MAP_FILE = cp $< $@
    1.56 +
    1.57 +G++INCLUDES		= -I/usr/include/g++
    1.58 +
    1.59 +INCLUDES		+= -I/usr/X11R6/include

mercurial