3 top_srcdir = @top_srcdir@
4 include ../Makefile.common
6 programs = wav2swf @PNG2SWF@ swfcombine swfstrings swfextract swfdump swfc @JPEG2SWF@
10 wav2swf.o: wav2swf.c wav.h
16 swfcombine.o: swfcombine.c
17 $(C) swfcombine.c -o $@
20 swfextract.o: swfextract.c
21 $(C) swfextract.c -o $@
22 swfstrings.o: swfstrings.c
23 $(C) swfstrings.c -o $@
24 jpeg2swf.o: jpeg2swf.c
26 swfc.o: swfc.c parser.h ../lib/q.h
28 parser.o: parser.yy.c parser.h ../lib/q.h
29 $(C) parser.yy.c -o $@
31 # TODO: include the following rule only if lex is available
32 parser.yy.c: parser.lex
33 lex -Bs -oparser.yy.c parser.lex
35 wav2swf: wav2swf.o wav.o
36 $(L) wav2swf.o wav.o -o $@ ../lib/librfxswf.a $(LIBS)
39 $(L) png2swf.o -o $@ ../lib/librfxswf.a $(LIBS)
41 swfcombine: swfcombine.o
42 $(L) swfcombine.o -o $@ ../lib/librfxswf.a $(LIBS)
45 $(L) swfdump.o -o $@ ../lib/librfxswf.a $(LIBS)
47 swfextract: swfextract.o
48 $(L) swfextract.o -o $@ ../lib/librfxswf.a $(LIBS)
50 swfstrings: swfstrings.o
51 $(L) swfstrings.o -o $@ ../lib/librfxswf.a $(LIBS)
54 $(L) jpeg2swf.o -o $@ ../lib/librfxswf.a $(LIBS)
56 swfc: parser.o swfc.o ../lib/q.o wav.o
57 $(L) parser.o swfc.o ../lib/q.o wav.o -o $@ ../lib/librfxswf.a $(LIBS)
61 $(mkinstalldirs) $(bindir)
62 $(mkinstalldirs) $(man1dir)
63 @for file in $(programs); do $(INSTALL_BIN);$(INSTALL_MAN1);done
66 @for file in $(programs); do $(UNINSTALL_BIN);$(UNINSTALL_MAN1);done
69 rm -f *.o *.lo *.a *.la wav2swf png2swf swfcombine swfextract swfstrings png2swf jpeg2swf *~