QNX.mk 816 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # This Source Code Form is subject to the terms of the Mozilla Public
  3. # License, v. 2.0. If a copy of the MPL was not distributed with this
  4. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. include $(CORE_DEPTH)/coreconf/UNIX.mk
  6. USE_PTHREADS = 1
  7. ifeq ($(USE_PTHREADS),1)
  8. IMPL_STRATEGY = _PTH
  9. endif
  10. CC = qcc
  11. CCC = qcc
  12. RANLIB = ranlib
  13. DEFAULT_COMPILER = qcc
  14. ifeq ($(OS_TEST),mips)
  15. CPU_ARCH = mips
  16. else
  17. CPU_ARCH = x86
  18. endif
  19. MKSHLIB = $(CC) -shared -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
  20. ifdef BUILD_OPT
  21. OPTIMIZER = -O2
  22. endif
  23. 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
  24. ifdef USE_PTHREADS
  25. DEFINES += -D_REENTRANT
  26. endif
  27. ARCH = QNX
  28. DSO_CFLAGS = -Wc,-fPIC
  29. DSO_LDOPTS = -shared