Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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/.
6 include $(CORE_DEPTH)/coreconf/UNIX.mk
8 DEFAULT_COMPILER = gcc
9 CC = gcc
10 CCC = g++
11 RANLIB = ranlib
13 CPU_ARCH := $(shell uname -p)
14 ifeq ($(CPU_ARCH),i386)
15 OS_REL_CFLAGS = -Di386
16 CPU_ARCH = x86
17 endif
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
23 ifeq ($(OBJECT_FMT),ELF)
24 DLL_SUFFIX = so
25 else
26 DLL_SUFFIX = so.1.0
27 endif
29 OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -Wno-switch -pipe -DNETBSD -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK
31 OS_LIBS = -lcompat
33 ARCH = netbsd
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
41 ifdef LIBRUNPATH
42 DSO_LDOPTS += -Wl,-R$(LIBRUNPATH)
43 endif
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 $< $@
53 G++INCLUDES = -I/usr/include/g++
55 INCLUDES += -I/usr/X11R6/include