jdk/make/sun/osxapp/Makefile
author valeriep
Mon, 07 Jan 2013 11:11:54 -0800
changeset 15008 6a494f8ba5b5
parent 14342 8435a30053c1
permissions -rw-r--r--
6996769: support AEAD cipher Summary: Added implementation for GCM mode under AES cipher Reviewed-by: weijun
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     1
#
14342
8435a30053c1 7197491: update copyright year to match last edit in jdk8 jdk repository
alanb
parents: 13992
diff changeset
     2
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     4
#
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    10
#
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    15
# accompanied this code).
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    16
#
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    20
#
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    23
# questions.
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    24
#
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    25
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    26
BUILDDIR = ../..
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    27
LIBRARY = osxapp
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    28
PRODUCT = sun
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    29
include $(BUILDDIR)/common/Defs.gmk
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    30
13992
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    31
GEN_DIR=$(GENSRCDIR)/sun/osxapp
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    32
ICON_DATA = $(GEN_DIR)/AWTIconData.h
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    33
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    34
CLASSES_INIT += $(ICON_DATA)
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    35
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    36
#
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    37
# Files
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    38
#
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    39
FILES_objc = \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    40
	NSApplicationAWT.m \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    41
	QueuingApplicationDelegate.m \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    42
	PropertiesUtilities.m \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    43
	ThreadUtilities.m
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    44
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    45
#
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    46
# Rules.
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    47
#
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    48
include $(BUILDDIR)/common/Library.gmk
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    49
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    50
#
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    51
# Add to the ambient vpath to pick up files in subdirectories
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    52
#
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    53
vpath %.m   $(call NativeSrcDirList,,native/sun/osxapp)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    54
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    55
# TODO: perhaps not all of the below frameworks are required
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    56
OTHER_LDLIBS += \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    57
	-framework Accelerate \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    58
	-framework ApplicationServices \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    59
	-framework AudioToolbox \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    60
	-framework Carbon \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    61
	-framework Cocoa \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    62
	-framework Security \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    63
	-framework ExceptionHandling \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    64
	-framework JavaNativeFoundation \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    65
	-framework JavaRuntimeSupport \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    66
	-framework OpenGL \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    67
	-framework IOSurface \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    68
	-framework QuartzCore
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    69
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    70
CPPFLAGS += \
13992
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    71
        -I$(GEN_DIR) \
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    72
        $(call NativeSrcDirList,-I,/native/sun/osxapp)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    73
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    74
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    75
ifeq ($(MILESTONE), internal)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    76
  CPPFLAGS += -DINTERNAL_BUILD
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    77
endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    78
13992
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    79
TEMPDIR_CLASSES = $(TEMPDIR)/classes
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    80
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    81
$(TEMPDIR_CLASSES)/sun/osxapp/ToBin.class: ToBin.java
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    82
	@$(prep-target)
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    83
	$(BOOT_JAVAC_CMD) -d $(TEMPDIR_CLASSES) $<
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    84
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    85
ifdef OPENJDK
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    86
    ICONS_PATH_PREFIX=$(PLATFORM_SRC_MACOS)
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    87
else
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    88
    ICONS_PATH_PREFIX=$(CLOSED_SRC)/macosx
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    89
endif
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    90
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    91
generated.clean:
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    92
	$(RM) -r $(GEN_DIR)/*.h
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
    93
13992
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    94
ICONPATH=$(ICONS_PATH_PREFIX)/native/sun/osxapp/resource/icons
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    95
ICON = $(ICONPATH)/JavaApp.icns
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    96
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    97
$(GEN_DIR)/AWTIconData.h: $(TEMPDIR_CLASSES)/sun/osxapp/ToBin.class $(ICON) 
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    98
	$(prep-target)
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
    99
	$(RM) $(ICON_DATA)
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
   100
	$(ECHO) "static unsigned char sAWTIconData[] = { " >> $(ICON_DATA);  \
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
   101
	$(CAT) $(ICON) | \
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
   102
	    $(BOOT_JAVA_CMD) -cp $(TEMPDIR_CLASSES) -Djava.awt.headless=true \
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
   103
	    sun.osxapp.ToBin >> $(ICON_DATA); \
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
   104
	$(ECHO) "};" >> $(ICON_DATA);
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
   105
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
   106
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
   107
clean clobber:: generated.clean
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
   108
d1b65c4e924c 7179349: [macosx] Java processes on Mac should not use default Apple icon
leonidr
parents: 12047
diff changeset
   109
.PHONY: generated.clean