Changeset 40


Ignore:
Timestamp:
Jun 23, 2010, 10:48:53 PM (15 years ago)
Author:
dmik
Message:

hotspot/make: Adding O/2 support.

Location:
trunk/openjdk/hotspot/make
Files:
8 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/hotspot/make/Makefile

    r2 r40  
    2020# CA 95054 USA or visit www.sun.com if you need additional information or
    2121# have any questions.
    22 # 
     22#
    2323#
    2424
     
    107107# Build or export docs
    108108docs:
    109 ifeq ($(OSNAME),windows)
    110         @$(ECHO) "No docs ($(VM_TARGET)) for windows"
     109ifeq ($(filter-out windows os2,$(OSNAME)),)
     110        @$(ECHO) "No docs ($(VM_TARGET)) for windows/os2"
    111111else
    112112        $(CD) $(OUTPUTDIR); \
     
    135135generic_build1:
    136136        $(MKDIR) -p $(OUTPUTDIR)
    137 ifeq ($(OSNAME),windows)
     137ifeq ($(filter-out windows os2,$(OSNAME)),)
    138138  ifeq ($(ARCH_DATA_MODEL), 32)
    139139        $(CD) $(OUTPUTDIR); \
     
    160160generic_build2:
    161161        $(MKDIR) -p $(OUTPUTDIR)
    162 ifeq ($(OSNAME),windows)
     162ifeq ($(filter-out windows os2,$(OSNAME)),)
    163163        $(CD) $(OUTPUTDIR); \
    164164            $(NMAKE) -f $(ABS_OS_MAKEFILE) \
     
    176176generic_buildkernel:
    177177        $(MKDIR) -p $(OUTPUTDIR)
    178 ifeq ($(OSNAME),windows)
     178ifeq ($(filter-out windows os2,$(OSNAME)),)
    179179  ifeq ($(ARCH_DATA_MODEL), 32)
    180180        $(CD) $(OUTPUTDIR); \
     
    248248endif
    249249
    250 # Bin files (windows)
    251 ifeq ($(OSNAME),windows)
    252 
    253 # Get jvm.lib 
     250# Bin files (windows, os2)
     251ifeq ($(filter-out windows os2,$(OSNAME)),)
     252
     253# Get jvm.lib
    254254$(EXPORT_LIB_DIR)/%.lib:  $(MISC_DIR)/%.lib
    255255        $(install-file)
     
    258258$(EXPORT_JRE_BIN_DIR)/%.dll: $(MISC_DIR)/%.dll
    259259        $(install-file)
     260  ifeq ($(OSNAME),os2)
    260261$(EXPORT_JRE_BIN_DIR)/%.pdb: $(MISC_DIR)/%.pdb
    261262        $(install-file)
     263  endif
    262264$(EXPORT_JRE_BIN_DIR)/%.map: $(MISC_DIR)/%.map
    263265        $(install-file)
     
    266268$(EXPORT_CLIENT_DIR)/%.dll:  $(C1_DIR)/%.dll
    267269        $(install-file)
     270  ifeq ($(OSNAME),os2)
    268271$(EXPORT_CLIENT_DIR)/%.pdb:  $(C1_DIR)/%.pdb
    269272        $(install-file)
     273  endif
    270274$(EXPORT_CLIENT_DIR)/%.map:  $(C1_DIR)/%.map
    271275        $(install-file)
     
    274278$(EXPORT_SERVER_DIR)/%.dll:  $(C2_DIR)/%.dll
    275279        $(install-file)
     280  ifeq ($(OSNAME),os2)
    276281$(EXPORT_SERVER_DIR)/%.pdb:  $(C2_DIR)/%.pdb
    277282        $(install-file)
     283  endif
    278284$(EXPORT_SERVER_DIR)/%.map:  $(C2_DIR)/%.map
    279285        $(install-file)
     
    282288$(EXPORT_KERNEL_DIR)/%.dll:  $(KERNEL_DIR)/%.dll
    283289        $(install-file)
     290  ifeq ($(OSNAME),os2)
    284291$(EXPORT_KERNEL_DIR)/%.pdb:  $(KERNEL_DIR)/%.pdb
    285292        $(install-file)
     293  endif
    286294$(EXPORT_KERNEL_DIR)/%.map:  $(KERNEL_DIR)/%.map
    287295        $(install-file)
     
    289297
    290298# Shared Library
    291 ifneq ($(OSNAME),windows)
     299ifneq ($(filter-out windows os2,$(OSNAME)),)
    292300  ifeq ($(ZERO_BUILD), true)
    293301$(EXPORT_JRE_LIB_ARCH_DIR)/%.so: $(ZERO_DIR)/%.so
     
    428436intro_help:
    429437        @$(ECHO) \
    430 "Makefile for the Hotspot workspace." 
     438"Makefile for the Hotspot workspace."
    431439        @$(ECHO) \
    432440"Default behavior is to build and create an export area for the j2se builds."
     
    530538"  $(MAKE) world"
    531539        @$(ECHO) \
    532 "  $(MAKE) ALT_BOOTDIR=/opt/java/jdk$(PREVIOUS_JDK_VERSION)" 
     540"  $(MAKE) ALT_BOOTDIR=/opt/java/jdk$(PREVIOUS_JDK_VERSION)"
    533541        @$(ECHO) \
    534542"  $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk$(JDK_VERSION)"
  • trunk/openjdk/hotspot/make/defs.make

    r2 r40  
    2020# CA 95054 USA or visit www.sun.com if you need additional information or
    2121# have any questions.
    22 # 
     22#
    2323#
    2424
     
    117117endif
    118118
     119# On eComStation, OS is "ecs", ignore it to let uname be used
     120ifeq ($(OS),ecs)
     121  OS :=
     122endif
     123
    119124# Windows should have OS predefined
    120125ifeq ($(OS),)
     
    123128endif
    124129
    125 # If not SunOS and not Linux, assume Windows
     130# If not SunOS and not Linux and not OS/2, assume Windows
    126131ifneq ($(OS), Linux)
    127132  ifneq ($(OS), SunOS)
    128     OSNAME=windows
     133          ifneq ($(OS), OS/2)
     134                OSNAME=windows
     135          else
     136                OSNAME=os2
     137          endif
    129138  else
    130139    OSNAME=solaris
     
    170179endif
    171180
    172 # The platform dependent defs.make defines platform specific variable such 
     181# The platform dependent defs.make defines platform specific variable such
    173182# as ARCH, EXPORT_LIST etc. We must place the include here after BOOTDIR is defined.
    174183include $(GAMMADIR)/make/$(OSNAME)/makefiles/defs.make
     
    178187# some definitions are common for both linux and solaris,
    179188# so we put them here.
    180 ifneq ($(OSNAME),windows)
     189ifneq ($(filter-out windows os2,$(OSNAME)),)
    181190  ABS_OUTPUTDIR     := $(shell mkdir -p $(OUTPUTDIR); $(CD) $(OUTPUTDIR); $(PWD))
    182191  ABS_BOOTDIR       := $(shell $(CD) $(BOOTDIR); $(PWD))
     
    192201
    193202  # Use uname output for SRCARCH, but deal with platform differences. If ARCH
    194   # is not explicitly listed below, it is treated as x86. 
     203  # is not explicitly listed below, it is treated as x86.
    195204  SRCARCH     = $(ARCH/$(filter sparc sparc64 ia64 amd64 x86_64 zero,$(ARCH)))
    196205  ARCH/       = x86
Note: See TracChangeset for help on using the changeset viewer.