security/nss/coreconf/BeOS.mk

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:57227de29249
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 XP_DEFINE := $(XP_DEFINE:-DXP_UNIX=-DXP_BEOS)
9
10 USE_PTHREADS =
11
12 ifeq ($(USE_PTHREADS),1)
13 IMPL_STRATEGY = _PTH
14 endif
15
16 CC = gcc
17 CCC = g++
18 RANLIB = ranlib
19
20 DEFAULT_COMPILER = gcc
21
22 ifeq ($(OS_TEST),ppc)
23 OS_REL_CFLAGS = -Dppc
24 CPU_ARCH = ppc
25 else
26 OS_REL_CFLAGS = -Di386
27 CPU_ARCH = x86
28 endif
29
30 MKSHLIB = $(CC) -nostart -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
31 ifdef BUILD_OPT
32 OPTIMIZER = -O2
33 endif
34
35 OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -Wno-switch -pipe
36 OS_LIBS = -lbe
37
38 DEFINES += -DBEOS
39
40 ifdef USE_PTHREADS
41 DEFINES += -D_REENTRANT
42 endif
43
44 ARCH = beos
45
46 DSO_CFLAGS = -fPIC
47 DSO_LDOPTS =

mercurial