make/linux/makefiles/vm.make

changeset 1
2d8a650513c2
parent 0
f90c822e73f8
child 6876
710a3c8b516e
     1.1 --- a/make/linux/makefiles/vm.make	Wed Apr 27 01:25:04 2016 +0800
     1.2 +++ b/make/linux/makefiles/vm.make	Fri Apr 29 00:06:10 2016 +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 @@ -98,6 +104,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 @@ -211,6 +224,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