michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: include $(CORE_DEPTH)/coreconf/UNIX.mk michael@0: michael@0: DEFAULT_COMPILER = cc michael@0: michael@0: ### michael@0: NS_USE_NATIVE = 1 michael@0: michael@0: # NS_USE_GCC = 1 michael@0: michael@0: export PATH:=$(PATH):/opt/ncc/bin michael@0: ### michael@0: michael@0: RANLIB = true michael@0: GCC_FLAGS_EXTRA += -pipe michael@0: michael@0: DEFINES += -DSVR4 -DSYSV -DHAVE_STRERROR -DNCR michael@0: michael@0: OS_CFLAGS += -Hnocopyr -DSVR4 -DSYSV -DHAVE_STRERROR -DNCR -DPRFSTREAMS_BROKEN michael@0: michael@0: ifdef NS_USE_NATIVE michael@0: CC = cc michael@0: CCC = ncc michael@0: CXX = ncc michael@0: # OS_LIBS += -L/opt/ncc/lib michael@0: else michael@0: # OS_LIBS += michael@0: endif michael@0: michael@0: #OS_LIBS += -lsocket -lnsl -ldl -lc michael@0: michael@0: MKSHLIB += $(LD) $(DSO_LDOPTS) michael@0: #DSO_LDOPTS += -G -z defs michael@0: DSO_LDOPTS += -G michael@0: ifdef MAPFILE michael@0: # Add LD options to restrict exported symbols to those in the map file michael@0: endif michael@0: # Change PROCESS to put the mapfile in the correct format for this platform michael@0: PROCESS_MAP_FILE = cp $< $@ michael@0: michael@0: CPU_ARCH = x86 michael@0: ARCH = ncr michael@0: michael@0: NOSUCHFILE = /solaris-rm-f-sucks michael@0: michael@0: # now take care of default GCC (rus@5/5/97) michael@0: michael@0: ifdef NS_USE_GCC michael@0: # if gcc-settings are redefined already - don't touch it michael@0: # michael@0: ifeq (,$(findstring gcc, $(CC))) michael@0: CC = gcc michael@0: CCC = g++ michael@0: CXX = g++ michael@0: # always use -fPIC - some makefiles are still broken and don't distinguish michael@0: # situation when they build shared and static libraries michael@0: CFLAGS += -fPIC -Wall -Wno-switch $(GCC_FLAGS_EXTRA) michael@0: # OS_LIBS += -L/usr/local/lib -lstdc++ -lg++ -lgcc michael@0: endif michael@0: endif michael@0: ###