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: USE_PTHREADS = 1 michael@0: michael@0: ifeq ($(USE_PTHREADS),1) michael@0: IMPL_STRATEGY = _PTH michael@0: endif michael@0: michael@0: CC = qcc michael@0: CCC = qcc michael@0: RANLIB = ranlib michael@0: michael@0: DEFAULT_COMPILER = qcc michael@0: ifeq ($(OS_TEST),mips) michael@0: CPU_ARCH = mips michael@0: else michael@0: CPU_ARCH = x86 michael@0: endif michael@0: michael@0: MKSHLIB = $(CC) -shared -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) -Vgcc_ntox86 -Wall -pipe -DNTO -DHAVE_STRERROR -D_QNX_SOURCE -D_POSIX_C_SOURCE=199506 -D_XOPEN_SOURCE=500 michael@0: michael@0: ifdef USE_PTHREADS michael@0: DEFINES += -D_REENTRANT michael@0: endif michael@0: michael@0: ARCH = QNX michael@0: michael@0: DSO_CFLAGS = -Wc,-fPIC michael@0: DSO_LDOPTS = -shared