1 # |
1 # |
2 # Copyright (c) 2011, 2015, 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 |
41 OPTIMIZATION := LOW, \ |
41 OPTIMIZATION := LOW, \ |
42 CFLAGS := $(CFLAGS_JDKLIB) \ |
42 CFLAGS := $(CFLAGS_JDKLIB) \ |
43 -I$(SUPPORT_OUTPUTDIR)/headers/jdk.attach \ |
43 -I$(SUPPORT_OUTPUTDIR)/headers/jdk.attach \ |
44 $(LIBJAVA_HEADER_FLAGS) $(LIBATTACH_CFLAGS), \ |
44 $(LIBJAVA_HEADER_FLAGS) $(LIBATTACH_CFLAGS), \ |
45 CFLAGS_windows := /Gy, \ |
45 CFLAGS_windows := /Gy, \ |
46 MAPFILE := $(TOPDIR)/make/mapfiles/libattach/mapfile-$(OPENJDK_TARGET_OS), \ |
|
47 VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
46 VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \ |
48 RC_FLAGS := $(RC_FLAGS) \ |
47 RC_FLAGS := $(RC_FLAGS) \ |
49 -D "JDK_FNAME=attach.dll" \ |
48 -D "JDK_FNAME=attach.dll" \ |
50 -D "JDK_INTERNAL_NAME=attach" \ |
49 -D "JDK_INTERNAL_NAME=attach" \ |
51 -D "JDK_FTYPE=0x2L", \ |
50 -D "JDK_FTYPE=0x2L", \ |
52 LDFLAGS := $(LDFLAGS_JDKLIB) \ |
51 LDFLAGS := $(LDFLAGS_JDKLIB) \ |
53 $(call SET_SHARED_LIBRARY_ORIGIN), \ |
52 $(call SET_SHARED_LIBRARY_ORIGIN), \ |
54 LDFLAGS_windows := -order:@$(TOPDIR)/make/mapfiles/libattach/reorder-windows-$(OPENJDK_TARGET_CPU), \ |
|
55 LIBS := $(JDKLIB_LIBS), \ |
53 LIBS := $(JDKLIB_LIBS), \ |
56 LIBS_solaris := -ldoor, \ |
54 LIBS_solaris := -ldoor, \ |
57 LIBS_windows := $(WIN_JAVA_LIB) advapi32.lib psapi.lib, \ |
55 LIBS_windows := $(WIN_JAVA_LIB) advapi32.lib psapi.lib, \ |
58 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libattach, \ |
56 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libattach, \ |
59 )) |
57 )) |