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