all Makefiles rewritten.
[swftools.git] / src / Makefile.in
1 top_builddir = ..
2 srcdir = @srcdir@
3 top_srcdir = @top_srcdir@
4 include ../Makefile.common
5
6 programs = wav2swf png2swf swfcombine swfstrings swfextract swfdump @JPEG2SWF@
7
8 all: $(programs)
9
10 %.o: %.c
11         $(C) $< -o $@
12
13 wav2swf.o: wav2swf.c wav.h
14
15 wav2swf: wav2swf.o wav.o
16         $(L) wav2swf.o wav.o -o wav2swf ../lib/librfxswf.a $(LIBS)
17
18 png2swf: png2swf.o
19         $(L) png2swf.o -o png2swf ../lib/librfxswf.a $(LIBS) 
20
21 swfcombine: swfcombine.o
22         $(L) swfcombine.o -o swfcombine ../lib/librfxswf.a $(LIBS) 
23
24 swfextract: swfextract.o
25         $(L) swfextract.o -o swfextract ../lib/librfxswf.a $(LIBS) 
26
27 swfstrings: swfstrings.o
28         $(L) swfstrings.o -o swfstrings ../lib/librfxswf.a $(LIBS) 
29
30 jpeg2swf: jpeg2swf.o
31         $(L) jpeg2swf.o -o jpeg2swf ../lib/librfxswf.a $(LIBS) 
32
33 install:
34         $(mkinstalldirs) $(bindir)
35         $(mkinstalldirs) $(man1dir)
36         @for file in $(programs); do $(INSTALL_BIN);$(INSTALL_MAN1);done
37         
38 uninstall:
39         @for file in $(programs); do $(UNINSTALL_BIN);$(UNINSTALL_MAN1);done
40
41 clean: 
42         rm -f *.o *.lo *.a *.la wav2swf png2swf swfcombine swfextract swfstrings png2swf jpeg2swf *~
43