3 top_srcdir = @top_srcdir@
4 include ../Makefile.common
6 DEVICES = devices/swf.$(O) #devices/lrf.$(O) devices/opengl.$(O)
8 all: librfxswf$(A) libpdf$(A) libbase$(A) libgfx$(A) libgfxswf$(A) libocr$(A) $(DEVICES)
10 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)
11 lame_in_source = @lame_in_source@
13 h263_objects = h.263/dct.$(O) h.263/h263tables.$(O) h.263/swfvideo.$(O)
15 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)
16 as12compiler_in_source = $(as12compiler_objects)
18 as3compiler_objects = as3/abc.$(O) as3/pool.$(O) as3/files.$(O) as3/opcodes.$(O) as3/code.$(O)
20 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
22 base_objects=q.$(O) utf8.$(O) png.$(O) jpeg.$(O) wav.$(O) mp3.$(O) os.$(O) bitio.$(O) log.$(O) mem.$(O)
23 gfx_objects=gfxtools.$(O) gfxfont.$(O) gfxpoly.$(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@
25 art_objects = art/art_affine.$(O) art/art_alphagamma.$(O) art/art_bpath.$(O) art/art_gray_svp.$(O) art/art_misc.$(O) art/art_pixbuf.$(O) art/art_rect.$(O) art/art_rect_svp.$(O) art/art_rect_uta.$(O) art/art_render.$(O) art/art_render_gradient.$(O) art/art_render_mask.$(O) art/art_render_svp.$(O) art/art_rgb.$(O) art/art_rgb_a_affine.$(O) art/art_rgb_affine.$(O) art/art_rgb_affine_private.$(O) art/art_rgb_bitmap_affine.$(O) art/art_rgb_pixbuf_affine.$(O) art/art_rgb_rgba_affine.$(O) art/art_rgb_svp.$(O) art/art_rgba.$(O) art/art_svp.$(O) art/art_svp_intersect.$(O) art/art_svp_ops.$(O) art/art_svp_point.$(O) art/art_svp_render_aa.$(O) art/art_svp_vpath.$(O) art/art_svp_vpath_stroke.$(O) art/art_svp_wind.$(O) art/art_uta.$(O) art/art_uta_ops.$(O) art/art_uta_rect.$(O) art/art_uta_svp.$(O) art/art_uta_vpath.$(O) art/art_vpath.$(O) art/art_vpath_bpath.$(O) art/art_vpath_dash.$(O) art/art_vpath_svp.$(O)
26 art_in_source = @art_in_source@
28 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)
29 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)
35 action/%.$(O): action/%.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 os.$(O): os.c os.h $(top_builddir)/config.h
59 $(C) -DSWFTOOLS_DATADIR=\"$(pkgdatadir)\" os.c -o $@
60 modules/swfaction.$(O): modules/swfaction.c rfxswf.h
61 $(C) modules/swfaction.c -o $@
62 modules/swfbits.$(O): modules/swfbits.c rfxswf.h
63 $(C) modules/swfbits.c -o $@
64 modules/swfbutton.$(O): modules/swfbutton.c rfxswf.h
65 $(C) modules/swfbutton.c -o $@
66 modules/swfcgi.$(O): modules/swfcgi.c rfxswf.h
67 $(C) modules/swfcgi.c -o $@
68 modules/swfdraw.$(O): modules/swfdraw.c rfxswf.h
69 $(C) modules/swfdraw.c -o $@
70 modules/swfdump.$(O): modules/swfdump.c rfxswf.h
71 $(C) modules/swfdump.c -o $@
72 modules/swffilter.$(O): modules/swffilter.c rfxswf.h
73 $(C) modules/swffilter.c -o $@
74 modules/swffont.$(O): modules/swffont.c rfxswf.h
75 $(C) modules/swffont.c -o $@
76 modules/swfobject.$(O): modules/swfobject.c rfxswf.h
77 $(C) modules/swfobject.c -o $@
78 modules/swfrender.$(O): modules/swfrender.c rfxswf.h
79 $(C) modules/swfrender.c -o $@
80 modules/swfshape.$(O): modules/swfshape.c rfxswf.h
81 $(C) modules/swfshape.c -o $@
82 modules/swfsound.$(O): modules/swfsound.c rfxswf.h
83 $(C) modules/swfsound.c -o $@
84 modules/swftext.$(O): modules/swftext.c rfxswf.h
85 $(C) modules/swftext.c -o $@
86 modules/swftools.$(O): modules/swftools.c rfxswf.h
87 $(C) modules/swftools.c -o $@
88 gfxtools.$(O): gfxtools.c gfxtools.h $(top_builddir)/config.h
90 gfxpoly.$(O): gfxpoly.c gfxpoly.h $(top_builddir)/config.h
92 gfxfont.$(O): gfxfont.c gfxfont.h $(top_builddir)/config.h
94 gfxwindow.$(O): gfxwindow_win32.c gfxwindow_unix.c gfxwindow.c gfxwindow.h
95 $(C) gfxwindow.c -o $@
101 rfxswf.$(O): rfxswf.c rfxswf.h drawer.h bitio.h log.h MD5.h $(top_builddir)/config.h
104 #$(as12compiler_objects):
105 # cd action;$(MAKE) all;cd ..
107 h.263/dct.$(O): h.263/dct.c h.263/dct.h
108 $(C) h.263/dct.c -o h.263/dct.$(O)
109 h.263/h263tables.$(O): h.263/h263tables.c h.263/h263tables.h
110 $(C) h.263/h263tables.c -o h.263/h263tables.$(O)
111 h.263/swfvideo.$(O): h.263/swfvideo.c h.263/h263tables.h h.263/dct.h
112 $(C) h.263/swfvideo.c -o h.263/swfvideo.$(O)
114 devices/swf.$(O): devices/swf.c devices/swf.h
115 $(C) devices/swf.c -o devices/swf.$(O)
116 devices/file.$(O): devices/file.c devices/file.h
117 $(C) devices/file.c -o devices/file.$(O)
118 devices/dummy.$(O): devices/dummy.c devices/dummy.h
119 $(C) devices/dummy.c -o devices/dummy.$(O)
120 devices/render.$(O): devices/render.c devices/render.h
121 $(C) devices/render.c -o devices/render.$(O)
122 devices/opengl.$(O): devices/opengl.c devices/opengl.h
123 $(C) devices/opengl.c -o devices/opengl.$(O)
124 devices/polyops.$(O): devices/polyops.c devices/polyops.h gfxpoly.h
125 $(C) devices/polyops.c -o devices/polyops.$(O)
126 devices/record.$(O): devices/record.c devices/record.h
127 $(C) devices/record.c -o devices/record.$(O)
128 devices/text.$(O): devices/text.c devices/text.h
129 $(C) devices/text.c -o devices/text.$(O)
130 devices/ops.$(O): devices/ops.c devices/ops.h
131 $(C) devices/ops.c -o devices/ops.$(O)
132 devices/rescale.$(O): devices/rescale.c devices/rescale.h
133 $(C) devices/rescale.c -o devices/rescale.$(O)
134 devices/bbox.$(O): devices/bbox.c devices/bbox.h
135 $(C) devices/bbox.c -o devices/bbox.$(O)
136 devices/lrf.$(O): devices/lrf.c devices/lrf.h
137 $(C) devices/lrf.c -o devices/lrf.$(O)
138 devices/ocr.$(O): devices/ocr.c devices/ocr.h gocr/gocr.h
139 $(C) devices/ocr.c -o devices/ocr.$(O)
141 readers/swf2.$(O): readers/swf.c readers/swf.h
142 $(C) readers/swf.c -o readers/swf2.$(O)
143 readers/image.$(O): readers/image.c readers/image.h
144 $(C) readers/image.c -o readers/image.$(O)
146 libocr$(A): $(ocr_objects) devices/ocr.$(O)
147 $(AR) r libocr$(A) $(ocr_objects) devices/ocr.$(O)
149 libbase$(A): $(base_objects) Makefile
150 $(AR) r libbase$(A) $(base_objects)
152 libgfxswf$(A): devices/swf.$(O) readers/swf2.$(O) readers/image.$(O)
153 $(AR) r libgfxswf$(A) devices/swf.$(O) readers/swf2.$(O) readers/image.$(O)
155 libgfx$(A): $(gfx_objects) $(art_in_source) Makefile
156 $(AR) r libgfx$(A) $(gfx_objects) $(art_in_source)
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 art modules devices swf as3 h.263;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 ..