summaryrefslogtreecommitdiff
path: root/Makefile
blob: 7fb169dbfff36009c45a1a90d83799697a19de58 (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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
all: pcl xps svg ls-product

all-lib: pcl-lib xps-lib svg-lib ls-lib

debug: pcl-debug xps-debug svg-debug ls-debug

memento: pcl-memento xps-memento svg-memento ls-memento

clean: pcl-clean xps-clean svg-clean ls-clean

debug-clean: pcl-debug-clean xps-debug-clean svg-debug-clean ls-debug-clean

memento-clean: pcl-memento-clean xps-memento-clean svg-memento-clean ls-memento-clean

test: pcl-test ls-test xps-test svg-test

# only pcl has an install target at this point
install: pcl-install

uninstall: pcl-uninstall

product: pcl

# specific front-end targets

pcl:
	$(MAKE) -C main -f pcl6_gcc.mak	pdl-product # build PCL and PCLXL. 

pcl-lib:
	$(MAKE) -C main -f pcl6_gcc.mak	pdl-product-lib # build PCL and PCLXL lib

pcl-lib-shared:
	$(MAKE) -C main -f pcl6_gcc.mak	pdl-product-solib # build PCL and PCLXL shared lib

pcl-debug: 
	$(MAKE) -C main -f pcl6_gcc.mak pdl-debug GENDIR="./debugobj"

pcl-memento:
	$(MAKE) -C main -f pcl6_gcc.mak pdl-memento GENDIR="./memobj"

fonts:
	mkdir -p /windows/fonts/	# make a font directory. 2 
	cp urwfonts/*.ttf /windows/fonts/	# copy the fonts. 
	touch fonts

pcl-profile:
	$(MAKE) -C main -f pcl6_gcc.mak GENDIR="./pgobj" pdl-pg

pcl-install:
	install main/obj/pcl6 /usr/local/bin

pcl-uninstall:
	rm -f /usr/local/bin/pcl6

pcl-test: 
	./main/obj/pcl6 -dTextAlphaBits=4 \
		tools/owl.pcl tools/tiger.px3 # test with PCL and PXL test files 
# NB - this does not remove the fonts.  blowing away /windows/fonts
# might be unexpected on some systems and we don't enumerate the font
# names here so they could be removed individually.

pcl-clean:
	$(MAKE) -C main -f pcl6_gcc.mak pdl-clean
	rm -f fonts

pcl-debug-clean:
	$(MAKE) -C main -f pcl6_gcc.mak pdl-clean GENDIR="./debugobj"
	rm -f fonts

pcl-memento-clean:
	$(MAKE) -C main -f pcl6_gcc.mak pdl-clean GENDIR="./memobj"
	rm -f fonts

xps-debug:
	$(MAKE) -C xps -f xps_gcc.mak pdl-debug GENDIR="./debugobj"

xps-memento:
	$(MAKE) -C xps -f xps_gcc.mak pdl-memento GENDIR="./memobj"

xps:
	$(MAKE) -C xps -f xps_gcc.mak pdl-product # build XPS

xps-lib:
	$(MAKE) -C xps -f xps_gcc.mak pdl-product-lib # build XPS lib

xps-clean:
	$(MAKE) -C xps -f xps_gcc.mak pdl-clean

xps-debug-clean:
	$(MAKE) -C xps -f xps_gcc.mak pdl-clean GENDIR="./debugobj"

xps-memento-clean:
	$(MAKE) -C xps -f xps_gcc.mak pdl-clean GENDIR="./memobj"

xps-test:
	./xps/obj/gxps tools/tiger.xps

svg-debug:
	$(MAKE) -C svg -f svg_gcc.mak pdl-debug GENDIR="./debugobj"

svg-memento:
	$(MAKE) -C svg -f svg_gcc.mak pdl-memento GENDIR="./memobj"

svg:
	$(MAKE) -C svg -f svg_gcc.mak pdl-product # build SVG

svg-lib:
	$(MAKE) -C svg -f svg_gcc.mak pdl-product-lib # build SVG lib

svg-clean:
	$(MAKE) -C svg -f svg_gcc.mak pdl-clean

svg-debug-clean:
	$(MAKE) -C svg -f svg_gcc.mak pdl-clean GENDIR="./debugobj"

svg-memento-clean:
	$(MAKE) -C svg -f svg_gcc.mak pdl-clean GENDIR="./memobj"

svg-test:
	./svg/obj/gsvg tools/tiger.svg

mupdf-debug:
	$(MAKE) -C mupdf -f bovine_gcc.mak pdl-debug GENDIR="./debugobj"

mupdf:
	$(MAKE) -C mupdf -f bovine_gcc.mak pdl-product

mupdf-clean:
	$(MAKE) -C mupdf -f bovine_gcc.mak pdl-clean

mupdf-debug-clean:
	$(MAKE) -C mupdf -f bovine_gcc.mak pdl-clean GENDIR="./debugobj"


ufst_built:
	$(MAKE) -C ufst/rts/lib -f makefile.artifex
	touch ufst_built	

####  UFST LIBRARY DEPENDENCY RULES ####

ufst: ufst_built

####  LANGUAGE SWITCHING PRODUCT RULES ####

ls-profile:
	$(MAKE) -C language_switch -f pspcl6_gcc.mak GENDIR="./pgobj" pdl-pg

ls-product:
	$(MAKE) -C language_switch -f pspcl6_gcc.mak pdl-product # build PS/PCL/XL. 

ls-lib:
	$(MAKE) -C language_switch -f pspcl6_gcc.mak pdl-product-lib # build PS/PCL/XL lib.

ls-debug:
	$(MAKE) -C language_switch -f pspcl6_gcc.mak pdl-debug GENDIR="./debugobj"

ls-memento:
	$(MAKE) -C language_switch -f pspcl6_gcc.mak pdl-memento GENDIR="./memobj"

ls-fonts:
	mkdir -p /windows/fonts/	# make a font directory. 2 
	cp urwfonts/*.ttf /windows/fonts/	# copy the fonts. 
	touch fonts

ls-install:
	install language_switch/obj/pspcl6 /usr/local/bin

# test with PCL, PXL and PS file 
ls-test:
	(cd ./gs/lib/; \
	../../language_switch/obj/pspcl6 -dTextAlphaBits=4 \
	../../tools/owl.pcl ../../tools/tiger.px3 ../examples/tiger.eps)

check:
	tools/smoke_check.sh


# NB - this does not remove the fonts.  blowing away /windows/fonts
# might be unexpected on some systems and we don't enumerate the font
# names here so they could be removed individually.

ls-clean:
	$(MAKE) -C language_switch -f pspcl6_gcc.mak pdl-clean
	#rm -f fonts /usr/local/bin/pspcl6

ls-debug-clean:
	$(MAKE) -C language_switch -f pspcl6_gcc.mak pdl-clean GENDIR="./debugobj"

# shortcuts for common build types.

ls-uproduct: ufst
	$(MAKE) -C language_switch -f pspcl6_gcc.mak PL_SCALER=ufst GENDIR="./ufst-obj" pdl-product

ls-udebug: ufst
	$(MAKE) -C language_switch -f pspcl6_gcc.mak PL_SCALER=ufst GENDIR="./ufst-debugobj" pdl-debug

ls-umemento: ufst
	$(MAKE) -C language_switch -f pspcl6_gcc.mak PL_SCALER=ufst GENDIR="./ufst-memobj" pdl-memento

ls-uclean:
	$(MAKE) -C language_switch -f pspcl6_gcc.mak PL_SCALER=ufst GENDIR="./ufst-obj" pdl-clean
	$(MAKE) -C ufst/rts/lib -f makefile.artifex clean
	rm -f ufst_built

ls-udebug-clean:
	$(MAKE) -C language_switch -f pspcl6_gcc.mak PL_SCALER=ufst GENDIR="./ufst-obj" pdl-clean
	$(MAKE) -C ufst/rts/lib -f makefile.artifex debug-clean
	rm -f ufst_built

ls-umemento-clean:
	$(MAKE) -C language_switch -f pspcl6_gcc.mak PL_SCALER=ufst GENDIR="./ufst-memobj" pdl-clean
	$(MAKE) -C ufst/rts/lib -f makefile.artifex debug-clean
	rm -f ufst_built

uproduct: ufst
	$(MAKE) -C main -f pcl6_gcc.mak PL_SCALER=ufst GENDIR="./ufst-obj" pdl-product

udebug: ufst
	$(MAKE) -C main -f pcl6_gcc.mak PL_SCALER=ufst GENDIR="./ufst-debugobj" pdl-debug

umemento: ufst
	$(MAKE) -C main -f pcl6_gcc.mak PL_SCALER=ufst GENDIR="./ufst-memobj" pdl-memento

uclean:
	$(MAKE) -C main -f pcl6_gcc.mak PL_SCALER=ufst GENDIR="./ufst-obj" pdl-clean
	$(MAKE) -C ufst/rts/lib -f makefile.artifex clean
	rm -f ufst_built

udebug-clean:
	$(MAKE) -C main -f pcl6_gcc.mak PL_SCALER=ufst GENDIR="./ufst-debugobj" pdl-clean
	$(MAKE) -C ufst/rts/lib -f makefile.artifex clean
	rm -f ufst_built

umemento-clean:
	$(MAKE) -C main -f pcl6_gcc.mak PL_SCALER=ufst GENDIR="./ufst-memobj" pdl-clean
	$(MAKE) -C ufst/rts/lib -f makefile.artifex clean
	rm -f ufst_built

all-debug: pcl-debug udebug ls-debug ls-udebug xps-debug

all-memento: pcl-memento umemento ls-memento ls-umemento xps-memento

all-clean: clean clean-debug clean-memento ls-clean ls-debug-clean ls-memento-clean uclean udebug-clean umemento-clean ls-uclean ls-udebug-clean ls-umemento-clean
	$(MAKE) -C ufst/rts/lib -f makefile.artifex clean

.PHONY: all clean test check install uninstall product profile pcl pcl-debug pcl-memento pcl-test pcl-install pcl-uninstall pcl-clean pcl-debug-clean pcl-memento-clean xps xps-debug xps-memento svg svg-debug svg-memento ls-clean ls-debug-clean ls-memento-clean ls-test ls-install ls-product ls-profile ls-udebug ls-umemento udebug umemento ufst mupdf