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) @PDF2SWF@
7 opt_programs = 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 swfedit.$(O): swfedit.c
41 swfc.$(O): swfc.c parser.h ../lib/q.h
43 swfc-feedback.$(O): swfc-feedback.c swfc-feedback.h
44 $(C) swfc-feedback.c -o $@
45 swfc-history.$(O): swfc-history.c swfc-history.h swfc-interpolation.h ../lib/q.h
46 $(C) swfc-history.c -o $@
47 swfc-interpolation.$(O): swfc-interpolation.c swfc-interpolation.h ../lib/q.h
48 $(C) swfc-interpolation.c -o $@
49 parser.$(O): parser.yy.c parser.h ../lib/q.h
50 $(C) parser.yy.c -o $@
52 ../lib/librfxswf$(A): ../lib/modules/swfrender.c ../lib/modules/swfshape.c ../lib/modules/swfbits.c ../lib/rfxswf.c
53 cd ../lib;$(MAKE) librfxswf$(A);cd -
55 # TODO: include the following rule only if lex is available
56 parser.yy.c: parser.lex
57 flex -B -s -oparser.yy.c parser.lex
59 wav2swf$(E): wav2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
60 $(L) wav2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
62 png2swf$(E): png2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
63 $(L) png2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
65 gif2swf$(E): gif2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
66 $(L) gif2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
68 swfcombine$(E): swfcombine.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
69 $(L) swfcombine.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
71 swfdump$(E): swfdump.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
72 $(L) swfdump.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
74 swfbytes$(E): swfbytes.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
75 $(L) swfbytes.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
77 swf2png$(E): swf2png.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
78 $(L) swf2png.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
80 swfextract$(E): swfextract.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
81 $(L) swfextract.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
83 swfstrings$(E): swfstrings.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
84 $(L) swfstrings.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
86 swfbbox$(E): swfbbox.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
87 $(L) swfbbox.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
89 font2swf$(E): font2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
90 $(L) font2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
92 jpeg2swf$(E): jpeg2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
93 $(L) jpeg2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
95 swfrender$(E): swfrender.$(O) ../lib/librfxswf$(A) ../lib/libgfx$(A) ../lib/libbase$(A)
96 $(L) swfrender.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libgfx$(A) ../lib/libgfxswf$(A) ../lib/libbase$(A) $(LIBS)
98 swfedit$(E): swfedit.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
99 $(L) swfedit.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
102 PDF2SWF_OBJ=../lib/libpdf$(A) ../lib/devices/polyops.$(O) ../lib/devices/swf.$(O) ../lib/librfxswf$(A) ../lib/libgfx$(A) ../lib/libbase$(A)
103 pdf2swf$(E): pdf2swf.$(O) $(PDF2SWF_OBJ)
104 $(LL) pdf2swf.$(O) -o $@ $(PDF2SWF_OBJ) $(LIBS) $(CXXLIBS)
106 swfc$(E): parser.$(O) swfc.$(O) swfc-feedback.$(O) swfc-history.$(O) swfc-interpolation.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
107 $(L) parser.$(O) swfc.$(O) swfc-feedback.$(O) swfc-history.$(O) swfc-interpolation.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
111 $(mkinstalldirs) $(bindir)
112 $(mkinstalldirs) $(man1dir)
113 @for file in $(programs) $(opt_programs); do if test -f $$file;then $(INSTALL_BIN);$(INSTALL_MAN1);fi;done
116 @for file in $(programs) $(opt_programs); do $(UNINSTALL_BIN);$(UNINSTALL_MAN1);done
119 rm -f *.o *.obj *.lo *.la *~ gmon.out
120 rm -f gif2swf swfbbox swfbytes swfedit swfdump pdf2swf wav2swf png2swf swfcombine swfextract swfstrings png2swf jpeg2swf swfc font2swf
121 @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
122 @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)
125 perl ../parsedoc.pl wav2swf.doc
126 perl ../parsedoc.pl png2swf.doc
127 perl ../parsedoc.pl gif2swf.doc
128 perl ../parsedoc.pl swfbbox.doc
129 perl ../parsedoc.pl font2swf.doc
130 perl ../parsedoc.pl jpeg2swf.doc
131 perl ../parsedoc.pl swfcombine.doc
132 perl ../parsedoc.pl swfdump.doc
133 perl ../parsedoc.pl swfc.doc
134 #perl ../parsedoc.pl swfbytes.doc