3 top_srcdir = @top_srcdir@
4 include ../Makefile.common
6 all: librfxswf$(A) libpdf$(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)
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
21 base_objects=q.$(O) utf8.$(O) png.$(O) jpeg.$(O) wav.$(O) mp3.$(O) os.$(O) bitio.$(O) log.$(O) mem.$(O)
22 gfx_objects=gfxtools.$(O) gfxfont.$(O) 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@
24 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)
25 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)
31 action/%.$(O): action/%.c
35 gfxpoly/%.$(O): gfxpoly/%.c
38 bitio.$(O): bitio.c bitio.h
40 drawer.$(O): drawer.c drawer.h
42 q.$(O): q.c q.h $(top_builddir)/config.h
44 utf8.$(O): utf8.c utf8.h $(top_builddir)/config.h
46 mem.$(O): mem.c mem.h $(top_builddir)/config.h
48 png.$(O): png.c png.h $(top_builddir)/config.h
50 jpeg.$(O): jpeg.c jpeg.h $(top_builddir)/config.h
52 mp3.$(O): mp3.c mp3.h $(top_builddir)/config.h
54 wav.$(O): wav.c wav.h $(top_builddir)/config.h
56 os.$(O): os.c os.h $(top_builddir)/config.h
57 $(C) -DSWFTOOLS_DATADIR=\"$(pkgdatadir)\" os.c -o $@
58 modules/swfaction.$(O): modules/swfaction.c rfxswf.h
59 $(C) modules/swfaction.c -o $@
60 modules/swfbits.$(O): modules/swfbits.c rfxswf.h
61 $(C) modules/swfbits.c -o $@
62 modules/swfbutton.$(O): modules/swfbutton.c rfxswf.h
63 $(C) modules/swfbutton.c -o $@
64 modules/swfcgi.$(O): modules/swfcgi.c rfxswf.h
65 $(C) modules/swfcgi.c -o $@
66 modules/swfdraw.$(O): modules/swfdraw.c rfxswf.h
67 $(C) modules/swfdraw.c -o $@
68 modules/swfdump.$(O): modules/swfdump.c rfxswf.h
69 $(C) modules/swfdump.c -o $@
70 modules/swffilter.$(O): modules/swffilter.c rfxswf.h
71 $(C) modules/swffilter.c -o $@
72 modules/swffont.$(O): modules/swffont.c rfxswf.h
73 $(C) modules/swffont.c -o $@
74 modules/swfobject.$(O): modules/swfobject.c rfxswf.h
75 $(C) modules/swfobject.c -o $@
76 modules/swfrender.$(O): modules/swfrender.c rfxswf.h
77 $(C) modules/swfrender.c -o $@
78 modules/swfshape.$(O): modules/swfshape.c rfxswf.h
79 $(C) modules/swfshape.c -o $@
80 modules/swfsound.$(O): modules/swfsound.c rfxswf.h
81 $(C) modules/swfsound.c -o $@
82 modules/swftext.$(O): modules/swftext.c rfxswf.h
83 $(C) modules/swftext.c -o $@
84 modules/swftools.$(O): modules/swftools.c rfxswf.h
85 $(C) modules/swftools.c -o $@
86 gfxtools.$(O): gfxtools.c gfxtools.h $(top_builddir)/config.h
88 gfxfont.$(O): gfxfont.c gfxfont.h $(top_builddir)/config.h
90 gfxwindow.$(O): gfxwindow_win32.c gfxwindow_unix.c gfxwindow.c gfxwindow.h
91 $(C) gfxwindow.c -o $@
97 rfxswf.$(O): rfxswf.c rfxswf.h drawer.h bitio.h log.h MD5.h $(top_builddir)/config.h
100 #$(as12compiler_objects):
101 # cd action;$(MAKE) all;cd ..
103 h.263/dct.$(O): h.263/dct.c h.263/dct.h
104 $(C) h.263/dct.c -o h.263/dct.$(O)
105 h.263/h263tables.$(O): h.263/h263tables.c h.263/h263tables.h
106 $(C) h.263/h263tables.c -o h.263/h263tables.$(O)
107 h.263/swfvideo.$(O): h.263/swfvideo.c h.263/h263tables.h h.263/dct.h
108 $(C) h.263/swfvideo.c -o h.263/swfvideo.$(O)
110 devices/swf.$(O): devices/swf.c devices/swf.h
111 $(C) devices/swf.c -o devices/swf.$(O)
112 devices/file.$(O): devices/file.c devices/file.h
113 $(C) devices/file.c -o devices/file.$(O)
114 devices/dummy.$(O): devices/dummy.c devices/dummy.h
115 $(C) devices/dummy.c -o devices/dummy.$(O)
116 devices/render.$(O): devices/render.c devices/render.h
117 $(C) devices/render.c -o devices/render.$(O)
118 devices/opengl.$(O): devices/opengl.c devices/opengl.h
119 $(C) devices/opengl.c -o devices/opengl.$(O)
120 devices/polyops.$(O): devices/polyops.c devices/polyops.h gfxpoly.h
121 $(C) devices/polyops.c -o devices/polyops.$(O)
122 devices/record.$(O): devices/record.c devices/record.h
123 $(C) devices/record.c -o devices/record.$(O)
124 devices/text.$(O): devices/text.c devices/text.h
125 $(C) devices/text.c -o devices/text.$(O)
126 devices/ops.$(O): devices/ops.c devices/ops.h
127 $(C) devices/ops.c -o devices/ops.$(O)
128 devices/rescale.$(O): devices/rescale.c devices/rescale.h
129 $(C) devices/rescale.c -o devices/rescale.$(O)
130 devices/bbox.$(O): devices/bbox.c devices/bbox.h
131 $(C) devices/bbox.c -o devices/bbox.$(O)
132 devices/lrf.$(O): devices/lrf.c devices/lrf.h
133 $(C) devices/lrf.c -o devices/lrf.$(O)
134 devices/ocr.$(O): devices/ocr.c devices/ocr.h gocr/gocr.h
135 $(C) devices/ocr.c -o devices/ocr.$(O)
137 readers/swf2.$(O): readers/swf.c readers/swf.h
138 $(C) readers/swf.c -o readers/swf2.$(O)
139 readers/image.$(O): readers/image.c readers/image.h
140 $(C) readers/image.c -o readers/image.$(O)
142 libocr$(A): $(ocr_objects) devices/ocr.$(O)
143 $(AR) r libocr$(A) $(ocr_objects) devices/ocr.$(O)
146 libbase$(A): $(base_objects) Makefile
147 $(AR) r libbase$(A) $(base_objects)
148 $(RANLIB) libbase$(A)
150 libgfxswf$(A): devices/swf.$(O) readers/swf2.$(O) readers/image.$(O)
151 $(AR) r libgfxswf$(A) devices/swf.$(O) readers/swf2.$(O) readers/image.$(O)
152 $(RANLIB) libgfxswf$(A)
154 libgfx$(A): $(gfx_objects) $(gfxpoly_objects) Makefile
155 $(AR) r libgfx$(A) $(gfx_objects) $(gfxpoly_objects)
158 librfxswf$(A): Makefile $(rfxswf_objects) rfxswf.$(O) drawer.$(O) MD5.$(O) $(lame_in_source) $(h263_objects) $(as12compiler_in_source) $(as3compiler_objects) Makefile
159 $(AR) r librfxswf$(A) $(rfxswf_objects) rfxswf.$(O) drawer.$(O) MD5.$(O) $(lame_in_source) $(h263_objects) $(as12compiler_in_source) $(as3compiler_objects)
160 $(RANLIB) librfxswf$(A)
162 libpdf$(A): pdf/GFXOutputDev.cc pdf/GFXOutputDev.h pdf/pdf.cc pdf/pdf.h
163 cd pdf;$(MAKE) libpdf
166 $(L) png.test.c -o png.test $(LIBS)
172 rm -f *.o *.obj *.lo *.a *.lib *.la gmon.out
173 for dir in modules 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
174 cd lame && $(MAKE) clean && cd .. || true
175 cd action && $(MAKE) clean && cd ..
176 cd python && $(MAKE) clean && cd ..
177 cd pdf && $(MAKE) clean && cd ..