3 top_srcdir = @top_srcdir@
4 include ../Makefile.common
6 DEVICES = devices/swf.$(O) devices/arts.$(O) devices/artsutils.$(O) #devices/lrf.$(O) devices/opengl.$(O)
8 all: librfxswf$(A) libpdf$(A) art/libart$(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) mem.$(O) png.$(O) wav.$(O) mp3.$(O) os.$(O) bitio.$(O) log.$(O) mem.$(O)
17 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/bbox.$(O) devices/rescale.$(O)
19 bitio.$(O): bitio.c bitio.h
21 drawer.$(O): drawer.c drawer.h
23 q.$(O): q.c q.h $(top_builddir)/config.h
25 utf8.$(O): utf8.c utf8.h $(top_builddir)/config.h
27 mem.$(O): mem.c mem.h $(top_builddir)/config.h
29 png.$(O): png.c png.h $(top_builddir)/config.h
31 mp3.$(O): mp3.c mp3.h $(top_builddir)/config.h
33 wav.$(O): wav.c wav.h $(top_builddir)/config.h
35 os.$(O): os.c os.h $(top_builddir)/config.h
36 $(C) -DSWFTOOLS_DATADIR=\"$(pkgdatadir)\" os.c -o $@
37 gfxtools.$(O): gfxtools.c gfxtools.h $(top_builddir)/config.h
39 gfxfont.$(O): gfxfont.c gfxfont.h $(top_builddir)/config.h
41 gfxwindow.$(O): gfxwindow_win32.c gfxwindow_unix.c gfxwindow.c gfxwindow.h
42 $(C) gfxwindow.c -o $@
48 rfxswf.$(O): rfxswf.c rfxswf.h drawer.h bitio.h log.h MD5.h $(rfxswf_modules) $(top_builddir)/config.h
52 cd lame;$(MAKE) all;cd ..
53 $(actioncompiler_objects):
54 cd action;$(MAKE) all;cd ..
57 cd art; $(MAKE) libart$(A);cd ..
59 h.263/dct.$(O): h.263/dct.c h.263/dct.h
60 $(C) h.263/dct.c -o h.263/dct.$(O)
61 h.263/h263tables.$(O): h.263/h263tables.c h.263/h263tables.h
62 $(C) h.263/h263tables.c -o h.263/h263tables.$(O)
63 h.263/swfvideo.$(O): h.263/swfvideo.c h.263/h263tables.h h.263/dct.h
64 $(C) h.263/swfvideo.c -o h.263/swfvideo.$(O)
66 devices/swf.$(O): devices/swf.c devices/swf.h
67 $(C) devices/swf.c -o devices/swf.$(O)
68 devices/file.$(O): devices/file.c devices/file.h
69 $(C) devices/file.c -o devices/file.$(O)
70 devices/dummy.$(O): devices/dummy.c devices/dummy.h
71 $(C) devices/dummy.c -o devices/dummy.$(O)
72 devices/render.$(O): devices/render.c devices/render.h
73 $(C) devices/render.c -o devices/render.$(O)
74 devices/opengl.$(O): devices/opengl.c devices/opengl.h
75 $(C) devices/opengl.c -o devices/opengl.$(O)
76 devices/arts.$(O): devices/arts.c devices/arts.h devices/artsutils.h
77 $(C) devices/arts.c -o devices/arts.$(O)
78 devices/artsutils.$(O): devices/artsutils.c devices/artsutils.h
79 $(C) devices/artsutils.c -o devices/artsutils.$(O)
80 devices/record.$(O): devices/record.c devices/record.h
81 $(C) devices/record.c -o devices/record.$(O)
82 devices/text.$(O): devices/text.c devices/text.h
83 $(C) devices/text.c -o devices/text.$(O)
84 devices/ops.$(O): devices/ops.c devices/ops.h
85 $(C) devices/ops.c -o devices/ops.$(O)
86 devices/rescale.$(O): devices/rescale.c devices/rescale.h
87 $(C) devices/rescale.c -o devices/rescale.$(O)
88 devices/bbox.$(O): devices/bbox.c devices/bbox.h
89 $(C) devices/bbox.c -o devices/bbox.$(O)
90 devices/lrf.$(O): devices/lrf.c devices/lrf.h
91 $(C) devices/lrf.c -o devices/lrf.$(O)
93 libbase$(A): $(base_objects) Makefile
94 $(AR) r libbase$(A) $(base_objects)
96 libgfx$(A): $(gfx_objects) Makefile
97 $(AR) r libgfx$(A) $(gfx_objects)
99 librfxswf$(A): Makefile rfxswf.$(O) drawer.$(O) MD5.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects) Makefile
100 $(AR) r librfxswf$(A) rfxswf.$(O) drawer.$(O) MD5.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects)
101 $(RANLIB) librfxswf$(A)
103 libpdf$(A): pdf/GFXOutputDev.cc pdf/GFXOutputDev.h pdf/pdf.cc pdf/pdf.h
104 cd pdf;$(MAKE) libpdf
111 rm -f *.o *.obj *.lo *.a *.lib *.la gmon.out
112 cd lame && $(MAKE) clean && cd .. || true
113 cd action && $(MAKE) clean && cd ..
114 cd python && $(MAKE) clean && cd ..
115 cd art && $(MAKE) clean && cd ..
116 cd pdf && $(MAKE) clean && cd ..