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) @PDF2SWF@
7 opt_programs = swfrender$(E) swfbytes$(E)
11 wav2swf.$(O): wav2swf.c ../lib/wav.h
13 png2swf.$(O): png2swf.c
15 pdf2swf.$(O): pdf2swf.c
17 gif2swf.$(O): gif2swf.c
19 swfcombine.$(O): swfcombine.c
20 $(C) swfcombine.c -o $@
21 swfdump.$(O): swfdump.c
23 swfextract.$(O): swfextract.c
24 $(C) swfextract.c -o $@
25 swfstrings.$(O): swfstrings.c
26 $(C) swfstrings.c -o $@
27 swfbbox.$(O): swfbbox.c
29 swf2png.$(O): swf2png.c
31 jpeg2swf.$(O): jpeg2swf.c
33 swfrender.$(O): swfrender.c
34 $(C) swfrender.c -o $@
35 swfbytes.$(O): swfbytes.c
37 font2swf.$(O): font2swf.c
39 swfc.$(O): swfc.c parser.h ../lib/q.h
41 swfc-feedback.$(O): swfc-feedback.c swfc-feedback.h
42 $(C) swfc-feedback.c -o $@
43 swfc-history.$(O): swfc-history.c swfc-history.h swfc-interpolation.h
44 $(C) swfc-history.c -o $@
45 swfc-interpolation.$(O): swfc-interpolation.c swfc-interpolation.h
46 $(C) swfc-interpolation.c -o $@
47 parser.$(O): parser.yy.c parser.h ../lib/q.h
48 $(C) parser.yy.c -o $@
50 ../lib/librfxswf$(A): ../lib/modules/swfrender.c ../lib/modules/swfshape.c ../lib/modules/swfbits.c ../lib/rfxswf.c
51 cd ../lib;$(MAKE) librfxswf$(A);cd -
53 # TODO: include the following rule only if lex is available
54 parser.yy.c: parser.lex
55 flex -B -s -oparser.yy.c parser.lex
57 wav2swf$(E): wav2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
58 $(L) wav2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
60 png2swf$(E): png2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
61 $(L) png2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
63 gif2swf$(E): gif2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
64 $(L) gif2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
66 swfcombine$(E): swfcombine.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
67 $(L) swfcombine.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
69 swfdump$(E): swfdump.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
70 $(L) swfdump.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
72 swfbytes$(E): swfbytes.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
73 $(L) swfbytes.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
75 swf2png$(E): swf2png.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
76 $(L) swf2png.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
78 swfextract$(E): swfextract.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
79 $(L) swfextract.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
81 swfstrings$(E): swfstrings.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
82 $(L) swfstrings.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
84 swfbbox$(E): swfbbox.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
85 $(L) swfbbox.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
87 font2swf$(E): font2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
88 $(L) font2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
90 jpeg2swf$(E): jpeg2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
91 $(L) jpeg2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
93 swfrender$(E): swfrender.$(O) ../lib/librfxswf$(A) ../lib/libgfx$(A) ../lib/swf/swf.$(O) ../lib/libbase$(A)
94 $(L) swfrender.$(O) -o $@ ../lib/swf/swf.$(O) ../lib/librfxswf$(A) ../lib/libgfx$(A) ../lib/libbase$(A) $(LIBS)
97 PDF2SWF_OBJ=../lib/libpdf$(A) ../lib/devices/polyops.$(O) ../lib/devices/swf.$(O) ../lib/librfxswf$(A) ../lib/libgfx$(A) ../lib/libbase$(A)
98 pdf2swf$(E): pdf2swf.$(O) $(PDF2SWF_OBJ)
99 $(LL) pdf2swf.$(O) -o $@ $(PDF2SWF_OBJ) $(LIBS) $(CXXLIBS)
101 swfc$(E): parser.$(O) swfc.$(O) swfc-feedback.$(O) swfc-history.$(O) swfc-interpolation.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
102 $(L) parser.$(O) swfc.$(O) swfc-feedback.$(O) swfc-history.$(O) swfc-interpolation.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
106 $(mkinstalldirs) $(bindir)
107 $(mkinstalldirs) $(man1dir)
108 @for file in $(programs) $(opt_programs); do if test -f $$file;then $(INSTALL_BIN);$(INSTALL_MAN1);fi;done
111 @for file in $(programs) $(opt_programs); do $(UNINSTALL_BIN);$(UNINSTALL_MAN1);done
114 rm -f *.o *.obj *.lo *.la *~ gmon.out
115 rm -f gif2swf swfbbox swfbytes swfedit swfdump pdf2swf wav2swf png2swf swfcombine swfextract swfstrings png2swf jpeg2swf swfc font2swf
116 @rm -f gif2swf.exe swfbytes.exe swfedit.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
117 @rm -f gif2swf$(E) pdf2swf$(E) swfbytes$(E) swfedit$(E) swfbbox$(E) swfdump$(E) wav2swf$(E) png2swf$(E) swfcombine$(E) swfextract$(E) swfstrings$(E) png2swf$(E) jpeg2swf$(E) swfc$(E) font2swf$(E)
120 perl ../parsedoc.pl wav2swf.doc
121 perl ../parsedoc.pl png2swf.doc
122 perl ../parsedoc.pl gif2swf.doc
123 perl ../parsedoc.pl swfbbox.doc
124 perl ../parsedoc.pl font2swf.doc
125 perl ../parsedoc.pl jpeg2swf.doc
126 perl ../parsedoc.pl swfcombine.doc
127 perl ../parsedoc.pl swfdump.doc
128 perl ../parsedoc.pl swfc.doc
129 #perl ../parsedoc.pl swfbytes.doc