1 | #
|
---|
2 | # Copyright (c) 2006, 2007, Oracle and/or its affiliates. All rights reserved.
|
---|
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
|
---|
7 | # published by the Free Software Foundation. Oracle designates this
|
---|
8 | # particular file as subject to the "Classpath" exception as provided
|
---|
9 | # by Oracle in the LICENSE file that accompanied this code.
|
---|
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 | #
|
---|
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.
|
---|
24 | #
|
---|
25 |
|
---|
26 | BUILDDIR = ../..
|
---|
27 | PRODUCT = sun
|
---|
28 | include $(BUILDDIR)/common/Defs.gmk
|
---|
29 |
|
---|
30 | ifdef OPENJDK
|
---|
31 | SUBDIRS += lcms
|
---|
32 | ICCPROFILE_SRC_DIR = $(SHARE_SRC)/lib/cmm/lcms
|
---|
33 | else # !OPENJDK
|
---|
34 | SUBDIRS += kcms
|
---|
35 | ICCPROFILE_SRC_DIR = $(CLOSED_SRC)/share/lib/cmm/kcms
|
---|
36 | endif # OPENJDK
|
---|
37 |
|
---|
38 | #
|
---|
39 | # ICC Profiles used by the CMM.
|
---|
40 | #
|
---|
41 | ICCPROFILE_DEST_DIR = $(LIBDIR)/cmm
|
---|
42 |
|
---|
43 | iccprofiles: $(ICCPROFILE_DEST_DIR)/sRGB.pf $(ICCPROFILE_DEST_DIR)/GRAY.pf \
|
---|
44 | $(ICCPROFILE_DEST_DIR)/CIEXYZ.pf $(ICCPROFILE_DEST_DIR)/PYCC.pf \
|
---|
45 | $(ICCPROFILE_DEST_DIR)/LINEAR_RGB.pf
|
---|
46 |
|
---|
47 | $(ICCPROFILE_DEST_DIR)/sRGB.pf: $(ICCPROFILE_SRC_DIR)/sRGB.pf
|
---|
48 | $(RM) $(ICCPROFILE_DEST_DIR)/sRGB.pf
|
---|
49 | -$(MKDIR) -p $(ICCPROFILE_DEST_DIR)
|
---|
50 | $(CP) $(ICCPROFILE_SRC_DIR)/sRGB.pf $(ICCPROFILE_DEST_DIR)
|
---|
51 | $(CHMOD) 444 $(ICCPROFILE_DEST_DIR)/sRGB.pf
|
---|
52 |
|
---|
53 | $(ICCPROFILE_DEST_DIR)/GRAY.pf: $(ICCPROFILE_SRC_DIR)/GRAY.pf
|
---|
54 | $(RM) $(ICCPROFILE_DEST_DIR)/GRAY.pf
|
---|
55 | -$(MKDIR) -p $(ICCPROFILE_DEST_DIR)
|
---|
56 | $(CP) $(ICCPROFILE_SRC_DIR)/GRAY.pf $(ICCPROFILE_DEST_DIR)
|
---|
57 | $(CHMOD) 444 $(ICCPROFILE_DEST_DIR)/GRAY.pf
|
---|
58 |
|
---|
59 | $(ICCPROFILE_DEST_DIR)/CIEXYZ.pf: $(ICCPROFILE_SRC_DIR)/CIEXYZ.pf
|
---|
60 | $(RM) $(ICCPROFILE_DEST_DIR)/CIEXYZ.pf
|
---|
61 | -$(MKDIR) -p $(ICCPROFILE_DEST_DIR)
|
---|
62 | $(CP) $(ICCPROFILE_SRC_DIR)/CIEXYZ.pf $(ICCPROFILE_DEST_DIR)
|
---|
63 | $(CHMOD) 444 $(ICCPROFILE_DEST_DIR)/CIEXYZ.pf
|
---|
64 |
|
---|
65 | $(ICCPROFILE_DEST_DIR)/PYCC.pf: $(ICCPROFILE_SRC_DIR)/PYCC.pf
|
---|
66 | $(RM) $(ICCPROFILE_DEST_DIR)/PYCC.pf
|
---|
67 | -$(MKDIR) -p $(ICCPROFILE_DEST_DIR)
|
---|
68 | $(CP) $(ICCPROFILE_SRC_DIR)/PYCC.pf $(ICCPROFILE_DEST_DIR)
|
---|
69 | $(CHMOD) 444 $(ICCPROFILE_DEST_DIR)/PYCC.pf
|
---|
70 |
|
---|
71 | $(ICCPROFILE_DEST_DIR)/LINEAR_RGB.pf: $(ICCPROFILE_SRC_DIR)/LINEAR_RGB.pf
|
---|
72 | $(RM) $(ICCPROFILE_DEST_DIR)/LINEAR_RGB.pf
|
---|
73 | -$(MKDIR) -p $(ICCPROFILE_DEST_DIR)
|
---|
74 | $(CP) $(ICCPROFILE_SRC_DIR)/LINEAR_RGB.pf $(ICCPROFILE_DEST_DIR)
|
---|
75 | $(CHMOD) 444 $(ICCPROFILE_DEST_DIR)/LINEAR_RGB.pf
|
---|
76 |
|
---|
77 | iccprofiles.clean:
|
---|
78 | $(RM) -r $(ICCPROFILE_DEST_DIR)
|
---|
79 |
|
---|
80 |
|
---|
81 | clobber: iccprofiles.clean
|
---|
82 | $(SUBDIRS-loop)
|
---|
83 |
|
---|
84 | clean: iccprofiles.clean
|
---|
85 | $(SUBDIRS-loop)
|
---|
86 |
|
---|
87 | all build:: iccprofiles
|
---|
88 | $(SUBDIRS-loop)
|
---|
89 |
|
---|
90 | openjdk::
|
---|
91 | $(MAKE) OPENJDK=true build
|
---|
92 |
|
---|
93 | .PHONY: iccprofiles iccprofiles.clean copy-files openjdk
|
---|