1
# Copyright (C) 2001-2006 Artifex Software, Inc.
4
# This software is provided AS-IS with no warranty, either express or
7
# This software is distributed under license and may not be copied, modified
8
# or distributed except as expressly authorized under the terms of that
9
# license. Refer to licensing information at http://www.artifex.com/
10
# or contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134,
11
# San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information.
13
# $Id: icclib.mak 8022 2007-06-05 22:23:38Z giles $
14
# makefile for icclib library code.
15
# Users of this makefile must define the following:
16
# GLSRCDIR - the graphic library source directory
17
# ICCSRCDIR - the icclib source directory
18
# ICCGENDIR - the generated intermediate file directory
19
# ICCOBJDIR - the object directory
21
# This partial makefile compiles Graeme W. Gill's icclibfor use in Ghostscript.
23
# The original source for the code in this directory may be accessed via
24
# http://web.access.net.au/argyll/color.html
25
# For information on ICC color profiles in general, see the International
26
# Color Consortium's web site at
27
# http://www.color.org
29
# This makefile has been tested with version 2.0 of the icclib code. If you
30
# are working with a later version, you may need to update the ICC profile
31
# version number macro ICCPROFVER.
35
ICCSRC=$(ICCSRCDIR)$(D)
36
ICCGEN=$(ICCGENDIR)$(D)
37
ICCOBJ=$(ICCOBJDIR)$(D)
40
# We need D_, _D_, and _D because the OpenVMS compiler uses different
41
# syntax from other compilers.
42
# ICCI_ and ICCF_ are defined in gs.mak.
43
ICC_INCL=$(I_)$(ICCI_) $(II)$(GLSRCDIR) $(II)$(GLGENDIR)$(_I)
44
ICC_CCFLAGS=$(ICC_INCL) $(ICCF_)
45
ICC_CC=$(CC_) $(ICC_CCFLAGS)
47
# Define the name of this makefile.
48
ICCLIB_MAK=$(GLSRC)icclib.mak
50
icc.clean : icc.config-clean icc.clean-not-config-clean
52
### WRONG. MUST DELETE OBJ AND GEN FILES SELECTIVELY.
53
icc.clean-not-config-clean :
54
# echo $(ICCSRC) $(ICCGEN) $(ICCOBJ) $(ICCO_)
55
$(EXP)$(ECHOGS_XE) $(ICCSRC) $(ICCGEN) $(ICCOBJ) $(ICCO_)
56
$(RM_) $(ICCOBJ)*.$(OBJ)
59
$(RMN_) $(ICCGEN)icclib*.dev
63
# Code common to compression and decompression.
65
icclib_=$(ICCOBJ)icc.$(OBJ)
66
$(ICCGEN)icclib.dev : $(ICCLIB_MAK) $(ECHOGS_XE) $(icclib_)
67
$(SETMOD) $(ICCGEN)icclib $(icclib_)
69
icc_h=$(ICCSRC)$(D)icc.h $(ICCSRC)$(D)icc$(ICCPROFVER).h
71
$(ICCOBJ)icc.$(OBJ) : $(ICCSRC)icc.c $(ICCDEP) $(ECHOGS_XE) $(icc_h)
73
$(EXP)$(ECHOGS_XE) $(ICC_CCFLAGS)
74
$(ICC_CC) $(ICCO_)icc.$(OBJ) $(C_) $(ICCSRC)icc.c