added -b, -B flags.
[swftools.git] / src / Makefile.in
blob4bc6b446ce915791fcf75c8500ec07677b56e605
1 top_builddir = ..
2 srcdir = @srcdir@
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)
8 all: $(programs)
10 wav2swf.o: wav2swf.c wav.h
11 $(C) wav2swf.c -o $@
12 wav.o: wav.c wav.h
13 $(C) wav.c -o $@
14 png2swf.o: png2swf.c
15 $(C) png2swf.c -o $@
16 swfcombine.o: swfcombine.c
17 $(C) swfcombine.c -o $@
18 swfdump.o: swfdump.c
19 $(C) swfdump.c -o $@
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
25 $(C) swfbbox.c -o $@
26 jpeg2swf.o: jpeg2swf.c
27 $(C) jpeg2swf.c -o $@
28 font2swf.o: font2swf.c
29 $(C) font2swf.c -o $@
30 swfc.o: swfc.c parser.h ../lib/q.h
31 $(C) swfc.c -o $@
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)
41 $(STRIP) $@
42 png2swf$(E): png2swf.o ../lib/librfxswf.a
43 $(L) png2swf.o -o $@ ../lib/librfxswf.a $(LIBS)
44 $(STRIP) $@
45 swfcombine$(E): swfcombine.o ../lib/librfxswf.a
46 $(L) swfcombine.o -o $@ ../lib/librfxswf.a $(LIBS)
47 $(STRIP) $@
48 swfdump$(E): swfdump.o ../lib/librfxswf.a
49 $(L) swfdump.o -o $@ ../lib/librfxswf.a $(LIBS)
50 $(STRIP) $@
51 swfextract$(E): swfextract.o ../lib/librfxswf.a
52 $(L) swfextract.o -o $@ ../lib/librfxswf.a $(LIBS)
53 $(STRIP) $@
54 swfstrings$(E): swfstrings.o ../lib/librfxswf.a
55 $(L) swfstrings.o -o $@ ../lib/librfxswf.a $(LIBS)
56 $(STRIP) $@
57 swfbbox$(E): swfbbox.o ../lib/librfxswf.a
58 $(L) swfbbox.o -o $@ ../lib/librfxswf.a $(LIBS)
59 $(STRIP) $@
60 font2swf$(E): font2swf.o ../lib/librfxswf.a
61 $(L) font2swf.o -o $@ ../lib/librfxswf.a $(LIBS)
62 $(STRIP) $@
63 jpeg2swf$(E): jpeg2swf.o ../lib/librfxswf.a
64 $(L) jpeg2swf.o -o $@ ../lib/librfxswf.a $(LIBS)
65 $(STRIP) $@
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)
68 $(STRIP) $@
70 install:
71 $(mkinstalldirs) $(bindir)
72 $(mkinstalldirs) $(man1dir)
73 @for file in $(programs); do $(INSTALL_BIN);$(INSTALL_MAN1);done
75 uninstall:
76 @for file in $(programs); do $(UNINSTALL_BIN);$(UNINSTALL_MAN1);done
78 clean:
79 rm -f *.o *.lo *.a *.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)
84 doc:
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
94 .PHONY: clean doc