annotate make/sun/cmm/kcms/Makefile @ 3889:5371ec6c4f41

Merge
author lana
date Fri, 18 Mar 2011 23:33:34 -0700
parents 5c61c31d2621 6aeed99af874
children 272483f6650b
rev   line source
duke@0 1 #
ohair@3413 2 # Copyright (c) 1997, 2010, 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@2486 7 # published by the Free Software Foundation. Oracle designates this
duke@0 8 # particular file as subject to the "Classpath" exception as provided
ohair@2486 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@2486 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@2486 22 # or visit www.oracle.com if you need additional information or have any
ohair@2486 23 # questions.
duke@0 24 #
duke@0 25
duke@0 26 BUILDDIR = ../../..
duke@0 27 PACKAGE = sun.java2d.cmm.kcms
duke@0 28 LIBRARY = kcms
duke@0 29 PRODUCT = sun
duke@0 30 include $(BUILDDIR)/common/Defs.gmk
duke@0 31
duke@0 32 #
duke@0 33 # Files
duke@0 34 #
duke@0 35 ifeq ($(PLATFORM), windows)
duke@0 36 include FILES_c_windows.gmk
duke@0 37 else # PLATFORM
duke@0 38 include FILES_c_unix.gmk
duke@0 39 endif # PLATFORM
duke@0 40
duke@0 41 FILES_java = \
duke@0 42 sun/java2d/cmm/kcms/CMM.java
duke@0 43
duke@0 44 FILES_export = \
duke@0 45 sun/java2d/cmm/kcms/CMM.java
duke@0 46
duke@0 47 ifeq ($(PLATFORM), windows)
duke@0 48 # Override the default version info with our own resource file (see 5043594)
duke@0 49 VERSIONINFO_RESOURCE = $(CLOSED_SRC)/share/native/sun/java2d/cmm/kcms/cmm.rc
duke@0 50 endif
duke@0 51
duke@0 52 # Rules
duke@0 53 #
duke@0 54 include $(BUILDDIR)/common/Mapfile-vers.gmk
duke@0 55 include $(BUILDDIR)/common/Library.gmk
duke@0 56
duke@0 57 SERVICEDIR = $(CLASSBINDIR)/META-INF/services
duke@0 58
duke@0 59 FILES_copy = \
duke@0 60 $(SERVICEDIR)/sun.java2d.cmm.PCMM
duke@0 61
duke@0 62
duke@0 63 build: copy-files
duke@0 64
duke@0 65 copy-files: $(FILES_copy)
duke@0 66
duke@0 67 $(SERVICEDIR)/%: $(CLOSED_SRC)/share/classes/sun/java2d/cmm/kcms/META-INF/services/%
duke@0 68 $(install-file)
duke@0 69
duke@0 70 #
duke@0 71 # Extra rules
duke@0 72 #
duke@0 73 ifeq ($(PLATFORM), linux)
bae@3887 74 LDLIBS += -lpthread
bae@3887 75 OTHER_CFLAGS += -Wno-missing-field-initializers
duke@0 76 endif
duke@0 77
duke@0 78 clean clobber::
duke@0 79 $(RM) $(FILES_copy)
duke@0 80
duke@0 81 #
duke@0 82 # Add to ambient vpath to get files in a subdirectory
duke@0 83 #
duke@0 84 vpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR)
duke@0 85
duke@0 86 ifeq ($(PLATFORM), windows)
duke@0 87
duke@0 88 OTHER_LDLIBS = user32.lib version.lib
duke@0 89
duke@0 90 clean:: res.clean
duke@0 91
duke@0 92 res.clean:
duke@0 93 $(RM) $(OBJDIR)/cmm.rc
duke@0 94 $(RM) $(OBJDIR)/cmm.res
duke@0 95 $(RM) $(OBJDIR)/cmm.h
duke@0 96
duke@0 97 else # PLATFORM
duke@0 98 OTHER_LDLIBS = $(LIBM)
duke@0 99
duke@0 100 # Use pic instead of PIC on this library
duke@0 101 GLOBAL_KPIC = $(PIC_CODE_SMALL)
duke@0 102
duke@0 103 CPPFLAGS += -I$(CLASSHDRDIR) \
duke@0 104
duke@0 105 endif # PLATFORM
duke@0 106
bae@3887 107 CFLAGS += -DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST
duke@0 108