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: ###################################################################### michael@0: # HPPA michael@0: ###################################################################### michael@0: # michael@0: # HP-UX/PA32 michael@0: # michael@0: # for gas and gcc, check comment in xptcinvoke_asm_pa32.s michael@0: ifeq ($(OS_ARCH),HP-UX) michael@0: ifneq ($(CC),gcc) michael@0: # #18875 Building the CPP's (CXX) optimized causes a crash michael@0: CXXFLAGS := $(filter-out $(MOZ_OPTIMIZE_FLAGS), $(CXXFLAGS)) michael@0: endif michael@0: endif michael@0: michael@0: # michael@0: # Linux/HPPA/gcc michael@0: # michael@0: ifeq ($(OS_ARCH),Linux) michael@0: ifneq (,$(filter hppa hppa2.0 hppa1.1,$(OS_TEST))) michael@0: ifndef GNU_CXX michael@0: else michael@0: # #434190 optimized builds crash michael@0: CXXFLAGS := $(filter-out $(MOZ_OPTIMIZE_FLAGS), $(CXXFLAGS)) michael@0: endif michael@0: endif michael@0: endif michael@0: michael@0: michael@0: ###################################################################### michael@0: # M68k michael@0: ###################################################################### michael@0: michael@0: ifeq ($(OS_ARCH),Linux) michael@0: ifneq (,$(findstring mips, $(OS_TEST))) michael@0: ASFLAGS += -I$(DIST)/include michael@0: endif michael@0: endif michael@0: michael@0: ###################################################################### michael@0: # PowerPC michael@0: ###################################################################### michael@0: # michael@0: # AIX/PPC michael@0: # michael@0: ifeq ($(OS_ARCH),AIX) michael@0: # #24617 Building the CPP's (CXX) optimized causes a crash michael@0: CXXFLAGS := $(filter-out $(MOZ_OPTIMIZE_FLAGS), $(CXXFLAGS)) michael@0: endif michael@0: michael@0: ###################################################################### michael@0: # SPARC michael@0: ###################################################################### michael@0: # michael@0: # Solaris/SPARC michael@0: # michael@0: ifeq ($(OS_ARCH),SunOS) michael@0: ifneq (86,$(findstring 86,$(OS_TEST))) michael@0: ifdef HAVE_64BIT_OS michael@0: ASFLAGS += -xarch=v9 michael@0: endif michael@0: endif michael@0: endif michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: ifeq ($(OS_ARCH),Linux) michael@0: ifneq (,$(findstring mips, $(OS_TEST))) michael@0: xptcstubs_asm_mips.o: $(DIST)/include/xptcstubsdef.inc michael@0: endif michael@0: endif michael@0: michael@0: ifeq ($(OS_ARCH),Darwin) michael@0: xptcstubs_asm_ppc_darwin.s: xptcstubs_asm_ppc_darwin.s.m4 $(DIST)/include/xptcstubsdef.inc Makefile michael@0: gm4 $(INCLUDES) $< > $@ michael@0: endif michael@0: michael@0: ifeq ($(OS_ARCH),AIX) michael@0: ifdef HAVE_64BIT_OS michael@0: xptcstubs_asm_ppc_aix64.s: xptcstubs_asm_ppc_aix64.s.m4 $(DIST)/include/xptcstubsdef.inc Makefile michael@0: m4 -DAIX_OBJMODEL=$(AIX_OBJMODEL) $(INCLUDES) -I. $< > $@ michael@0: else michael@0: xptcstubs_asm_ppc_aix.s: xptcstubs_asm_ppc_aix.s.m4 $(DIST)/include/xptcstubsdef.inc Makefile michael@0: m4 -DAIX_OBJMODEL=$(AIX_OBJMODEL) $(INCLUDES) -I. $< > $@ michael@0: endif michael@0: endif michael@0: michael@0: ifeq ($(OS_ARCH),SunOS) michael@0: ifeq (86,$(findstring 86,$(OS_TEST))) michael@0: ifndef GNU_CC michael@0: xptcstubsdef_asm.solx86: $(DIST)/include/xptcstubsdef.inc michael@0: sed \ michael@0: -e 's/^\(STUB_ENTRY\)(\([0-9]\))/\11\(\2\)/' \ michael@0: -e 's/^\(STUB_ENTRY\)(\([0-9][0-9]\))/\12\(\2\)/' \ michael@0: -e 's/^\(STUB_ENTRY\)(\([0-9][0-9][0-9]\))/\13\(\2\)/' \ michael@0: $(DIST)/include/xptcstubsdef.inc > $@ michael@0: ifeq (x86_64,$(OS_TEST)) michael@0: ASFLAGS += -xarch=amd64 michael@0: endif michael@0: michael@0: endif michael@0: endif michael@0: endif