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) $(DEVICES)
10 lame_objects = @lame_objects@
12 h263_objects = h.263/dct.$(O) h.263/h263tables.$(O) h.263/swfvideo.$(O)
13 actioncompiler_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 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
16 base_objects=q.$(O) utf8.$(O) png.$(O) wav.$(O) mp3.$(O) os.$(O) bitio.$(O) log.$(O) mem.$(O)
17 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)
18 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)
19 rfxswf_objects=modules/swfabc.$(O) 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/swfmorph.$(O) modules/swfobject.$(O) modules/swfrender.$(O) modules/swfshape.$(O) modules/swfsound.$(O) modules/swftext.$(O) modules/swftools.$(O)
23 bitio.$(O): bitio.c bitio.h
25 drawer.$(O): drawer.c drawer.h
27 q.$(O): q.c q.h $(top_builddir)/config.h
29 utf8.$(O): utf8.c utf8.h $(top_builddir)/config.h
31 mem.$(O): mem.c mem.h $(top_builddir)/config.h
33 png.$(O): png.c png.h $(top_builddir)/config.h
35 mp3.$(O): mp3.c mp3.h $(top_builddir)/config.h
37 wav.$(O): wav.c wav.h $(top_builddir)/config.h
39 os.$(O): os.c os.h $(top_builddir)/config.h
40 $(C) -DSWFTOOLS_DATADIR=\"$(pkgdatadir)\" os.c -o $@
41 modules/swfabc.$(O): modules/swfabc.c rfxswf.h
42 $(C) modules/swfabc.c -o $@
43 modules/swfaction.$(O): modules/swfaction.c rfxswf.h
44 $(C) modules/swfaction.c -o $@
45 modules/swfbits.$(O): modules/swfbits.c rfxswf.h
46 $(C) modules/swfbits.c -o $@
47 modules/swfbutton.$(O): modules/swfbutton.c rfxswf.h
48 $(C) modules/swfbutton.c -o $@
49 modules/swfcgi.$(O): modules/swfcgi.c rfxswf.h
50 $(C) modules/swfcgi.c -o $@
51 modules/swfdraw.$(O): modules/swfdraw.c rfxswf.h
52 $(C) modules/swfdraw.c -o $@
53 modules/swfdump.$(O): modules/swfdump.c rfxswf.h
54 $(C) modules/swfdump.c -o $@
55 modules/swffilter.$(O): modules/swffilter.c rfxswf.h
56 $(C) modules/swffilter.c -o $@
57 modules/swffont.$(O): modules/swffont.c rfxswf.h
58 $(C) modules/swffont.c -o $@
59 modules/swfmorph.$(O): modules/swfmorph.c rfxswf.h
60 $(C) modules/swfmorph.c -o $@
61 modules/swfobject.$(O): modules/swfobject.c rfxswf.h
62 $(C) modules/swfobject.c -o $@
63 modules/swfrender.$(O): modules/swfrender.c rfxswf.h
64 $(C) modules/swfrender.c -o $@
65 modules/swfshape.$(O): modules/swfshape.c rfxswf.h
66 $(C) modules/swfshape.c -o $@
67 modules/swfsound.$(O): modules/swfsound.c rfxswf.h
68 $(C) modules/swfsound.c -o $@
69 modules/swftext.$(O): modules/swftext.c rfxswf.h
70 $(C) modules/swftext.c -o $@
71 modules/swftools.$(O): modules/swftools.c rfxswf.h
72 $(C) modules/swftools.c -o $@
73 gfxtools.$(O): gfxtools.c gfxtools.h $(top_builddir)/config.h
75 gfxpoly.$(O): gfxpoly.c gfxpoly.h $(top_builddir)/config.h
77 gfxfont.$(O): gfxfont.c gfxfont.h $(top_builddir)/config.h
79 gfxwindow.$(O): gfxwindow_win32.c gfxwindow_unix.c gfxwindow.c gfxwindow.h
80 $(C) gfxwindow.c -o $@
86 rfxswf.$(O): rfxswf.c rfxswf.h drawer.h bitio.h log.h MD5.h $(rfxswf_modules) $(top_builddir)/config.h
90 cd lame;$(MAKE) all;cd ..
91 $(actioncompiler_objects):
92 cd action;$(MAKE) all;cd ..
94 h.263/dct.$(O): h.263/dct.c h.263/dct.h
95 $(C) h.263/dct.c -o h.263/dct.$(O)
96 h.263/h263tables.$(O): h.263/h263tables.c h.263/h263tables.h
97 $(C) h.263/h263tables.c -o h.263/h263tables.$(O)
98 h.263/swfvideo.$(O): h.263/swfvideo.c h.263/h263tables.h h.263/dct.h
99 $(C) h.263/swfvideo.c -o h.263/swfvideo.$(O)
101 devices/swf.$(O): devices/swf.c devices/swf.h
102 $(C) devices/swf.c -o devices/swf.$(O)
103 devices/file.$(O): devices/file.c devices/file.h
104 $(C) devices/file.c -o devices/file.$(O)
105 devices/dummy.$(O): devices/dummy.c devices/dummy.h
106 $(C) devices/dummy.c -o devices/dummy.$(O)
107 devices/render.$(O): devices/render.c devices/render.h
108 $(C) devices/render.c -o devices/render.$(O)
109 devices/opengl.$(O): devices/opengl.c devices/opengl.h
110 $(C) devices/opengl.c -o devices/opengl.$(O)
111 devices/polyops.$(O): devices/polyops.c devices/polyops.h gfxpoly.h
112 $(C) devices/polyops.c -o devices/polyops.$(O)
113 devices/record.$(O): devices/record.c devices/record.h
114 $(C) devices/record.c -o devices/record.$(O)
115 devices/text.$(O): devices/text.c devices/text.h
116 $(C) devices/text.c -o devices/text.$(O)
117 devices/ops.$(O): devices/ops.c devices/ops.h
118 $(C) devices/ops.c -o devices/ops.$(O)
119 devices/rescale.$(O): devices/rescale.c devices/rescale.h
120 $(C) devices/rescale.c -o devices/rescale.$(O)
121 devices/bbox.$(O): devices/bbox.c devices/bbox.h
122 $(C) devices/bbox.c -o devices/bbox.$(O)
123 devices/lrf.$(O): devices/lrf.c devices/lrf.h
124 $(C) devices/lrf.c -o devices/lrf.$(O)
126 libbase$(A): $(base_objects) Makefile
127 $(AR) r libbase$(A) $(base_objects)
129 libgfx$(A): $(gfx_objects) $(art_objects) Makefile
130 $(AR) r libgfx$(A) $(gfx_objects) $(art_objects)
132 librfxswf$(A): Makefile $(rfxswf_objects) rfxswf.$(O) drawer.$(O) MD5.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects) Makefile
133 $(AR) r librfxswf$(A) $(rfxswf_objects) rfxswf.$(O) drawer.$(O) MD5.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects)
134 $(RANLIB) librfxswf$(A)
136 libpdf$(A): pdf/GFXOutputDev.cc pdf/GFXOutputDev.h pdf/pdf.cc pdf/pdf.h
137 cd pdf;$(MAKE) libpdf
144 rm -f *.o *.obj *.lo *.a *.lib *.la gmon.out
145 rm -f art/*.o art/*.obj art/*.lo art/*.a art/*.lib art/*.la art/gmon.out
146 rm -f modules/*.o modules/*.obj modules/*.lo modules/*.a modules/*.lib modules/*.la modules/gmon.out
147 cd lame && $(MAKE) clean && cd .. || true
148 cd action && $(MAKE) clean && cd ..
149 cd python && $(MAKE) clean && cd ..
150 cd pdf && $(MAKE) clean && cd ..