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: CC ?= gcc michael@0: CXX ?= g++ michael@0: DEFAULT_COMPILER = ${CC} michael@0: CCC = ${CXX} michael@0: RANLIB = ranlib michael@0: michael@0: CPU_ARCH := $(shell arch -s) michael@0: ifeq ($(CPU_ARCH),i386) michael@0: OS_REL_CFLAGS = -Di386 michael@0: CPU_ARCH = x86 michael@0: endif michael@0: michael@0: ifndef CLASSIC_NSPR michael@0: USE_PTHREADS = 1 michael@0: DEFINES += -pthread michael@0: OS_LIBS += -pthread michael@0: DSO_LDOPTS += -pthread michael@0: endif michael@0: michael@0: DLL_SUFFIX = so.1.0 michael@0: michael@0: OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -Wno-switch -pipe -DOPENBSD michael@0: michael@0: OS_LIBS = michael@0: michael@0: ARCH = openbsd michael@0: michael@0: DSO_CFLAGS = -fPIC -DPIC michael@0: DSO_LDOPTS = -shared -fPIC -Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) michael@0: michael@0: MKSHLIB = $(CC) $(DSO_LDOPTS) michael@0: michael@0: USE_SYSTEM_ZLIB = 1 michael@0: ZLIB_LIBS = -lz