3 top_srcdir = @top_srcdir@
4 include ../Makefile.common
6 all: librfxswf$(A) libgfxpdf$(A) libbase$(A) libgfx$(A) libgfxswf$(A) libocr$(A)
8 lame_objects = lame/psymodel.$(O) lame/fft.$(O) lame/newmdct.$(O) lame/quantize.$(O) lame/takehiro.$(O) lame/reservoir.$(O) lame/quantize_pvt.$(O) lame/vbrquantize.$(O) lame/encoder.$(O) lame/id3tag.$(O) lame/version.$(O) lame/tables.$(O) lame/util.$(O) lame/bitstream.$(O) lame/set_get.$(O) lame/VbrTag.$(O) lame/lame.$(O)
9 lame_in_source = @lame_in_source@
11 h263_objects = h.263/dct.$(O) h.263/h263tables.$(O) h.263/swfvideo.$(O)
13 as12compiler_objects = action/assembler.$(O) action/compile.$(O) action/lex.swf4.$(O) action/lex.swf5.$(O) action/libming.$(O) action/swf4compiler.tab.$(O) action/swf5compiler.tab.$(O) action/actioncompiler.$(O)
14 as12compiler_in_source = $(as12compiler_objects)
16 as3compiler_objects = as3/abc.$(O) as3/pool.$(O) as3/files.$(O) as3/opcodes.$(O) as3/code.$(O) as3/registry.$(O) as3/builtin.$(O) as3/parser.tab.$(O) as3/tokenizer.yy.$(O) as3/scripts.$(O) as3/compiler.$(O) as3/import.$(O) as3/expr.$(O) as3/common.$(O) as3/initcode.$(O) as3/assets.$(O)
17 gfxpoly_objects = gfxpoly/active.$(O) gfxpoly/convert.$(O) gfxpoly/poly.$(O) gfxpoly/renderpoly.$(O) gfxpoly/stroke.$(O) gfxpoly/wind.$(O) gfxpoly/xrow.$(O)
19 rfxswf_modules = modules/swfbits.c modules/swfaction.c modules/swfdump.c modules/swfcgi.c modules/swfbutton.c modules/swftext.c modules/swffont.c modules/swftools.c modules/swfsound.c modules/swfshape.c modules/swfobject.c modules/swfdraw.c modules/swffilter.c modules/swfrender.c h.263/swfvideo.c modules/swfalignzones.c
21 base_objects=q.$(O) utf8.$(O) png.$(O) jpeg.$(O) wav.$(O) mp3.$(O) os.$(O) bitio.$(O) log.$(O) mem.$(O) MD5.$(O) xml.$(O) ttf.$(O)
22 devices=devices/dummy.$(O) devices/file.$(O) devices/render.$(O) devices/text.$(O) devices/record.$(O) devices/ops.$(O) devices/polyops.$(O) devices/bbox.$(O) devices/rescale.$(O) @DEVICE_OPENGL@ @DEVICE_PDF@
23 filters=filters/alpha.$(O) filters/remove_font_transforms.$(O) filters/one_big_font.$(O) filters/vectors_to_glyphs.$(O)
24 gfx_objects=gfximage.$(O) gfxtools.$(O) gfxfont.$(O) gfxfilter.$(O) $(devices) $(filters)
26 rfxswf_objects=modules/swfaction.$(O) modules/swfbits.$(O) modules/swfbutton.$(O) modules/swfcgi.$(O) modules/swfdraw.$(O) modules/swfdump.$(O) modules/swffilter.$(O) modules/swffont.$(O) modules/swfobject.$(O) modules/swfrender.$(O) modules/swfshape.$(O) modules/swfsound.$(O) modules/swftext.$(O) modules/swftools.$(O) modules/swfalignzones.$(O)
27 ocr_objects=gocr/box.$(O) gocr/database.$(O) gocr/detect.$(O) gocr/job.$(O) gocr/lines.$(O) gocr/list.$(O) gocr/ocr0.$(O) gocr/ocr0n.$(O) gocr/ocr1.$(O) gocr/otsu.$(O) gocr/output.$(O) gocr/pgm2asc.$(O) gocr/pixel.$(O) gocr/progress.$(O) gocr/remove.$(O) gocr/unicode.$(O)
33 action/%.$(O): action/%.c
37 gfxpoly/%.$(O): gfxpoly/%.c
40 bitio.$(O): bitio.c bitio.h
42 drawer.$(O): drawer.c drawer.h
44 q.$(O): q.c q.h $(top_builddir)/config.h
46 utf8.$(O): utf8.c utf8.h $(top_builddir)/config.h
48 mem.$(O): mem.c mem.h $(top_builddir)/config.h
50 png.$(O): png.c png.h $(top_builddir)/config.h
52 jpeg.$(O): jpeg.c jpeg.h $(top_builddir)/config.h
54 mp3.$(O): mp3.c mp3.h $(top_builddir)/config.h
56 wav.$(O): wav.c wav.h $(top_builddir)/config.h
58 xml.$(O): xml.c xml.h bitio.h
62 os.$(O): os.c os.h $(top_builddir)/config.h
63 $(C) -DSWFTOOLS_DATADIR=\"$(pkgdatadir)\" os.c -o $@
64 modules/swfaction.$(O): modules/swfaction.c rfxswf.h
65 $(C) modules/swfaction.c -o $@
66 modules/swfbits.$(O): modules/swfbits.c rfxswf.h
67 $(C) modules/swfbits.c -o $@
68 modules/swfbutton.$(O): modules/swfbutton.c rfxswf.h
69 $(C) modules/swfbutton.c -o $@
70 modules/swfcgi.$(O): modules/swfcgi.c rfxswf.h
71 $(C) modules/swfcgi.c -o $@
72 modules/swfdraw.$(O): modules/swfdraw.c rfxswf.h
73 $(C) modules/swfdraw.c -o $@
74 modules/swfdump.$(O): modules/swfdump.c rfxswf.h
75 $(C) modules/swfdump.c -o $@
76 modules/swffilter.$(O): modules/swffilter.c rfxswf.h
77 $(C) modules/swffilter.c -o $@
78 modules/swfalignzones.$(O): modules/swfalignzones.c graphcut.c graphcut.h rfxswf.h
79 $(C) modules/swfalignzones.c -o $@
80 modules/swffont.$(O): modules/swffont.c rfxswf.h
81 $(C) modules/swffont.c -o $@
82 modules/swfobject.$(O): modules/swfobject.c rfxswf.h
83 $(C) modules/swfobject.c -o $@
84 modules/swfrender.$(O): modules/swfrender.c rfxswf.h
85 $(C) modules/swfrender.c -o $@
86 modules/swfshape.$(O): modules/swfshape.c rfxswf.h
87 $(C) modules/swfshape.c -o $@
88 modules/swfsound.$(O): modules/swfsound.c rfxswf.h
89 $(C) modules/swfsound.c -o $@
90 modules/swftext.$(O): modules/swftext.c rfxswf.h
91 $(C) modules/swftext.c -o $@
92 modules/swftools.$(O): modules/swftools.c rfxswf.h
93 $(C) modules/swftools.c -o $@
94 gfximage.$(O): gfximage.c gfximage.h gfxdevice.h $(top_builddir)/config.h
96 gfxtools.$(O): gfxtools.c gfxtools.h $(top_builddir)/config.h
98 gfxfont.$(O): gfxfont.c gfxfont.h ttf.h $(top_builddir)/config.h
100 gfxfilter.$(O): gfxfilter.c gfxfilter.h ttf.h $(top_builddir)/config.h
101 $(C) gfxfilter.c -o $@
102 gfxwindow.$(O): gfxwindow_win32.c gfxwindow_unix.c gfxwindow.c gfxwindow.h
103 $(C) gfxwindow.c -o $@
105 MD5.$(O): MD5.c MD5.h
107 log.$(O): log.c log.h
110 rfxswf.$(O): rfxswf.c rfxswf.h drawer.h bitio.h log.h MD5.h $(top_builddir)/config.h
113 #$(as12compiler_objects):
114 # cd action;$(MAKE) all;cd ..
116 h.263/dct.$(O): h.263/dct.c h.263/dct.h
117 $(C) h.263/dct.c -o h.263/dct.$(O)
118 h.263/h263tables.$(O): h.263/h263tables.c h.263/h263tables.h
119 $(C) h.263/h263tables.c -o h.263/h263tables.$(O)
120 h.263/swfvideo.$(O): h.263/swfvideo.c h.263/h263tables.h h.263/dct.h
121 $(C) h.263/swfvideo.c -o h.263/swfvideo.$(O)
123 devices/swf.$(O): devices/swf.c devices/swf.h
124 $(C) devices/swf.c -o devices/swf.$(O)
125 devices/file.$(O): devices/file.c devices/file.h
126 $(C) devices/file.c -o devices/file.$(O)
127 devices/dummy.$(O): devices/dummy.c devices/dummy.h
128 $(C) devices/dummy.c -o devices/dummy.$(O)
129 devices/render.$(O): devices/render.c devices/render.h
130 $(C) devices/render.c -o devices/render.$(O)
131 devices/opengl.$(O): devices/opengl.c devices/opengl.h
132 $(C) devices/opengl.c -o devices/opengl.$(O)
133 devices/polyops.$(O): devices/polyops.c devices/polyops.h gfxpoly.h
134 $(C) devices/polyops.c -o devices/polyops.$(O)
135 devices/record.$(O): devices/record.c devices/record.h
136 $(C) devices/record.c -o devices/record.$(O)
137 devices/text.$(O): devices/text.c devices/text.h
138 $(C) devices/text.c -o devices/text.$(O)
139 devices/ops.$(O): devices/ops.c devices/ops.h
140 $(C) devices/ops.c -o devices/ops.$(O)
141 devices/rescale.$(O): devices/rescale.c devices/rescale.h
142 $(C) devices/rescale.c -o devices/rescale.$(O)
143 devices/bbox.$(O): devices/bbox.c devices/bbox.h
144 $(C) devices/bbox.c -o devices/bbox.$(O)
145 devices/lrf.$(O): devices/lrf.c devices/lrf.h
146 $(C) devices/lrf.c -o devices/lrf.$(O)
147 devices/ocr.$(O): devices/ocr.c devices/ocr.h gocr/gocr.h
148 $(C) devices/ocr.c -o devices/ocr.$(O)
150 filters/alpha.$(O): filters/alpha.c gfxfilter.h
151 $(C) filters/alpha.c -o filters/alpha.$(O)
152 filters/remove_font_transform.$(O): filters/remove_font_transform.c gfxfilter.h
153 $(C) filters/remove_font_transform.c -o filters/remove_font_transform.$(O)
155 readers/swf2.$(O): readers/swf.c readers/swf.h
156 $(C) readers/swf.c -o readers/swf2.$(O)
157 readers/image.$(O): readers/image.c readers/image.h
158 $(C) readers/image.c -o readers/image.$(O)
160 libocr$(A): $(ocr_objects) devices/ocr.$(O)
162 $(AR) r libocr$(A) $(ocr_objects) devices/ocr.$(O)
165 libbase$(A): $(base_objects) Makefile
167 $(AR) r libbase$(A) $(base_objects)
168 $(RANLIB) libbase$(A)
170 libgfxswf$(A): devices/swf.$(O) readers/swf2.$(O) readers/image.$(O)
172 $(AR) r libgfxswf$(A) devices/swf.$(O) readers/swf2.$(O) readers/image.$(O)
173 $(RANLIB) libgfxswf$(A)
175 libgfx$(A): $(gfx_objects) $(gfxpoly_objects) Makefile
177 $(AR) r libgfx$(A) $(gfx_objects) $(gfxpoly_objects)
180 librfxswf$(A): Makefile $(rfxswf_objects) rfxswf.$(O) drawer.$(O) $(lame_in_source) $(h263_objects) $(as12compiler_in_source) $(as3compiler_objects) Makefile
182 $(AR) r librfxswf$(A) $(rfxswf_objects) rfxswf.$(O) drawer.$(O) $(lame_in_source) $(h263_objects) $(as12compiler_in_source) $(as3compiler_objects)
183 $(RANLIB) librfxswf$(A)
185 libgfxpdf$(A): pdf/GFXOutputDev.cc pdf/GFXOutputDev.h pdf/pdf.cc pdf/pdf.h
186 cd pdf;$(MAKE) libgfxpdf
189 $(L) png.test.c -o png.test $(LIBS)
195 rm -f *.o *.obj *.lo *.a *.lib *.la gmon.out
196 for dir in modules filters devices swf as3 readers art gocr h.263 gfxpoly;do rm -f $$dir/*.o $$dir/*.obj $$dir/*.lo $$dir/*.a $$dir/*.lib $$dir/*.la $$dir/gmon.out;done
197 cd lame && $(MAKE) clean && cd .. || true
198 cd action && $(MAKE) clean && cd ..
199 cd python && $(MAKE) clean && cd ..
200 cd pdf && $(MAKE) clean && cd ..