NCR3.0.mk 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. DEFAULT_COMPILER = cc
  7. ###
  8. NS_USE_NATIVE = 1
  9. # NS_USE_GCC = 1
  10. export PATH:=$(PATH):/opt/ncc/bin
  11. ###
  12. RANLIB = true
  13. GCC_FLAGS_EXTRA += -pipe
  14. DEFINES += -DSVR4 -DSYSV -DHAVE_STRERROR -DNCR
  15. OS_CFLAGS += -Hnocopyr -DSVR4 -DSYSV -DHAVE_STRERROR -DNCR -DPRFSTREAMS_BROKEN
  16. ifdef NS_USE_NATIVE
  17. CC = cc
  18. CCC = ncc
  19. CXX = ncc
  20. # OS_LIBS += -L/opt/ncc/lib
  21. else
  22. # OS_LIBS +=
  23. endif
  24. #OS_LIBS += -lsocket -lnsl -ldl -lc
  25. MKSHLIB += $(LD) $(DSO_LDOPTS)
  26. #DSO_LDOPTS += -G -z defs
  27. DSO_LDOPTS += -G
  28. ifdef MAPFILE
  29. # Add LD options to restrict exported symbols to those in the map file
  30. endif
  31. # Change PROCESS to put the mapfile in the correct format for this platform
  32. PROCESS_MAP_FILE = cp $< $@
  33. CPU_ARCH = x86
  34. ARCH = ncr
  35. NOSUCHFILE = /solaris-rm-f-sucks
  36. # now take care of default GCC (rus@5/5/97)
  37. ifdef NS_USE_GCC
  38. # if gcc-settings are redefined already - don't touch it
  39. #
  40. ifeq (,$(findstring gcc, $(CC)))
  41. CC = gcc
  42. CCC = g++
  43. CXX = g++
  44. # always use -fPIC - some makefiles are still broken and don't distinguish
  45. # situation when they build shared and static libraries
  46. CFLAGS += -fPIC -Wall -Wno-switch $(GCC_FLAGS_EXTRA)
  47. # OS_LIBS += -L/usr/local/lib -lstdc++ -lg++ -lgcc
  48. endif
  49. endif
  50. ###