833 NATIVE_MACH= $(MACH:amd64=i386)
834
835 # Define native compilation macros
836 #
837
838 # Base directory where compilers are loaded.
839 # Defined here so it can be overridden by developer.
840 #
841 SPRO_ROOT= $(BUILD_TOOLS)/SUNWspro
842 SPRO_VROOT= $(SPRO_ROOT)/SS12
843 GNU_ROOT= /usr
844
845 $(__GNUC)PRIMARY_CC= gcc7,$(GNUC_ROOT)/bin/gcc,gnu
846 $(__SUNC)PRIMARY_CC= studio12,$(SPRO_VROOT)/bin/cc,sun
847 $(__GNUC)PRIMARY_CCC= gcc7,$(GNUC_ROOT)/bin/g++,gnu
848 $(__SUNC)PRIMARY_CCC= studio12,$(SPRO_VROOT)/bin/CC,sun
849
850 CW_CC_COMPILERS= $(PRIMARY_CC:%=--primary %) $(SHADOW_CCS:%=--shadow %)
851 CW_CCC_COMPILERS= $(PRIMARY_CCC:%=--primary %) $(SHADOW_CCCS:%=--shadow %)
852
853
854 # Till SS12u1 formally becomes the NV CBE, LINT is hard
855 # coded to be picked up from the $SPRO_ROOT/sunstudio12.1/
856 # location. Impacted variables are sparc_LINT, sparcv9_LINT,
857 # i386_LINT, amd64_LINT.
858 # Reset them when SS12u1 is rolled out.
859 #
860
861 # Specify platform compiler versions for languages
862 # that we use (currently only c and c++).
863 #
864 CW= $(ONBLD_TOOLS)/bin/$(MACH)/cw
865
866 BUILD_CC= $(CW) $(CW_CC_COMPILERS) --
867 BUILD_CCC= $(CW) -C $(CW_CCC_COMPILERS) --
868 BUILD_CPP= /usr/ccs/lib/cpp
869 BUILD_LD= /usr/ccs/bin/ld
870 BUILD_LINT= $(SPRO_ROOT)/sunstudio12.1/bin/lint
871
872 $(MACH)_CC= $(BUILD_CC)
873 $(MACH)_CCC= $(BUILD_CCC)
874 $(MACH)_CPP= $(BUILD_CPP)
875 $(MACH)_LD= $(BUILD_LD)
876 $(MACH)_LINT= $(BUILD_LINT)
877 $(MACH64)_CC= $(BUILD_CC)
878 $(MACH64)_CCC= $(BUILD_CCC)
879 $(MACH64)_CPP= $(BUILD_CPP)
880 $(MACH64)_LD= $(BUILD_LD)
881 $(MACH64)_LINT= $(BUILD_LINT)
882
883 sparc_AS= /usr/ccs/bin/as -xregsym=no
884 sparcv9_AS= $($(MACH)_AS)
885
886 i386_AS= /usr/ccs/bin/as
887 $(__GNUC)i386_AS= $(ONBLD_TOOLS)/bin/$(MACH)/aw
888 amd64_AS= $(ONBLD_TOOLS)/bin/$(MACH)/aw
889
|
833 NATIVE_MACH= $(MACH:amd64=i386)
834
835 # Define native compilation macros
836 #
837
838 # Base directory where compilers are loaded.
839 # Defined here so it can be overridden by developer.
840 #
841 SPRO_ROOT= $(BUILD_TOOLS)/SUNWspro
842 SPRO_VROOT= $(SPRO_ROOT)/SS12
843 GNU_ROOT= /usr
844
845 $(__GNUC)PRIMARY_CC= gcc7,$(GNUC_ROOT)/bin/gcc,gnu
846 $(__SUNC)PRIMARY_CC= studio12,$(SPRO_VROOT)/bin/cc,sun
847 $(__GNUC)PRIMARY_CCC= gcc7,$(GNUC_ROOT)/bin/g++,gnu
848 $(__SUNC)PRIMARY_CCC= studio12,$(SPRO_VROOT)/bin/CC,sun
849
850 CW_CC_COMPILERS= $(PRIMARY_CC:%=--primary %) $(SHADOW_CCS:%=--shadow %)
851 CW_CCC_COMPILERS= $(PRIMARY_CCC:%=--primary %) $(SHADOW_CCCS:%=--shadow %)
852
853 CW_LINKER= --linker $(LD)
854
855 # Till SS12u1 formally becomes the NV CBE, LINT is hard
856 # coded to be picked up from the $SPRO_ROOT/sunstudio12.1/
857 # location. Impacted variables are sparc_LINT, sparcv9_LINT,
858 # i386_LINT, amd64_LINT.
859 # Reset them when SS12u1 is rolled out.
860 #
861
862 # Specify platform compiler versions for languages
863 # that we use (currently only c and c++).
864 #
865 CW= $(ONBLD_TOOLS)/bin/$(MACH)/cw
866
867 BUILD_CC= $(CW) $(CW_LINKER) $(CW_CC_COMPILERS) --
868 BUILD_CCC= $(CW) -C $(CW_LINKER) $(CW_CCC_COMPILERS) --
869 BUILD_CPP= /usr/ccs/lib/cpp
870 BUILD_LD= $(ONBLD_TOOLS)/bin/$(MACH)/ld
871 BUILD_LINT= $(SPRO_ROOT)/sunstudio12.1/bin/lint
872
873 $(MACH)_CC= $(BUILD_CC)
874 $(MACH)_CCC= $(BUILD_CCC)
875 $(MACH)_CPP= $(BUILD_CPP)
876 $(MACH)_LD= $(BUILD_LD)
877 $(MACH)_LINT= $(BUILD_LINT)
878 $(MACH64)_CC= $(BUILD_CC)
879 $(MACH64)_CCC= $(BUILD_CCC)
880 $(MACH64)_CPP= $(BUILD_CPP)
881 $(MACH64)_LD= $(BUILD_LD)
882 $(MACH64)_LINT= $(BUILD_LINT)
883
884 sparc_AS= /usr/ccs/bin/as -xregsym=no
885 sparcv9_AS= $($(MACH)_AS)
886
887 i386_AS= /usr/ccs/bin/as
888 $(__GNUC)i386_AS= $(ONBLD_TOOLS)/bin/$(MACH)/aw
889 amd64_AS= $(ONBLD_TOOLS)/bin/$(MACH)/aw
890
|