4 top_srcdir = @top_srcdir@
5 include ../Makefile.common
7 programs = wav2swf @PNG2SWF@ swfcombine swfstrings swfextract swfdump swfc @JPEG2SWF@
11 wav2swf.o: wav2swf.c wav.h
17 swfcombine.o: swfcombine.c
18 $(C) swfcombine.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
27 swfc.o: swfc.c parser.h q.h
29 parser.o: parser.yy.c parser.h q.h
30 $(C) parser.yy.c -o $@
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
38 wav2swf: wav2swf.o wav.o
39 $(L) wav2swf.o wav.o -o $@ ../lib/librfxswf.a $(LIBS)
41 $(L) png2swf.o -o $@ ../lib/librfxswf.a $(LIBS)
42 swfcombine: swfcombine.o
43 $(L) swfcombine.o -o $@ ../lib/librfxswf.a $(LIBS)
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)
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)
56 $(mkinstalldirs) $(bindir)
57 $(mkinstalldirs) $(man1dir)
58 @for file in $(programs); do $(INSTALL_BIN);$(INSTALL_MAN1);done
61 @for file in $(programs); do $(UNINSTALL_BIN);$(UNINSTALL_MAN1);done
64 rm -f *.o *.lo *.a *.la wav2swf png2swf swfcombine swfextract swfstrings png2swf jpeg2swf *~