Bug 1822393 - set MOZ_UPDATE_CHANNEL for firefox-android builds. r=glandium,geckoview...
[gecko.git] / security / nss / coreconf / BSD_OS.mk
blob81b2b25c790d0c68fe57228c90e9abf8fb6bdbd9
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/.
6 include $(CORE_DEPTH)/coreconf/UNIX.mk
8 DEFAULT_COMPILER = gcc
9 CC = gcc
10 CCC = g++
11 RANLIB = ranlib
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
34 DLL_SUFFIX = so
36 OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -Wno-switch -DBSD_OS -DBSDI -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK
38 ARCH = bsdos
40 DSO_CFLAGS = -fPIC -DPIC
41 DSO_LDOPTS = -shared -Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
43 ifdef LIBRUNPATH
44 DSO_LDOPTS += -Wl,-R$(LIBRUNPATH)
45 endif
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 $< $@
54 G++INCLUDES = -I/usr/include/g++
56 INCLUDES += -I/usr/X11R6/include