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: ifdef NS_USE_GCC michael@0: ## gcc-2.7.2 homebrewn michael@0: CC = gcc michael@0: CCC = g++ michael@0: AS = $(CC) michael@0: ASFLAGS += -x assembler-with-cpp michael@0: LD = gld michael@0: ODD_CFLAGS = -pipe -Wall -Wno-format -Wno-switch michael@0: ifdef BUILD_OPT michael@0: OPTIMIZER += -O6 michael@0: endif michael@0: MKSHLIB = $(LD) michael@0: MKSHLIB += -G -h $(@:$(OBJDIR)/%.so=%.so) michael@0: DSO_LDOPTS += -G -Xlinker -Blargedynsym michael@0: else michael@0: ## native compiler (CDS++ 1.0) michael@0: # CC = /usr/bin/cc michael@0: CC = cc michael@0: CCC = /usr/bin/CC michael@0: AS = /usr/bin/cc michael@0: ODD_CFLAGS = michael@0: ifdef BUILD_OPT michael@0: OPTIMIZER += -O -F Olimit,4000 michael@0: endif michael@0: MKSHLIB = $(CC) michael@0: MKSHLIB += -G -h $(@:$(OBJDIR)/%.so=%.so) michael@0: DSO_LDOPTS += -G -W l,-Blargedynsym michael@0: endif 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: NOSUCHFILE = /sni-rm-f-sucks michael@0: ODD_CFLAGS += -DSVR4 -DSNI -DRELIANTUNIX michael@0: CPU_ARCH = mips michael@0: RANLIB = /bin/true michael@0: michael@0: # For purify michael@0: NOMD_OS_CFLAGS += $(ODD_CFLAGS) michael@0: michael@0: # we do not have -MDupdate ... michael@0: OS_CFLAGS += $(NOMD_OS_CFLAGS) michael@0: OS_LIBS += -lsocket -lnsl -lresolv -lgen -ldl -lc /usr/ucblib/libucb.a michael@0: michael@0: ifdef DSO_BACKEND michael@0: DSO_LDOPTS += -h $(DSO_NAME) michael@0: endif