security/nss/coreconf/NetBSD.mk

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:e7e23520d379
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 CPU_ARCH := $(shell uname -p)
14 ifeq ($(CPU_ARCH),i386)
15 OS_REL_CFLAGS = -Di386
16 CPU_ARCH = x86
17 endif
18
19 ifndef OBJECT_FMT
20 OBJECT_FMT := $(shell if echo __ELF__ | $${CC:-cc} -E - | grep -q __ELF__ ; then echo a.out ; else echo ELF ; fi)
21 endif
22
23 ifeq ($(OBJECT_FMT),ELF)
24 DLL_SUFFIX = so
25 else
26 DLL_SUFFIX = so.1.0
27 endif
28
29 OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -Wno-switch -pipe -DNETBSD -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK
30
31 OS_LIBS = -lcompat
32
33 ARCH = netbsd
34
35 DSO_CFLAGS = -fPIC -DPIC
36 DSO_LDOPTS = -shared
37 ifeq ($(OBJECT_FMT),ELF)
38 DSO_LDOPTS += -Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
39 endif
40
41 ifdef LIBRUNPATH
42 DSO_LDOPTS += -Wl,-R$(LIBRUNPATH)
43 endif
44
45 MKSHLIB = $(CC) $(DSO_LDOPTS)
46 ifdef MAPFILE
47 # Add LD options to restrict exported symbols to those in the map file
48 endif
49 # Change PROCESS to put the mapfile in the correct format for this platform
50 PROCESS_MAP_FILE = cp $< $@
51
52
53 G++INCLUDES = -I/usr/include/g++
54
55 INCLUDES += -I/usr/X11R6/include

mercurial