swfc added.
[swftools.git] / src / Makefile.in
1 src = i3847
2 top_builddir = ..
3 srcdir = @srcdir@
4 top_srcdir = @top_srcdir@
5 include ../Makefile.common
6
7 programs = wav2swf @PNG2SWF@ swfcombine swfstrings swfextract swfdump swfc @JPEG2SWF@
8
9 all: $(programs)
10
11 wav2swf.o: wav2swf.c wav.h
12         $(C) wav2swf.c -o $@
13 wav.o: wav.c wav.h
14         $(C) wav.c -o $@
15 png2swf.o: png2swf.c
16         $(C) png2swf.c -o $@
17 swfcombine.o: swfcombine.c
18         $(C) swfcombine.c -o $@
19 swfdump.o: swfdump.c
20         $(C) swfdump.c -o $@
21 swfextract.o: swfextract.c
22         $(C) swfextract.c -o $@
23 swfstrings.o: swfstrings.c
24         $(C) swfstrings.c -o $@
25 jpeg2swf.o: jpeg2swf.c
26         $(C) jpeg2swf.c -o $@
27 swfc.o: swfc.c parser.h q.h
28         $(C) swfc.c -o $@
29 parser.o: parser.yy.c parser.h q.h
30         $(C) parser.yy.c -o $@
31 q.o: q.c q.h
32         $(C) q.c -o $@
33
34 # TODO: include the following rule only if lex is available
35 parser.yy.c: parser.lex
36         lex -Bs -oparser.yy.c parser.lex
37
38 wav2swf: wav2swf.o wav.o
39         $(L) wav2swf.o wav.o -o $@ ../lib/librfxswf.a $(LIBS)
40 png2swf: png2swf.o
41         $(L) png2swf.o -o $@ ../lib/librfxswf.a $(LIBS)
42 swfcombine: swfcombine.o
43         $(L) swfcombine.o -o $@ ../lib/librfxswf.a $(LIBS)
44 swfdump: swfdump.o
45         $(L) swfdump.o -o $@ ../lib/librfxswf.a $(LIBS)
46 swfextract: swfextract.o
47         $(L) swfextract.o -o $@ ../lib/librfxswf.a $(LIBS)
48 swfstrings: swfstrings.o
49         $(L) swfstrings.o -o $@ ../lib/librfxswf.a $(LIBS)
50 jpeg2swf: jpeg2swf.o
51         $(L) jpeg2swf.o -o $@ ../lib/librfxswf.a $(LIBS)
52 swfc: parser.o swfc.o q.o
53         $(L) parser.o swfc.o q.o -o $@ ../lib/librfxswf.a $(LIBS)
54
55 install:
56         $(mkinstalldirs) $(bindir)
57         $(mkinstalldirs) $(man1dir)
58         @for file in $(programs); do $(INSTALL_BIN);$(INSTALL_MAN1);done
59         
60 uninstall:
61         @for file in $(programs); do $(UNINSTALL_BIN);$(UNINSTALL_MAN1);done
62
63 clean: 
64         rm -f *.o *.lo *.a *.la wav2swf png2swf swfcombine swfextract swfstrings png2swf jpeg2swf *~
65