security/nss/coreconf/BSD_OS.mk

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:c87c82e6ec08
1 #
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
6 include $(CORE_DEPTH)/coreconf/UNIX.mk
7
8 DEFAULT_COMPILER = gcc
9 CC = gcc
10 CCC = g++
11 RANLIB = ranlib
12
13 ifeq ($(OS_TEST),i386)
14 OS_REL_CFLAGS = -D__i386__
15 CPU_ARCH = x86
16 else
17 ifeq ($(OS_TEST),ppc)
18 OS_REL_CFLAGS = -D__ppc__
19 CPU_ARCH = ppc
20 else
21 ifeq ($(OS_TEST),sparc)
22 OS_REL_CFLAGS = -D__sparc__
23 CPU_ARCH = sparc
24 else
25 # treat the ultrasparc like a regular sparc, at least for now!
26 ifeq ($(OS_TEST),sparc_v9)
27 OS_REL_CFLAGS = -D__sparc__
28 CPU_ARCH = sparc
29 endif
30 endif
31 endif
32 endif
33
34 DLL_SUFFIX = so
35
36 OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -Wno-switch -DBSD_OS -DBSDI -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK
37
38 ARCH = bsdos
39
40 DSO_CFLAGS = -fPIC -DPIC
41 DSO_LDOPTS = -shared -Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
42
43 ifdef LIBRUNPATH
44 DSO_LDOPTS += -Wl,-R$(LIBRUNPATH)
45 endif
46
47 MKSHLIB = $(CC) $(DSO_LDOPTS)
48 ifdef MAPFILE
49 # Add LD options to restrict exported symbols to those in the map file
50 endif
51 # Change PROCESS to put the mapfile in the correct format for this platform
52 PROCESS_MAP_FILE = cp $< $@
53
54 G++INCLUDES = -I/usr/include/g++
55
56 INCLUDES += -I/usr/X11R6/include

mercurial