fixed parsing of filter expressions
[swftools.git] / src / Makefile.in
blob665ed3f88c7aa6e0d9e17337667c373f4b552503
1 top_builddir = ..
2 srcdir = @srcdir@
3 top_srcdir = @top_srcdir@
4 include ../Makefile.common
6 install_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 programs = $(install_programs) swfbytes$(E) ttftool$(E)
9 all: $(programs)
11 wav2swf.$(O): wav2swf.c ../lib/wav.h
12 $(C) wav2swf.c -o $@
13 png2swf.$(O): png2swf.c
14 $(C) png2swf.c -o $@
15 pdf2swf.$(O): pdf2swf.c
16 $(C) pdf2swf.c -o $@
17 pdf2pdf.$(O): pdf2pdf.c
18 $(C) pdf2pdf.c -o $@
19 gfx2gfx.$(O): gfx2gfx.c
20 $(C) gfx2gfx.c -o $@
21 gif2swf.$(O): gif2swf.c
22 $(C) gif2swf.c -o $@
23 swfcombine.$(O): swfcombine.c
24 $(C) swfcombine.c -o $@
25 swfdump.$(O): swfdump.c
26 $(C) swfdump.c -o $@
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
32 $(C) swfbbox.c -o $@
33 swf2png.$(O): swf2png.c
34 $(C) swf2png.c -o $@
35 jpeg2swf.$(O): jpeg2swf.c
36 $(C) jpeg2swf.c -o $@
37 swfrender.$(O): swfrender.c
38 $(C) swfrender.c -o $@
39 swfbytes.$(O): swfbytes.c
40 $(C) swfbytes.c -o $@
41 font2swf.$(O): font2swf.c
42 $(C) font2swf.c -o $@
43 ttftool.$(O): ttftool.c
44 $(C) ttftool.c -o $@
45 as3compile.$(O): as3compile.c
46 $(C) as3compile.c -o $@
47 swfc.$(O): swfc.c parser.h ../lib/q.h
48 $(C) swfc.c -o $@
49 swfc-feedback.$(O): swfc-feedback.c swfc-feedback.h
50 $(C) swfc-feedback.c -o $@
51 swfc-history.$(O): swfc-history.c swfc-history.h swfc-interpolation.h ../lib/q.h
52 $(C) swfc-history.c -o $@
53 swfc-interpolation.$(O): swfc-interpolation.c swfc-interpolation.h ../lib/q.h
54 $(C) swfc-interpolation.c -o $@
55 parser.$(O): parser.yy.c parser.h ../lib/q.h
56 $(C) parser.yy.c -o $@
58 ../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 ../lib/modules/swfalignzones.c
59 cd ../lib;$(MAKE) librfxswf$(A);cd -
61 ../lib/libgfxpdf$(A): ../lib/pdf/VectorGraphicOutputDev.cc
62 cd ../lib;$(MAKE) libgfxpdf$(A);cd -
64 ../lib/libgfx$(A): ../lib/devices/*.c ../lib/gfxdevice.h ../lib/gfxtools.c ../lib/gfxfont.c
65 cd ../lib;$(MAKE) libgfx$(A);cd -
67 ../lib/libgfxswf$(A): ../lib/devices/swf.c ../lib/readers/swf.c
68 cd ../lib;$(MAKE) libgfxswf$(A);cd -
70 # TODO: include the following rule only if lex is available
71 parser.yy.c: parser.lex
72 flex -B -s -oparser.yy.c parser.lex
74 wav2swf$(E): wav2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
75 $(L) wav2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
76 $(STRIP) $@
77 png2swf$(E): png2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
78 $(L) png2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
79 $(STRIP) $@
80 gif2swf$(E): gif2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
81 $(L) gif2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
82 $(STRIP) $@
83 swfcombine$(E): swfcombine.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
84 $(L) swfcombine.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
85 $(STRIP) $@
86 swfdump$(E): swfdump.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
87 $(L) swfdump.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
88 $(STRIP) $@
89 swfbytes$(E): swfbytes.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
90 $(L) swfbytes.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
91 $(STRIP) $@
92 swf2png$(E): swf2png.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
93 $(L) swf2png.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
94 $(STRIP) $@
95 swfextract$(E): swfextract.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
96 $(L) swfextract.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
97 $(STRIP) $@
98 swfstrings$(E): swfstrings.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
99 $(L) swfstrings.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
100 $(STRIP) $@
101 swfbbox$(E): swfbbox.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
102 $(L) swfbbox.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
103 $(STRIP) $@
104 font2swf$(E): font2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
105 $(L) font2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
106 $(STRIP) $@
107 ttftool$(E): ttftool.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
108 $(L) ttftool.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
109 $(STRIP) $@
110 as3compile$(E): as3compile.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
111 $(L) as3compile.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
112 $(STRIP) $@
113 jpeg2swf$(E): jpeg2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
114 $(L) jpeg2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
115 $(STRIP) $@
116 swfrender$(E): swfrender.$(O) ../lib/libgfxswf$(A) ../lib/librfxswf$(A) ../lib/libgfx$(A) ../lib/libbase$(A)
117 $(L) swfrender.$(O) -o $@ ../lib/libgfxswf$(A) ../lib/librfxswf$(A) ../lib/libgfx$(A) ../lib/libbase$(A) $(LIBS)
118 $(STRIP) $@
120 PDF2SWF_OBJ=../lib/libgfxswf$(A) ../lib/librfxswf$(A) ../lib/libgfxpdf$(A) ../lib/libgfx$(A) ../lib/libbase$(A)
121 OCR_OBJ=../lib/libocr$(A)
123 pdf2swf$(E): pdf2swf.$(O) $(PDF2SWF_OBJ)
124 $(LL) pdf2swf.$(O) -o $@ $(PDF2SWF_OBJ) $(LIBS) $(CXXLIBS)
125 $(STRIP) $@
126 pdf2pdf$(E): pdf2pdf.$(O) $(PDF2SWF_OBJ)
127 $(LL) pdf2pdf.$(O) -o $@ $(PDF2SWF_OBJ) $(LIBS) $(CXXLIBS)
128 $(STRIP) $@
129 gfx2gfx$(E): gfx2gfx.$(O) $(OCR_OBJ) $(PDF2SWF_OBJ)
130 $(LL) gfx2gfx.$(O) -o $@ $(OCR_OBJ) $(PDF2SWF_OBJ) $(LIBS) $(CXXLIBS)
131 $(STRIP) $@
132 swfc$(E): parser.$(O) swfc.$(O) swfc-feedback.$(O) swfc-history.$(O) swfc-interpolation.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
133 $(L) parser.$(O) swfc.$(O) swfc-feedback.$(O) swfc-history.$(O) swfc-interpolation.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
134 $(STRIP) $@
136 install:
137 $(mkinstalldirs) $(bindir)
138 $(mkinstalldirs) $(man1dir)
139 @for file in $(install_programs); do if test -f $$file;then $(INSTALL_BIN);$(INSTALL_MAN1);fi;done
141 uninstall:
142 @for file in $(install_programs); do $(UNINSTALL_BIN);$(UNINSTALL_MAN1);done
144 clean:
145 rm -f *.o *.obj *.lo *.la *~ gmon.out
146 rm -f as3compile gif2swf swfbbox swfbytes swfbytes swfdump pdf2swf wav2swf png2swf swfcombine swfextract swfstrings png2swf jpeg2swf swfc font2swf pdf2pdf gfx2gfx swfrender ttftool
147 @rm -f as3compile.exe 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 swfrender.exe ttftool.exe
148 @rm -f as3compile$(E) 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) swfrender$(E) ttftool$(E)
150 doc:
151 perl ../parsedoc.pl wav2swf.doc
152 perl ../parsedoc.pl png2swf.doc
153 perl ../parsedoc.pl gif2swf.doc
154 perl ../parsedoc.pl swfbbox.doc
155 perl ../parsedoc.pl font2swf.doc
156 perl ../parsedoc.pl jpeg2swf.doc
157 perl ../parsedoc.pl swfcombine.doc
158 perl ../parsedoc.pl swfdump.doc
159 perl ../parsedoc.pl swfc.doc
160 perl ../parsedoc.pl as3compile.doc
161 perl ../parsedoc.pl swfbytes.doc
162 perl ../parsedoc.pl pdf2pdf.doc
164 .PHONY: clean doc