annotate make/sun/jawt/Makefile @ 6581:cea72c2bf071

7197491: update copyright year to match last edit in jdk8 jdk repository Reviewed-by: chegar, ksrini
author alanb
date Fri, 02 Nov 2012 15:50:11 +0000
parents f003387c33ad
children 5063b43d7e09
rev   line source
duke@0 1 #
alanb@6581 2 # Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
ohair@2362 7 # published by the Free Software Foundation. Oracle designates this
duke@0 8 # particular file as subject to the "Classpath" exception as provided
ohair@2362 9 # by Oracle in the LICENSE file that accompanied this code.
duke@0 10 #
duke@0 11 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 14 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 15 # accompanied this code).
duke@0 16 #
duke@0 17 # You should have received a copy of the GNU General Public License version
duke@0 18 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 20 #
ohair@2362 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@2362 22 # or visit www.oracle.com if you need additional information or have any
ohair@2362 23 # questions.
duke@0 24 #
duke@0 25
duke@0 26 BUILDDIR = ../..
duke@0 27 PACKAGE = sun.awt
duke@0 28 LIBRARY = jawt
duke@0 29 PRODUCT = sun
duke@0 30
duke@0 31 include $(BUILDDIR)/common/Defs.gmk
duke@0 32
duke@0 33 #
omajid@6089 34 # libjawt links to other programs, but nothing links to it directly. An RPATH
omajid@6089 35 # entry has been added to the launcher so third-party programs linked against
omajid@6089 36 # it will be able to find it no matter where the JDK or the third-party program
omajid@6089 37 # is located.
omajid@6089 38 #
omajid@6089 39
omajid@6089 40 #
duke@0 41 # Files
duke@0 42 #
duke@0 43 ifeq ($(PLATFORM), windows)
duke@0 44 FILES_cpp = jawt.cpp
michaelm@5177 45 else ifeq ($(PLATFORM), macosx) # PLATFORM
michaelm@5177 46 FILES_objc = jawt.m
duke@0 47 else # PLATFORM
duke@0 48 FILES_c = jawt.c
duke@0 49 endif # PLATFORM
duke@0 50
duke@0 51 FILES_h = $(INCLUDEDIR)/jawt.h \
duke@0 52 $(PLATFORM_INCLUDE)/jawt_md.h
duke@0 53
duke@0 54 #
duke@0 55 # Use mapfile
duke@0 56 #
duke@0 57 FILES_m = mapfile-vers
duke@0 58 include $(BUILDDIR)/common/Mapfile-vers.gmk
duke@0 59
duke@0 60
duke@0 61 ifeq ($(PLATFORM), windows)
duke@0 62 #
duke@0 63 # Extra C flags.
duke@0 64 #
duke@0 65
duke@0 66 OTHER_CXXFLAGS += $(GX_OPTION) -DUNICODE -D_UNICODE
duke@0 67
duke@0 68 #
duke@0 69 # Other extra flags needed for compiling.
duke@0 70 #
duke@0 71 CPPFLAGS += -I$(SHARE_SRC)/native/common \
duke@0 72 -I$(DXSDK_INCLUDE_PATH) \
duke@0 73 -I$(PLATFORM_SRC)/native/sun/windows \
duke@0 74 -I$(CLASSHDRDIR)/../../awt/CClassHeaders \
duke@0 75 -I$(SHARE_SRC)/native/sun/awt/debug \
duke@0 76 -I$(SHARE_SRC)/native/sun/font \
duke@0 77 -I$(SHARE_SRC)/native/sun/java2d \
duke@0 78 -I$(SHARE_SRC)/native/sun/java2d/loops \
duke@0 79 -I$(SHARE_SRC)/native/sun/java2d/pipe \
duke@0 80 -I$(PLATFORM_SRC)/native/sun/java2d \
duke@0 81 -I$(PLATFORM_SRC)/native/sun/java2d/windows \
duke@0 82 -I$(PLATFORM_SRC)/native/sun/java2d/d3d \
duke@0 83 -I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \
duke@0 84 -I$(SHARE_SRC)/javavm/export \
duke@0 85 -I$(PLATFORM_SRC)/javavm/export
duke@0 86 INSTALL_DOT_LIB = true
duke@0 87
duke@0 88 vpath %.cpp $(PLATFORM_SRC)/native/sun/windows
duke@0 89
duke@0 90 #
duke@0 91 # Libraries to link in.
duke@0 92 #
duke@0 93 ifeq ($(ARCH_DATA_MODEL), 64)
duke@0 94 OTHER_LDLIBS = $(OBJDIR)/../../awt/$(OBJDIRNAME)/awt.lib
duke@0 95 else
duke@0 96 OTHER_LDLIBS = kernel32.lib \
duke@0 97 $(OBJDIR)/../../awt/$(OBJDIRNAME)/awt.lib
duke@0 98 endif
duke@0 99 else # PLATFORM
duke@0 100
duke@0 101 #
duke@0 102 # Other extra flags needed for compiling.
duke@0 103 #
duke@0 104 CPPFLAGS += -I$(OPENWIN_HOME)/include \
duke@0 105 -I$(SHARE_SRC)/native/$(PKGDIR)/debug \
duke@0 106 -I$(SHARE_SRC)/native/$(PKGDIR)/image \
duke@0 107 -I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \
duke@0 108 -I$(SHARE_SRC)/native/$(PKGDIR)/alphacomposite \
duke@0 109 -I$(SHARE_SRC)/native/$(PKGDIR)/medialib \
duke@0 110 -I$(PLATFORM_SRC)/native/$(PKGDIR)/medialib \
duke@0 111 -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops \
duke@0 112 -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe \
duke@0 113 -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl \
duke@0 114 -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl \
duke@0 115 -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11 \
duke@0 116 -I$(SHARE_SRC)/native/$(PKGDIR)/../dc/doe \
duke@0 117 -I$(SHARE_SRC)/native/$(PKGDIR)/../dc/path \
duke@0 118 -I$(PLATFORM_SRC)/native/$(PKGDIR)/../jdga \
duke@0 119 $(EVENT_MODEL)
michaelm@5177 120
duke@0 121 #
duke@0 122 # Libraries to link in.
duke@0 123 #
duke@0 124 ifeq ($(PLATFORM), solaris)
dholmes@3884 125 ifndef BUILD_HEADLESS_ONLY
chegar@5017 126 OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -L$(OPENWIN_LIB) -lawt_xawt -L/usr/openwin/sfw/lib$(ISA_DIR) -lXrender
dholmes@3884 127 else
chegar@5017 128 OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -L$(OPENWIN_LIB) -lawt_headless -L/usr/openwin/sfw/lib$(ISA_DIR) -lXrender
dholmes@3884 129 endif
duke@0 130 endif # PLATFORM
duke@0 131
duke@0 132 ifeq ($(PLATFORM), linux)
dholmes@3884 133 ifndef BUILD_HEADLESS_ONLY
chegar@5017 134 OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -lawt -lawt_xawt
dholmes@3884 135 else
chegar@5017 136 OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -lawt -lawt_headless
dholmes@3884 137 CFLAGS += -DHEADLESS
dholmes@3884 138 endif
duke@0 139 endif # PLATFORM
duke@0 140
michaelm@5177 141 ifeq ($(PLATFORM), macosx)
michaelm@5177 142 vpath %.m $(call NativeSrcDirList,,native/sun/awt)
michaelm@5180 143 OTHER_LDLIBS = -lawt_lwawt -L$(LIBDIR) -Xlinker -rpath -Xlinker @loader_path \
michaelm@5177 144 -framework Cocoa
duke@0 145 endif # PLATFORM
duke@0 146
michaelm@5177 147 endif # PLATFORM
duke@0 148
duke@0 149 #
duke@0 150 # Lets not remove any class files.
duke@0 151 #
duke@0 152 DONT_CLOBBER_CLASSES = true
duke@0 153
duke@0 154 #
duke@0 155 # Rules
duke@0 156 #
duke@0 157 include $(BUILDDIR)/common/Library.gmk
duke@0 158
duke@0 159 build: $(FILES_h)
duke@0 160
duke@0 161 ifeq ($(PLATFORM), windows)
duke@0 162 include make.depend
duke@0 163 endif
duke@0 164
duke@0 165 #
duke@0 166 # Install header files.
duke@0 167 #
duke@0 168 $(INCLUDEDIR)/%.h: $(SHARE_SRC)/javavm/export/%.h
duke@0 169 $(install-file)
duke@0 170 $(PLATFORM_INCLUDE)/%.h: $(PLATFORM_SRC)/javavm/export/%.h
duke@0 171 $(install-file)
duke@0 172
duke@0 173
duke@0 174 #
duke@0 175 # Extra clean rule.
duke@0 176 #
duke@0 177 clean clobber::
duke@0 178 $(RM) $(FILES_h)
duke@0 179