ReliantUNIX.mk 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. ifdef NS_USE_GCC
  8. ## gcc-2.7.2 homebrewn
  9. CC = gcc
  10. CCC = g++
  11. AS = $(CC)
  12. ASFLAGS += -x assembler-with-cpp
  13. LD = gld
  14. ODD_CFLAGS = -pipe -Wall -Wno-format -Wno-switch
  15. ifdef BUILD_OPT
  16. OPTIMIZER += -O6
  17. endif
  18. MKSHLIB = $(LD)
  19. MKSHLIB += -G -h $(@:$(OBJDIR)/%.so=%.so)
  20. DSO_LDOPTS += -G -Xlinker -Blargedynsym
  21. else
  22. ## native compiler (CDS++ 1.0)
  23. # CC = /usr/bin/cc
  24. CC = cc
  25. CCC = /usr/bin/CC
  26. AS = /usr/bin/cc
  27. ODD_CFLAGS =
  28. ifdef BUILD_OPT
  29. OPTIMIZER += -O -F Olimit,4000
  30. endif
  31. MKSHLIB = $(CC)
  32. MKSHLIB += -G -h $(@:$(OBJDIR)/%.so=%.so)
  33. DSO_LDOPTS += -G -W l,-Blargedynsym
  34. endif
  35. ifdef MAPFILE
  36. # Add LD options to restrict exported symbols to those in the map file
  37. endif
  38. # Change PROCESS to put the mapfile in the correct format for this platform
  39. PROCESS_MAP_FILE = cp $< $@
  40. NOSUCHFILE = /sni-rm-f-sucks
  41. ODD_CFLAGS += -DSVR4 -DSNI -DRELIANTUNIX
  42. CPU_ARCH = mips
  43. RANLIB = /bin/true
  44. # For purify
  45. NOMD_OS_CFLAGS += $(ODD_CFLAGS)
  46. # we do not have -MDupdate ...
  47. OS_CFLAGS += $(NOMD_OS_CFLAGS)
  48. OS_LIBS += -lsocket -lnsl -lresolv -lgen -ldl -lc /usr/ucblib/libucb.a
  49. ifdef DSO_BACKEND
  50. DSO_LDOPTS += -h $(DSO_NAME)
  51. endif