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 parser.$(O): parser.yy.c parser.h ../lib/q.h
41 $(C) parser.yy.c -o $@
43 ../lib/librfxswf$(A): ../lib/modules/swfrender.c ../lib/modules/swfshape.c ../lib/modules/swfbits.c ../lib/rfxswf.c
44 cd ../lib;$(MAKE) librfxswf$(A);cd -
46 # TODO: include the following rule only if lex is available
47 parser.yy.c: parser.lex
48 flex -B -s -oparser.yy.c parser.lex
50 wav2swf$(E): wav2swf.$(O) ../lib/wav.$(O) ../lib/librfxswf$(A)
51 $(L) wav2swf.$(O) ../lib/wav.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
53 png2swf$(E): png2swf.$(O) ../lib/librfxswf$(A)
54 $(L) png2swf.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
56 gif2swf$(E): gif2swf.$(O) ../lib/librfxswf$(A)
57 $(L) gif2swf.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
59 swfcombine$(E): swfcombine.$(O) ../lib/librfxswf$(A)
60 $(L) swfcombine.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
62 swfdump$(E): swfdump.$(O) ../lib/librfxswf$(A)
63 $(L) swfdump.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
65 swfedit$(E): swfedit.$(O) ../lib/librfxswf$(A)
66 $(L) swfedit.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
68 swf2png$(E): swf2png.$(O) ../lib/librfxswf$(A) ../lib/png.$(O)
69 $(L) swf2png.$(O) -o $@ ../lib/librfxswf$(A) ../lib/png.$(O) $(LIBS)
71 swfextract$(E): swfextract.$(O) ../lib/librfxswf$(A)
72 $(L) swfextract.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
74 swfstrings$(E): swfstrings.$(O) ../lib/librfxswf$(A)
75 $(L) swfstrings.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
77 swfbbox$(E): swfbbox.$(O) ../lib/librfxswf$(A)
78 $(L) swfbbox.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
80 font2swf$(E): font2swf.$(O) ../lib/librfxswf$(A)
81 $(L) font2swf.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
83 jpeg2swf$(E): jpeg2swf.$(O) ../lib/librfxswf$(A)
84 $(L) jpeg2swf.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
86 swfrender$(E): swfrender.$(O) ../lib/librfxswf$(A) ../lib/png.$(O)
87 $(L) swfrender.$(O) -o $@ ../lib/librfxswf$(A) ../lib/png.$(O) $(LIBS)
89 pdf2swf$(E): pdf2swf.$(O) ../lib/librfxswf$(A) ../lib/libpdf$(A) ../lib/devices/arts.$(O) ../lib/devices/swf.$(O)
90 $(LL) pdf2swf.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libpdf$(A) ../lib/gfxtools.$(O) ../lib/gfxfont.$(O) ../lib/os.$(O) ../lib/devices/swf.$(O) ../lib/devices/arts.$(O) ../lib/devices/record.$(O) ../lib/art/libart$(A) $(LIBS) $(CXXLIBS)
92 swfc$(E): parser.$(O) swfc.$(O) ../lib/q.$(O) ../lib/mp3.$(O) ../lib/wav.$(O) ../lib/png.$(O) ../lib/librfxswf$(A)
93 $(L) parser.$(O) swfc.$(O) ../lib/q.$(O) ../lib/mp3.$(O) ../lib/wav.$(O) ../lib/png.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
97 $(mkinstalldirs) $(bindir)
98 $(mkinstalldirs) $(man1dir)
99 @for file in $(programs); do $(INSTALL_BIN);$(INSTALL_MAN1);done
102 @for file in $(programs); do $(UNINSTALL_BIN);$(UNINSTALL_MAN1);done
105 rm -f *.o *.obj *.lo *.la *~ gmon.out
106 rm -f gif2swf swfbbox swfedit swfdump pdf2swf wav2swf png2swf swfcombine swfextract swfstrings png2swf jpeg2swf swfc font2swf
107 @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
108 @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)
111 perl ../parsedoc.pl wav2swf.doc
112 perl ../parsedoc.pl png2swf.doc
113 perl ../parsedoc.pl gif2swf.doc
114 perl ../parsedoc.pl swfbbox.doc
115 perl ../parsedoc.pl font2swf.doc
116 perl ../parsedoc.pl jpeg2swf.doc
117 perl ../parsedoc.pl swfcombine.doc
118 perl ../parsedoc.pl swfdump.doc
119 perl ../parsedoc.pl swfc.doc
120 #perl ../parsedoc.pl swfedit.doc