2
|
1 |
#
|
7668
|
2 |
# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
|
2
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 |
#
|
|
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
|
5506
|
7 |
# published by the Free Software Foundation. Oracle designates this
|
2
|
8 |
# particular file as subject to the "Classpath" exception as provided
|
5506
|
9 |
# by Oracle in the LICENSE file that accompanied this code.
|
2
|
10 |
#
|
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that
|
|
15 |
# accompanied this code).
|
|
16 |
#
|
|
17 |
# You should have received a copy of the GNU General Public License version
|
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
20 |
#
|
5506
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
22 |
# or visit www.oracle.com if you need additional information or have any
|
|
23 |
# questions.
|
2
|
24 |
#
|
|
25 |
|
|
26 |
BUILDDIR = ../../..
|
|
27 |
PACKAGE = sun.java2d.cmm.kcms
|
|
28 |
LIBRARY = kcms
|
|
29 |
PRODUCT = sun
|
|
30 |
include $(BUILDDIR)/common/Defs.gmk
|
|
31 |
|
|
32 |
#
|
|
33 |
# Files
|
|
34 |
#
|
|
35 |
ifeq ($(PLATFORM), windows)
|
|
36 |
include FILES_c_windows.gmk
|
|
37 |
else # PLATFORM
|
|
38 |
include FILES_c_unix.gmk
|
|
39 |
endif # PLATFORM
|
|
40 |
|
|
41 |
FILES_java = \
|
|
42 |
sun/java2d/cmm/kcms/CMM.java
|
|
43 |
|
|
44 |
FILES_export = \
|
|
45 |
sun/java2d/cmm/kcms/CMM.java
|
|
46 |
|
|
47 |
ifeq ($(PLATFORM), windows)
|
|
48 |
# Override the default version info with our own resource file (see 5043594)
|
|
49 |
VERSIONINFO_RESOURCE = $(CLOSED_SRC)/share/native/sun/java2d/cmm/kcms/cmm.rc
|
|
50 |
endif
|
|
51 |
|
|
52 |
# Rules
|
|
53 |
#
|
|
54 |
include $(BUILDDIR)/common/Mapfile-vers.gmk
|
|
55 |
include $(BUILDDIR)/common/Library.gmk
|
|
56 |
|
|
57 |
SERVICEDIR = $(CLASSBINDIR)/META-INF/services
|
|
58 |
|
|
59 |
FILES_copy = \
|
|
60 |
$(SERVICEDIR)/sun.java2d.cmm.PCMM
|
|
61 |
|
|
62 |
|
|
63 |
build: copy-files
|
|
64 |
|
|
65 |
copy-files: $(FILES_copy)
|
|
66 |
|
|
67 |
$(SERVICEDIR)/%: $(CLOSED_SRC)/share/classes/sun/java2d/cmm/kcms/META-INF/services/%
|
|
68 |
$(install-file)
|
|
69 |
|
|
70 |
#
|
|
71 |
# Extra rules
|
|
72 |
#
|
|
73 |
ifeq ($(PLATFORM), linux)
|
8749
|
74 |
LDLIBS += -lpthread
|
|
75 |
OTHER_CFLAGS += -Wno-missing-field-initializers
|
2
|
76 |
endif
|
|
77 |
|
|
78 |
clean clobber::
|
|
79 |
$(RM) $(FILES_copy)
|
|
80 |
|
|
81 |
#
|
|
82 |
# Add to ambient vpath to get files in a subdirectory
|
|
83 |
#
|
|
84 |
vpath %.c $(CLOSED_SRC)/share/native/$(PKGDIR)
|
|
85 |
|
|
86 |
ifeq ($(PLATFORM), windows)
|
|
87 |
|
|
88 |
OTHER_LDLIBS = user32.lib version.lib
|
|
89 |
|
|
90 |
clean:: res.clean
|
|
91 |
|
|
92 |
res.clean:
|
|
93 |
$(RM) $(OBJDIR)/cmm.rc
|
|
94 |
$(RM) $(OBJDIR)/cmm.res
|
|
95 |
$(RM) $(OBJDIR)/cmm.h
|
|
96 |
|
|
97 |
else # PLATFORM
|
|
98 |
OTHER_LDLIBS = $(LIBM)
|
|
99 |
|
|
100 |
# Use pic instead of PIC on this library
|
|
101 |
GLOBAL_KPIC = $(PIC_CODE_SMALL)
|
|
102 |
|
|
103 |
CPPFLAGS += -I$(CLASSHDRDIR) \
|
|
104 |
|
|
105 |
endif # PLATFORM
|
|
106 |
|
8749
|
107 |
CFLAGS += -DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST
|
2
|
108 |
|