duke@0
|
1 #
|
ohair@3261
|
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@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 = ../../..
|
mchung@2080
|
27 MODULE = java2d
|
duke@0
|
28 PACKAGE = sun.java2d.cmm.kcms
|
duke@0
|
29 LIBRARY = kcms
|
duke@0
|
30 PRODUCT = sun
|
duke@0
|
31 include $(BUILDDIR)/common/Defs.gmk
|
duke@0
|
32
|
duke@0
|
33 #
|
duke@0
|
34 # Files
|
duke@0
|
35 #
|
duke@0
|
36 ifeq ($(PLATFORM), windows)
|
duke@0
|
37 include FILES_c_windows.gmk
|
duke@0
|
38 else # PLATFORM
|
duke@0
|
39 include FILES_c_unix.gmk
|
duke@0
|
40 endif # PLATFORM
|
duke@0
|
41
|
duke@0
|
42 FILES_java = \
|
duke@0
|
43 sun/java2d/cmm/kcms/CMM.java
|
duke@0
|
44
|
duke@0
|
45 FILES_export = \
|
duke@0
|
46 sun/java2d/cmm/kcms/CMM.java
|
duke@0
|
47
|
duke@0
|
48 ifeq ($(PLATFORM), windows)
|
duke@0
|
49 # Override the default version info with our own resource file (see 5043594)
|
duke@0
|
50 VERSIONINFO_RESOURCE = $(CLOSED_SRC)/share/native/sun/java2d/cmm/kcms/cmm.rc
|
duke@0
|
51 endif
|
duke@0
|
52
|
duke@0
|
53 # Rules
|
duke@0
|
54 #
|
duke@0
|
55 include $(BUILDDIR)/common/Mapfile-vers.gmk
|
duke@0
|
56 include $(BUILDDIR)/common/Library.gmk
|
duke@0
|
57
|
duke@0
|
58 SERVICEDIR = $(CLASSBINDIR)/META-INF/services
|
duke@0
|
59
|
duke@0
|
60 FILES_copy = \
|
duke@0
|
61 $(SERVICEDIR)/sun.java2d.cmm.PCMM
|
duke@0
|
62
|
duke@0
|
63
|
duke@0
|
64 build: copy-files
|
duke@0
|
65
|
duke@0
|
66 copy-files: $(FILES_copy)
|
duke@0
|
67
|
duke@0
|
68 $(SERVICEDIR)/%: $(CLOSED_SRC)/share/classes/sun/java2d/cmm/kcms/META-INF/services/%
|
duke@0
|
69 $(install-file)
|
duke@0
|
70
|
duke@0
|
71 #
|
duke@0
|
72 # Extra rules
|
duke@0
|
73 #
|
duke@0
|
74 ifeq ($(PLATFORM), linux)
|
duke@0
|
75 LDLIBS += -lpthread
|
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
|
duke@0
|
107 #CFLAGS += -DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST
|
duke@0
|
108 CFLAGS += -DFUT_CALC_EX -DNO_FUT_GCONST
|
duke@0
|
109
|