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