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