make/launcher/Launcher-jdk.pack.gmk
branchihse-nativecompilation-branch
changeset 56197 8fcca3163b7f
parent 48766 2c4d1993b5f9
child 49241 de4b3a04feae
child 56237 9ccbd02e0c2c
child 56287 593a452fcbeb
equal deleted inserted replaced
56196:a96f5d80fa35 56197:8fcca3163b7f
     1 #
     1 #
     2 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
    71   UNPACK_MAPFILE := $(UNPACK_MAPFILE_PLATFORM_FILE)
    71   UNPACK_MAPFILE := $(UNPACK_MAPFILE_PLATFORM_FILE)
    72 else
    72 else
    73   UNPACK_MAPFILE := $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200
    73   UNPACK_MAPFILE := $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200
    74 endif
    74 endif
    75 
    75 
    76 $(eval $(call SetupNativeCompilation,BUILD_UNPACKEXE, \
    76 $(eval $(call SetupNativeCompilation, BUILD_UNPACKEXE, \
       
    77     NAME := unpack200, \
       
    78     TYPE := EXECUTABLE, \
    77     SRC := $(UNPACKEXE_SRC), \
    79     SRC := $(UNPACKEXE_SRC), \
    78     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
    80     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
    79     OPTIMIZATION := LOW, \
    81     OPTIMIZATION := LOW, \
    80     CFLAGS := $(UNPACKEXE_CFLAGS) $(CXXFLAGS_JDKEXE) -DFULL, \
    82     CFLAGS := $(UNPACKEXE_CFLAGS) $(CXXFLAGS_JDKEXE) -DFULL, \
    81     CFLAGS_release := -DPRODUCT, \
    83     CFLAGS_release := -DPRODUCT, \
    89         $(call SET_SHARED_LIBRARY_ORIGIN), \
    91         $(call SET_SHARED_LIBRARY_ORIGIN), \
    90     LIBS := $(UNPACKEXE_LIBS) $(LIBCXX), \
    92     LIBS := $(UNPACKEXE_LIBS) $(LIBCXX), \
    91     LIBS_solaris :=  -lc, \
    93     LIBS_solaris :=  -lc, \
    92     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/unpackexe, \
    94     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/unpackexe, \
    93     OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE), \
    95     OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE), \
    94     PROGRAM := unpack200, \
       
    95     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
    96     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
    96     RC_FLAGS := $(RC_FLAGS) \
    97     RC_FLAGS := $(RC_FLAGS) \
    97         -D "JDK_FNAME=unpack200.exe" \
    98         -D "JDK_FNAME=unpack200.exe" \
    98         -D "JDK_INTERNAL_NAME=unpack200" \
    99         -D "JDK_INTERNAL_NAME=unpack200" \
    99         -D "JDK_FTYPE=0x1L", \
   100         -D "JDK_FTYPE=0x1L", \