NEC4.2.mk 896 B

12345678910111213141516171819202122232425262728293031323334353637
  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 = $(CORE_DEPTH)/build/hcc
  7. CPU_ARCH = mips
  8. ifdef NS_USE_GCC
  9. CC = gcc
  10. CCC = g++
  11. else
  12. CC = $(CORE_DEPTH)/build/hcc
  13. OS_CFLAGS = -Xa -KGnum=0 -KOlimit=4000
  14. CCC = g++
  15. endif
  16. MKSHLIB = $(LD) $(DSO_LDOPTS)
  17. ifdef MAPFILE
  18. # Add LD options to restrict exported symbols to those in the map file
  19. endif
  20. # Change PROCESS to put the mapfile in the correct format for this platform
  21. PROCESS_MAP_FILE = cp $< $@
  22. RANLIB = /bin/true
  23. OS_CFLAGS += $(ODD_CFLAGS) -DSVR4 -D__SVR4 -DNEC -Dnec_ews -DHAVE_STRERROR
  24. OS_LIBS = -lsocket -lnsl -ldl $(LDOPTIONS)
  25. LDOPTIONS = -lc -L/usr/ucblib -lucb
  26. NOSUCHFILE = /nec-rm-f-sucks
  27. DSO_LDOPTS = -G