xref: /plan9/sys/src/cmd/gs/src/icclib.mak (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1#    Copyright (C) 2001 Aladdin Enterprises.  All rights reserved.
2#
3# This software is provided AS-IS with no warranty, either express or
4# implied.
5#
6# This software is distributed under license and may not be copied,
7# modified or distributed except as expressly authorized under the terms
8# of the license contained in the file LICENSE in this distribution.
9#
10# For more information about licensing, please refer to
11# http://www.ghostscript.com/licensing/. For information on
12# commercial licensing, go to http://www.artifex.com/licensing/ or
13# contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14# San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15
16# $Id: icclib.mak,v 1.7 2002/06/05 19:55:04 lpd Exp $
17# makefile for icclib library code.
18# Users of this makefile must define the following:
19#	GLSRCDIR - the graphic library source directory
20#	ICCSRCDIR - the icclib source directory
21#	ICCGENDIR - the generated intermediate file directory
22#	ICCOBJDIR - the object directory
23
24# This partial makefile compiles Graeme W. Gill's icclibfor use in Ghostscript.
25#
26# The original source for the code in this directory may be accessed via
27#   http://web.access.net.au/argyll/color.html
28# For information on ICC color profiles in general, see the International
29# Color Consortium's web site at
30#   http://www.color.org
31#
32# This makefile has been tested with version 2.0 of the icclib code. If you
33# are working with a later version, you may need to update the ICC profile
34# version number macro ICCPROFVER.
35
36ICCPROFVER=9809
37
38ICCSRC=$(ICCSRCDIR)$(D)
39ICCGEN=$(ICCGENDIR)$(D)
40ICCOBJ=$(ICCOBJDIR)$(D)
41ICCO_=$(O_)$(ICCOBJ)
42
43# We need D_, _D_, and _D because the OpenVMS compiler uses different
44# syntax from other compilers.
45# ICCI_ and ICCF_ are defined in gs.mak.
46ICC_INCL=$(I_)$(ICCI_) $(II)$(GLSRCDIR) $(II)$(GLGENDIR)$(_I)
47ICC_CCFLAGS=$(ICC_INCL) $(ICCF_)
48ICC_CC=$(CC_) $(ICC_CCFLAGS)
49
50# Define the name of this makefile.
51ICCLIB_MAK=$(GLSRC)icclib.mak
52
53icc.clean : icc.config-clean icc.clean-not-config-clean
54
55### WRONG.  MUST DELETE OBJ AND GEN FILES SELECTIVELY.
56icc.clean-not-config-clean :
57#	echo $(ICCSRC) $(ICCGEN) $(ICCOBJ) $(ICCO_)
58	$(EXP)$(ECHOGS_XE) $(ICCSRC) $(ICCGEN) $(ICCOBJ) $(ICCO_)
59	$(RM_) $(ICCOBJ)*.$(OBJ)
60
61icc.config-clean :
62	$(RMN_) $(ICCGEN)icclib*.dev
63
64ICCDEP=$(AK)
65
66# Code common to compression and decompression.
67
68icclib_=$(ICCOBJ)icc.$(OBJ)
69$(ICCGEN)icclib.dev : $(ICCLIB_MAK) $(ECHOGS_XE) $(icclib_)
70	$(SETMOD) $(ICCGEN)icclib $(icclib_)
71
72icc_h=$(ICCSRC)$(D)icc.h $(ICCSRC)$(D)icc$(ICCPROFVER).h
73
74$(ICCOBJ)icc.$(OBJ) : $(ICCSRC)icc.c $(ICCDEP) $(ECHOGS_XE) $(icc_h)
75#	echo $(ICC_CCFLAGS)
76	$(EXP)$(ECHOGS_XE) $(ICC_CCFLAGS)
77	$(ICC_CC) $(ICCO_)icc.$(OBJ) $(C_) $(ICCSRC)icc.c
78