3 top_srcdir = @top_srcdir@
4 include ../Makefile.common
6 programs = wav2swf$(E) @PNG2SWF@ swfcombine$(E) swfstrings$(E) swfextract$(E) swfdump$(E) swfc$(E) @JPEG2SWF@ @GIF2SWF@ swfbbox$(E) font2swf$(E) swfrender$(E) as3compile$(E) @PDF2SWF@ @PDF2PDF@
7 opt_programs = swfbytes$(E)
11 wav2swf.$(O): wav2swf.c ../lib/wav.h
13 png2swf.$(O): png2swf.c
15 pdf2swf.$(O): pdf2swf.c
17 pdf2pdf.$(O): pdf2pdf.c
19 gfx2gfx.$(O): gfx2gfx.c
21 gif2swf.$(O): gif2swf.c
23 swfcombine.$(O): swfcombine.c
24 $(C) swfcombine.c -o $@
25 swfdump.$(O): swfdump.c
27 swfextract.$(O): swfextract.c
28 $(C) swfextract.c -o $@
29 swfstrings.$(O): swfstrings.c
30 $(C) swfstrings.c -o $@
31 swfbbox.$(O): swfbbox.c
33 swf2png.$(O): swf2png.c
35 jpeg2swf.$(O): jpeg2swf.c
37 swfrender.$(O): swfrender.c
38 $(C) swfrender.c -o $@
39 swfbytes.$(O): swfbytes.c
41 font2swf.$(O): font2swf.c
43 as3compile.$(O): as3compile.c
44 $(C) as3compile.c -o $@
45 swfc.$(O): swfc.c parser.h ../lib/q.h
47 swfc-feedback.$(O): swfc-feedback.c swfc-feedback.h
48 $(C) swfc-feedback.c -o $@
49 swfc-history.$(O): swfc-history.c swfc-history.h swfc-interpolation.h ../lib/q.h
50 $(C) swfc-history.c -o $@
51 swfc-interpolation.$(O): swfc-interpolation.c swfc-interpolation.h ../lib/q.h
52 $(C) swfc-interpolation.c -o $@
53 parser.$(O): parser.yy.c parser.h ../lib/q.h
54 $(C) parser.yy.c -o $@
56 ../lib/librfxswf$(A): ../lib/modules/swfrender.c ../lib/modules/swfshape.c ../lib/modules/swftext.c ../lib/modules/swffont.c ../lib/modules/swfbits.c ../lib/rfxswf.c ../lib/devices/swf.c
57 cd ../lib;$(MAKE) librfxswf$(A);cd -
59 # TODO: include the following rule only if lex is available
60 parser.yy.c: parser.lex
61 flex -B -s -oparser.yy.c parser.lex
63 wav2swf$(E): wav2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
64 $(L) wav2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
66 png2swf$(E): png2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
67 $(L) png2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
69 gif2swf$(E): gif2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
70 $(L) gif2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
72 swfcombine$(E): swfcombine.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
73 $(L) swfcombine.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
75 swfdump$(E): swfdump.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
76 $(L) swfdump.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
78 swfbytes$(E): swfbytes.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
79 $(L) swfbytes.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
81 swf2png$(E): swf2png.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
82 $(L) swf2png.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
84 swfextract$(E): swfextract.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
85 $(L) swfextract.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
87 swfstrings$(E): swfstrings.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
88 $(L) swfstrings.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
90 swfbbox$(E): swfbbox.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
91 $(L) swfbbox.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
93 font2swf$(E): font2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
94 $(L) font2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
96 as3compile$(E): as3compile.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
97 $(L) as3compile.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
99 jpeg2swf$(E): jpeg2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
100 $(L) jpeg2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
102 swfrender$(E): swfrender.$(O) ../lib/libgfxswf$(A) ../lib/librfxswf$(A) ../lib/libgfx$(A) ../lib/libbase$(A)
103 $(L) swfrender.$(O) -o $@ ../lib/libgfxswf$(A) ../lib/librfxswf$(A) ../lib/libgfx$(A) ../lib/libbase$(A) $(LIBS)
106 PDF2SWF_OBJ=../lib/libgfxswf$(A) ../lib/librfxswf$(A) ../lib/libpdf$(A) ../lib/libgfx$(A) ../lib/libbase$(A)
107 OCR_OBJ=../lib/libocr$(A)
109 pdf2swf$(E): pdf2swf.$(O) $(PDF2SWF_OBJ)
110 $(LL) pdf2swf.$(O) -o $@ $(PDF2SWF_OBJ) $(LIBS) $(CXXLIBS)
112 pdf2pdf$(E): pdf2pdf.$(O) $(PDF2SWF_OBJ)
113 $(LL) pdf2pdf.$(O) -o $@ $(PDF2SWF_OBJ) $(LIBS) $(CXXLIBS)
115 gfx2gfx$(E): gfx2gfx.$(O) $(OCR_OBJ) $(PDF2SWF_OBJ)
116 $(LL) gfx2gfx.$(O) -o $@ $(OCR_OBJ) $(PDF2SWF_OBJ) $(LIBS) $(CXXLIBS)
118 swfc$(E): parser.$(O) swfc.$(O) swfc-feedback.$(O) swfc-history.$(O) swfc-interpolation.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
119 $(L) parser.$(O) swfc.$(O) swfc-feedback.$(O) swfc-history.$(O) swfc-interpolation.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
123 $(mkinstalldirs) $(bindir)
124 $(mkinstalldirs) $(man1dir)
125 @for file in $(programs) $(opt_programs); do if test -f $$file;then $(INSTALL_BIN);$(INSTALL_MAN1);fi;done
128 @for file in $(programs) $(opt_programs); do $(UNINSTALL_BIN);$(UNINSTALL_MAN1);done
131 rm -f *.o *.obj *.lo *.la *~ gmon.out
132 rm -f as3compile gif2swf swfbbox swfbytes swfbytes swfdump pdf2swf wav2swf png2swf swfcombine swfextract swfstrings png2swf jpeg2swf swfc font2swf pdf2pdf gfx2gfx
133 @rm -f gif2swf.exe swfbytes.exe swfbytes.exe pdf2swf.exe swfbbox.exe swfdump.exe wav2swf.exe png2swf.exe swfcombine.exe swfextract.exe swfstrings.exe png2swf.exe jpeg2swf.exe swfc.exe font2swf.exe pdf2pdf.exe gfx2gfx.exe
134 @rm -f gif2swf$(E) pdf2swf$(E) swfbytes$(E) swfbytes$(E) swfbbox$(E) swfdump$(E) wav2swf$(E) png2swf$(E) swfcombine$(E) swfextract$(E) swfstrings$(E) png2swf$(E) jpeg2swf$(E) swfc$(E) font2swf$(E) pdf2pdf$(E) gfx2gfx$(E)
137 perl ../parsedoc.pl wav2swf.doc
138 perl ../parsedoc.pl png2swf.doc
139 perl ../parsedoc.pl gif2swf.doc
140 perl ../parsedoc.pl swfbbox.doc
141 perl ../parsedoc.pl font2swf.doc
142 perl ../parsedoc.pl jpeg2swf.doc
143 perl ../parsedoc.pl swfcombine.doc
144 perl ../parsedoc.pl swfdump.doc
145 perl ../parsedoc.pl swfc.doc
146 perl ../parsedoc.pl as3compile.doc
147 perl ../parsedoc.pl swfbytes.doc
148 perl ../parsedoc.pl pdf2pdf.doc