michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: include $(CORE_DEPTH)/coreconf/UNIX.mk michael@0: michael@0: XP_DEFINE := $(XP_DEFINE:-DXP_UNIX=-DXP_BEOS) michael@0: michael@0: USE_PTHREADS = michael@0: michael@0: ifeq ($(USE_PTHREADS),1) michael@0: IMPL_STRATEGY = _PTH michael@0: endif michael@0: michael@0: CC = gcc michael@0: CCC = g++ michael@0: RANLIB = ranlib michael@0: michael@0: DEFAULT_COMPILER = gcc michael@0: michael@0: ifeq ($(OS_TEST),ppc) michael@0: OS_REL_CFLAGS = -Dppc michael@0: CPU_ARCH = ppc michael@0: else michael@0: OS_REL_CFLAGS = -Di386 michael@0: CPU_ARCH = x86 michael@0: endif michael@0: michael@0: MKSHLIB = $(CC) -nostart -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so) michael@0: ifdef BUILD_OPT michael@0: OPTIMIZER = -O2 michael@0: endif michael@0: michael@0: OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -Wno-switch -pipe michael@0: OS_LIBS = -lbe michael@0: michael@0: DEFINES += -DBEOS michael@0: michael@0: ifdef USE_PTHREADS michael@0: DEFINES += -D_REENTRANT michael@0: endif michael@0: michael@0: ARCH = beos michael@0: michael@0: DSO_CFLAGS = -fPIC michael@0: DSO_LDOPTS =