make/linux/makefiles/vm.make

changeset 7994
04ff2f6cd0eb
parent 7598
ddce0b7cee93
parent 7535
7ae4e26cb1e0
child 9137
dc1769738300
     1.1 --- a/make/linux/makefiles/vm.make	Thu Aug 06 00:08:57 2015 -0700
     1.2 +++ b/make/linux/makefiles/vm.make	Tue Oct 17 12:58:25 2017 +0800
     1.3 @@ -22,6 +22,12 @@
     1.4  #
     1.5  #
     1.6  
     1.7 +#
     1.8 +# This file has been modified by Loongson Technology in 2015. These
     1.9 +# modifications are Copyright (c) 2015 Loongson Technology, and are made
    1.10 +# available on the same license terms set forth above.
    1.11 +#
    1.12 +
    1.13  # Rules to build JVM and related libraries, included from vm.make in the build
    1.14  # directory.
    1.15  
    1.16 @@ -99,6 +105,13 @@
    1.17    ${HS_LIB_ARCH}     \
    1.18    ${VM_DISTRO}
    1.19  
    1.20 +ifeq ($(MIPS_ABI),n32)
    1.21 +  CXXFLAGS +=   -DN32 
    1.22 +else
    1.23 +  ifeq ($(MIPS_ABI),n64)
    1.24 +    CXXFLAGS +=   -DN64
    1.25 +  endif
    1.26 +endif
    1.27  # This is VERY important! The version define must only be supplied to vm_version.o
    1.28  # If not, ccache will not re-use the cache at all, since the version string might contain
    1.29  # a time and date.
    1.30 @@ -212,6 +225,12 @@
    1.31  ifeq ($(Platform_arch_model), x86_64)
    1.32  Src_Files_EXCLUDE += \*x86_32\*
    1.33  endif
    1.34 +ifeq ($(Platform_arch_model), mips_32)
    1.35 +Src_Files_EXCLUDE += \*mips_64\*
    1.36 +endif
    1.37 +ifeq ($(Platform_arch_model), mips_64)
    1.38 +Src_Files_EXCLUDE += \*mips_32\*
    1.39 +endif
    1.40  
    1.41  # Alternate vm.make
    1.42  # This has to be included here to allow changes to the source

mercurial