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@
10 wav2swf.$(O): wav2swf.c ../lib/wav.h
12 png2swf.$(O): png2swf.c
14 pdf2swf.$(O): pdf2swf.c
16 gif2swf.$(O): gif2swf.c
18 swfcombine.$(O): swfcombine.c
19 $(C) swfcombine.c -o $@
20 swfdump.$(O): swfdump.c
22 swfextract.$(O): swfextract.c
23 $(C) swfextract.c -o $@
24 swfstrings.$(O): swfstrings.c
25 $(C) swfstrings.c -o $@
26 swfbbox.$(O): swfbbox.c
28 swfedit.$(O): swfedit.c
30 swf2png.$(O): swf2png.c
32 jpeg2swf.$(O): jpeg2swf.c
34 swfrender.$(O): swfrender.c
35 $(C) swfrender.c -o $@
36 font2swf.$(O): font2swf.c
38 swfc.$(O): swfc.c parser.h ../lib/q.h
40 swfc-feedback.$(O): swfc-feedback.c swfc-feedback.h
41 $(C) swfc-feedback.c -o $@
42 swfc-history.$(O): swfc-history.c swfc-history.h swfc-interpolation.h
43 $(C) swfc-history.c -o $@
44 swfc-interpolation.$(O): swfc-interpolation.c swfc-interpolation.h
45 $(C) swfc-interpolation.c -o $@
46 parser.$(O): parser.yy.c parser.h ../lib/q.h
47 $(C) parser.yy.c -o $@
49 ../lib/librfxswf$(A): ../lib/modules/swfrender.c ../lib/modules/swfshape.c ../lib/modules/swfbits.c ../lib/rfxswf.c
50 cd ../lib;$(MAKE) librfxswf$(A);cd -
52 # TODO: include the following rule only if lex is available
53 parser.yy.c: parser.lex
54 flex -B -s -oparser.yy.c parser.lex
56 wav2swf$(E): wav2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
57 $(L) wav2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
59 png2swf$(E): png2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
60 $(L) png2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
62 gif2swf$(E): gif2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
63 $(L) gif2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
65 swfcombine$(E): swfcombine.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
66 $(L) swfcombine.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
68 swfdump$(E): swfdump.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
69 $(L) swfdump.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
71 swfedit$(E): swfedit.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
72 $(L) swfedit.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
74 swf2png$(E): swf2png.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
75 $(L) swf2png.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
77 swfextract$(E): swfextract.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
78 $(L) swfextract.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
80 swfstrings$(E): swfstrings.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
81 $(L) swfstrings.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
83 swfbbox$(E): swfbbox.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
84 $(L) swfbbox.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
86 font2swf$(E): font2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
87 $(L) font2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
89 jpeg2swf$(E): jpeg2swf.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
90 $(L) jpeg2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
92 swfrender$(E): swfrender.$(O) ../lib/librfxswf$(A) ../lib/libgfx$(A) ../lib/swf/swf.$(O) ../lib/libbase$(A)
93 $(L) swfrender.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libgfx$(A) ../lib/swf/swf.$(O) ../lib/libbase$(A) $(LIBS)
96 PDF2SWF_OBJ=../lib/librfxswf$(A) ../lib/libpdf$(A) ../lib/devices/arts.$(O) ../lib/devices/swf.$(O) ../lib/art/libart$(A) ../lib/libgfx$(A) ../lib/libbase$(A)
97 pdf2swf$(E): pdf2swf.$(O) $(PDF2SWF_OBJ)
98 $(LL) pdf2swf.$(O) -o $@ $(PDF2SWF_OBJ) $(LIBS) $(CXXLIBS)
100 swfc$(E): parser.$(O) swfc.$(O) swfc-feedback.$(O) swfc-history.$(O) swfc-interpolation.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
101 $(L) parser.$(O) swfc.$(O) swfc-feedback.$(O) swfc-history.$(O) swfc-interpolation.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
105 $(mkinstalldirs) $(bindir)
106 $(mkinstalldirs) $(man1dir)
107 @for file in $(programs); do $(INSTALL_BIN);$(INSTALL_MAN1);done
110 @for file in $(programs); do $(UNINSTALL_BIN);$(UNINSTALL_MAN1);done
113 rm -f *.o *.obj *.lo *.la *~ gmon.out
114 rm -f gif2swf swfbbox swfedit swfdump pdf2swf wav2swf png2swf swfcombine swfextract swfstrings png2swf jpeg2swf swfc font2swf
115 @rm -f gif2swf.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
116 @rm -f gif2swf$(E) pdf2swf$(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)
119 perl ../parsedoc.pl wav2swf.doc
120 perl ../parsedoc.pl png2swf.doc
121 perl ../parsedoc.pl gif2swf.doc
122 perl ../parsedoc.pl swfbbox.doc
123 perl ../parsedoc.pl font2swf.doc
124 perl ../parsedoc.pl jpeg2swf.doc
125 perl ../parsedoc.pl swfcombine.doc
126 perl ../parsedoc.pl swfdump.doc
127 perl ../parsedoc.pl swfc.doc
128 #perl ../parsedoc.pl swfedit.doc