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@ swfbbox$(E) font2swf$(E)
10 wav2swf.$(O): wav2swf.c wav.h
14 png2swf.$(O): png2swf.c
16 swfcombine.$(O): swfcombine.c
17 $(C) swfcombine.c -o $@
18 swfdump.$(O): swfdump.c
20 swfextract.$(O): swfextract.c
21 $(C) swfextract.c -o $@
22 swfstrings.$(O): swfstrings.c
23 $(C) swfstrings.c -o $@
24 swfbbox.$(O): swfbbox.c
26 jpeg2swf.$(O): jpeg2swf.c
28 font2swf.$(O): font2swf.c
30 swfc.$(O): swfc.c parser.h ../lib/q.h
32 parser.$(O): parser.yy.c parser.h ../lib/q.h
33 $(C) parser.yy.c -o $@
35 # TODO: include the following rule only if lex is available
36 parser.yy.c: parser.lex
37 flex -Bs -oparser.yy.c parser.lex
39 wav2swf$(E): wav2swf.$(O) wav.$(O) ../lib/librfxswf$(A)
40 $(L) wav2swf.$(O) wav.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
42 png2swf$(E): png2swf.$(O) ../lib/librfxswf$(A)
43 $(L) png2swf.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
45 swfcombine$(E): swfcombine.$(O) ../lib/librfxswf$(A)
46 $(L) swfcombine.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
48 swfdump$(E): swfdump.$(O) ../lib/librfxswf$(A)
49 $(L) swfdump.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
51 swfextract$(E): swfextract.$(O) ../lib/librfxswf$(A)
52 $(L) swfextract.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
54 swfstrings$(E): swfstrings.$(O) ../lib/librfxswf$(A)
55 $(L) swfstrings.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
57 swfbbox$(E): swfbbox.$(O) ../lib/librfxswf$(A)
58 $(L) swfbbox.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
60 font2swf$(E): font2swf.$(O) ../lib/librfxswf$(A)
61 $(L) font2swf.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
63 jpeg2swf$(E): jpeg2swf.$(O) ../lib/librfxswf$(A)
64 $(L) jpeg2swf.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
66 swfc$(E): parser.$(O) swfc.$(O) ../lib/q.$(O) wav.$(O) ../lib/librfxswf$(A)
67 $(L) parser.$(O) swfc.$(O) ../lib/q.$(O) wav.$(O) -o $@ ../lib/librfxswf$(A) $(LIBS)
71 $(mkinstalldirs) $(bindir)
72 $(mkinstalldirs) $(man1dir)
73 @for file in $(programs); do $(INSTALL_BIN);$(INSTALL_MAN1);done
76 @for file in $(programs); do $(UNINSTALL_BIN);$(UNINSTALL_MAN1);done
79 rm -f *.o *.obj *.lo *.la *~ gmon.out
80 rm -f swfbbox swfdump wav2swf png2swf swfcombine swfextract swfstrings png2swf jpeg2swf swfc font2swf
81 @rm -f swfbbox.exe swfdump.exe wav2swf.exe png2swf.exe swfcombine.exe swfextract.exe swfstrings.exe png2swf.exe jpeg2swf.exe swfc.exe font2swf.exe
82 @rm -f swfbbox$(E) swfdump$(E) wav2swf$(E) png2swf$(E) swfcombine$(E) swfextract$(E) swfstrings$(E) png2swf$(E) jpeg2swf$(E) swfc$(E) font2swf$(E)
85 perl ../parsedoc.pl wav2swf.doc
86 perl ../parsedoc.pl png2swf.doc
87 perl ../parsedoc.pl swfbbox.doc
88 perl ../parsedoc.pl font2swf.doc
89 perl ../parsedoc.pl jpeg2swf.doc
90 perl ../parsedoc.pl swfcombine.doc
91 perl ../parsedoc.pl swfdump.doc
92 perl ../parsedoc.pl swfc.doc