summaryrefslogtreecommitdiff
path: root/xicc/Jamfile
blob: 5a03901f3b7b6069ff7905cc2c122177dad64095 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176

#PREF_CCFLAGS 	+= $(CCOPTFLAG) ;		# Turn optimisation on
PREF_CCFLAGS	    += $(CCDEBUGFLAG) ;		# Debugging flags
#PREF_CCFLAGS	+= $(CCHEAPDEBUG) ;		# Heap Debugging flags
PREF_LINKFLAGS	+= $(LINKDEBUGFLAG) ;	# Link debugging flags

#Products
Libraries = libxicc libxcolorants libxutils ;
Executables = fakeCMY iccgamut mpplu revfix tiffgamut xicclu extracticc extractttag specplot ;
Headers = xicc.h ;
Samples = License.txt ;

#Install
InstallBin  $(DESTDIR)$(PREFIX)/bin : $(Executables) ;
InstallFile $(DESTDIR)$(PREFIX)/bin : $(Samples) ;
#InstallFile $(DESTDIR)$(PREFIX)/h : $(Headers) ;
#InstallLib  $(DESTDIR)$(PREFIX)/lib : $(Libraries) ;

HDRS = ../h ../icc ../rspl ../cgats ../numlib ../gamut ../spectro ../profile
       ../plot ../render $(TIFFINC) $(JPEGINC) $(LibWinH) ;

# XICC library
Library libxicc :  xicc.c xlutfix.c xspect.c xcolorants.c xutils.c iccjpeg.c xdevlin.c
        xcam.c cam97s3.c cam02.c mpp.c ccmx.c ccss.c xfit.c xdgb.c moncurve.c xcal.c bt1886.c ;

# colorant library. Use instead of libxicc
Object xcolorants2 : xcolorants.c ;
LibraryFromObjects libxcolorants : xcolorants2 ;

# standalone utilities library. Use instead of libxicc
Object xutils2 : xutils.c ;
Object iccjpeg2 : iccjpeg.c ;
LibraryFromObjects libxutils : xutils2 iccjpeg2 ;

# Utilities / test programs

LINKLIBS = libxicc ../spectro/libinsttypes ../gamut/libgamut ../rspl/librspl
           ../cgats/libcgats ../icc/libicc ../plot/libplot ../plot/libvrml
           ../numlib/libnum ../numlib/libui
           $(TIFFLIB) $(JPEGLIB) ; 

# Not created yet
#Main xicctest : xicctest.c ;

# Not created yet
#Main xlutest : xlutest.c ;

# expanded version of icclu
Main xicclu : xicclu.c ;

# expanded version of iccgamut - does Jab and ink limiting
Main iccgamut : iccgamut.c ;

# tiff file gamut utility
Main tiffgamut : tiffgamut.c : : : $(TIFFINC) $(JPEGINC) : : ;

# diagnostic utility
if [ GLOB [ NormPaths . ] : tiffgmts.c ]  {
	Main tiffgmts : tiffgmts.c : : : $(TIFFINC) $(JPEGINC) : : ../plot/libvrml ;
}

# Reverse profile fixer
Main revfix : revfix.c ;

# MPP lookup test utility
Main mpplu : mpplu.c ;

# Embedded ICC profile extractor
Main extracticc : extracticc.c : : : $(TIFFINC) $(JPEGINC) : : ;

# Text tag from ICC profile extracto
Main extractttag : extractttag.c : : : $(TIFFINC) $(JPEGINC) : : ;

# xcolorant lookup test
Main xcolorantslu : xcolorantslu.c ;

#test program for viewing inverse algorithm
#Should be in JUNK ??
Main fbview : fbview.c ;

Main fakeCMY : fakeCMY.c : : : ../target ;

Main xfbview : xfbview.c ;

Main icheck : icheck.c ;

# Test FWA in xspect
Main spectest : spectest.c ;

# Test FWA in xspect 2
Main spectest2 : spectest2.c : : : : : ../spectro/libinsttypes ;

# Spectral plotting and CCT test
Main ccttest : ccttest.c ;

# transfer curve plotting
Main transplot : transplot.c ;

# CGATS .ti3 plotting
Main cgatsplot : cgatsplot.c ;

# per channel curve testing
Main cv : cv.c ;

# per channel curve fitting testing
Main cvtest : cvtest.c ;

# per channel curve fitting testing
Main cvtest : cvtest.c ;

# Generate sub sampled illuminants or observers */
Main specsubsamp : specsubsamp.c ;

# Plot spectrum and test CCT spectrum code and illuminant utility
Main specplot : specplot.c ;

# CAM test routines
Main cam97test : cam97test.c ;
Main cam02test : cam02test.c ;

# Test utility for moncurve
Main monctest : monctest.c ;

#Main cam02vecplot : cam02vecplot.c : : : : : ../plot/libvrml ;

#Home = ' d:\usr\graeme ' and PWD = ' /src/argyll/xicc '
if $(HOME) = "d:\\usr\\graeme" && $(PWD) = "/src/argyll/xicc" {
	#Create test TIFF file for cam02 conversion
	Main cam02plot : cam02plot.c : : : $(TIFFINC) $(JPEGINC) : : ;
	Main cam02logplot : cam02logplot.c : : : $(TIFFINC) $(JPEGINC) : : ;
	Main cam02delplot : cam02delplot.c : : : $(TIFFINC) $(JPEGINC) : : ;
	Main cam02vecplot : cam02vecplot.c : : : : : ../plot/libvrml ;
}

#Main t : t.c ;

if $(BUILD_JUNK) {

	LINKLIBS += ../render/librender ;

	Main illlocus : illlocus.c ;
	Main illlocus2 : illlocus2.c ;

	Main slocustest : slocustest.c ;
	
	MainsFromSources t1.c t2.c t22.c t23.c t24.c t3.c ;

	Main test : test.c ;

	Main t : t.c ;

	# CAM97s3 matrix inversion calc
	Main cammatrix : cammatrix.c ;

	# test matrix deriv version
	Main t : t.c ;

	# Develop conjgrad version of code for profile
	Main tt3 : tt3.c ;

	# test icx_icc_cv_to_colorant_comb() 
	Main tcc : tcc.c ;

	# Develop conjgrad version of code for profile
	Main tt4 : tt4.c ;

	# Test viewing conditions extractor
	Main vctest : vctest.c ;

	# ~~~ test code
	Main lseptest : lseptest.c ;

	# ~~~ test code
	Main llseptest : llseptest.c ;
}