3 top_srcdir = @top_srcdir@
4 include ../Makefile.common
6 DEVICES = devices/file.$(O) devices/swf.$(O) devices/render.$(O) devices/arts.$(O) #devices/opengl.$(O)
8 all: librfxswf$(A) libpdf$(A) q.$(O) mem.$(O) os.$(O) gfxtools.$(O) gfxfont.$(O) art/libart$(A) png.$(O) mp3.$(O) wav.$(O) $(DEVICES)
11 lame_objects = @lame_objects@
13 h263_objects = h.263/dct.$(O) h.263/h263tables.$(O) h.263/swfvideo.$(O)
14 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)
15 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/swfrender.c h.263/swfvideo.c
17 libpdf$(A): xpdf/GFXOutputDev.cc xpdf/GFXOutputDev.h xpdf/pdf.cc xpdf/pdf.h
20 bitio.$(O): bitio.c bitio.h
22 drawer.$(O): drawer.c drawer.h
24 q.$(O): q.c q.h $(top_builddir)/config.h
26 mem.$(O): mem.c mem.h $(top_builddir)/config.h
28 png.$(O): png.c png.h $(top_builddir)/config.h
30 mp3.$(O): mp3.c mp3.h $(top_builddir)/config.h
32 wav.$(O): wav.c wav.h $(top_builddir)/config.h
34 os.$(O): os.c os.h $(top_builddir)/config.h
35 $(C) -DSWFTOOLS_DATADIR=\"$(pkgdatadir)\" os.c -o $@
36 gfxtools.$(O): gfxtools.c gfxtools.h $(top_builddir)/config.h
38 gfxfont.$(O): gfxfont.c gfxfont.h $(top_builddir)/config.h
45 rfxswf.$(O): rfxswf.c rfxswf.h drawer.h bitio.h log.h MD5.h $(rfxswf_modules) $(top_builddir)/config.h
49 cd lame;$(MAKE) all;cd ..
50 $(actioncompiler_objects):
51 cd action;$(MAKE) all;cd ..
54 cd art; $(MAKE) libart$(A);cd ..
56 h.263/dct.$(O): h.263/dct.c h.263/dct.h
57 $(C) h.263/dct.c -o h.263/dct.$(O)
58 h.263/h263tables.$(O): h.263/h263tables.c h.263/h263tables.h
59 $(C) h.263/h263tables.c -o h.263/h263tables.$(O)
60 h.263/swfvideo.$(O): h.263/swfvideo.c h.263/h263tables.h h.263/dct.h
61 $(C) h.263/swfvideo.c -o h.263/swfvideo.$(O)
63 devices/swf.$(O): devices/swf.c devices/swf.h
64 $(C) devices/swf.c -o devices/swf.$(O)
65 devices/file.$(O): devices/file.c devices/file.h
66 $(C) devices/file.c -o devices/file.$(O)
67 devices/render.$(O): devices/render.c devices/render.h
68 $(C) devices/render.c -o devices/render.$(O)
69 devices/opengl.$(O): devices/opengl.c devices/opengl.h
70 $(C) devices/opengl.c -o devices/opengl.$(O)
71 devices/arts.$(O): devices/arts.c devices/arts.h
72 $(C) devices/arts.c -o devices/arts.$(O)
74 librfxswf$(A): Makefile rfxswf.$(O) drawer.$(O) bitio.$(O) log.$(O) MD5.$(O) mem.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects)
75 $(AR) r librfxswf$(A) rfxswf.$(O) drawer.$(O) bitio.$(O) log.$(O) MD5.$(O) mem.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects)
76 $(RANLIB) librfxswf$(A)
82 rm -f *.o *.obj *.lo *.a *.lib *.la gmon.out
83 cd lame && $(MAKE) clean && cd .. || true
84 cd action && $(MAKE) clean && cd ..
85 cd python && $(MAKE) clean && cd ..
86 cd art && $(MAKE) clean && cd ..