blob: 66513e5f64b1c23974e454a039410ea26858d5b2 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001#
2# Copyright 2006-2007 Sun Microsystems, Inc. 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. Sun designates this
8# particular file as subject to the "Classpath" exception as provided
9# by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22# CA 95054 USA or visit www.sun.com if you need additional information or
23# have any questions.
24#
25
26BUILDDIR = ../..
27PRODUCT = sun
28include $(BUILDDIR)/common/Defs.gmk
29
30ifdef OPENJDK
31 SUBDIRS += lcms
32 ICCPROFILE_SRC_DIR = $(SHARE_SRC)/lib/cmm/lcms
33else # !OPENJDK
34 SUBDIRS += kcms
35 ICCPROFILE_SRC_DIR = $(CLOSED_SRC)/share/lib/cmm/kcms
36endif # OPENJDK
37
38#
39# ICC Profiles used by the CMM.
40#
41ICCPROFILE_DEST_DIR = $(LIBDIR)/cmm
42
43iccprofiles: $(ICCPROFILE_DEST_DIR)/sRGB.pf $(ICCPROFILE_DEST_DIR)/GRAY.pf \
44 $(ICCPROFILE_DEST_DIR)/CIEXYZ.pf
45
46ifndef OPENJDK
47iccprofiles: $(ICCPROFILE_DEST_DIR)/PYCC.pf \
48 $(ICCPROFILE_DEST_DIR)/LINEAR_RGB.pf
49endif
50
51$(ICCPROFILE_DEST_DIR)/sRGB.pf: $(ICCPROFILE_SRC_DIR)/sRGB.pf
52 $(RM) $(ICCPROFILE_DEST_DIR)/sRGB.pf
53 -$(MKDIR) -p $(ICCPROFILE_DEST_DIR)
54 $(CP) $(ICCPROFILE_SRC_DIR)/sRGB.pf $(ICCPROFILE_DEST_DIR)
55 $(CHMOD) 444 $(ICCPROFILE_DEST_DIR)/sRGB.pf
56
57$(ICCPROFILE_DEST_DIR)/GRAY.pf: $(ICCPROFILE_SRC_DIR)/GRAY.pf
58 $(RM) $(ICCPROFILE_DEST_DIR)/GRAY.pf
59 -$(MKDIR) -p $(ICCPROFILE_DEST_DIR)
60 $(CP) $(ICCPROFILE_SRC_DIR)/GRAY.pf $(ICCPROFILE_DEST_DIR)
61 $(CHMOD) 444 $(ICCPROFILE_DEST_DIR)/GRAY.pf
62
63$(ICCPROFILE_DEST_DIR)/CIEXYZ.pf: $(ICCPROFILE_SRC_DIR)/CIEXYZ.pf
64 $(RM) $(ICCPROFILE_DEST_DIR)/CIEXYZ.pf
65 -$(MKDIR) -p $(ICCPROFILE_DEST_DIR)
66 $(CP) $(ICCPROFILE_SRC_DIR)/CIEXYZ.pf $(ICCPROFILE_DEST_DIR)
67 $(CHMOD) 444 $(ICCPROFILE_DEST_DIR)/CIEXYZ.pf
68
69$(ICCPROFILE_DEST_DIR)/PYCC.pf: $(ICCPROFILE_SRC_DIR)/PYCC.pf
70 $(RM) $(ICCPROFILE_DEST_DIR)/PYCC.pf
71 -$(MKDIR) -p $(ICCPROFILE_DEST_DIR)
72 $(CP) $(ICCPROFILE_SRC_DIR)/PYCC.pf $(ICCPROFILE_DEST_DIR)
73 $(CHMOD) 444 $(ICCPROFILE_DEST_DIR)/PYCC.pf
74
75$(ICCPROFILE_DEST_DIR)/LINEAR_RGB.pf: $(ICCPROFILE_SRC_DIR)/LINEAR_RGB.pf
76 $(RM) $(ICCPROFILE_DEST_DIR)/LINEAR_RGB.pf
77 -$(MKDIR) -p $(ICCPROFILE_DEST_DIR)
78 $(CP) $(ICCPROFILE_SRC_DIR)/LINEAR_RGB.pf $(ICCPROFILE_DEST_DIR)
79 $(CHMOD) 444 $(ICCPROFILE_DEST_DIR)/LINEAR_RGB.pf
80
81iccprofiles.clean:
82 $(RM) -r $(ICCPROFILE_DEST_DIR)
83
84
85clobber: iccprofiles.clean
86 $(SUBDIRS-loop)
87
88clean: iccprofiles.clean
89 $(SUBDIRS-loop)
90
91all build:: iccprofiles
92 $(SUBDIRS-loop)
93
94openjdk::
95 $(MAKE) OPENJDK=true build
96
97.PHONY: iccprofiles iccprofiles.clean copy-files openjdk