fix for g++ versions which switch into c mode for .c extensions.
[swftools.git] / lib / Makefile.in
1 top_builddir = ..
2 srcdir = @srcdir@
3 top_srcdir = @top_srcdir@
4 include ../Makefile.common
5
6 all: librfxswf.a
7
8 lame_objects =  lame/psymodel.o lame/fft.o lame/newmdct.o lame/quantize.o lame/takehiro.o lame/reservoir.o lame/quantize_pvt.o lame/vbrquantize.o lame/encoder.o lame/id3tag.o lame/version.o lame/tables.o lame/util.o lame/bitstream.o lame/set_get.o lame/VbrTag.o lame/lame.o
9 rfxswf_modules =  modules/swfbits.c modules/swfaction.c modules/swfdump.c modules/swfcgi.c modules/swfbutton.c modules/swftext.c modules/swftools.c modules/swfsound.c modules/swfshape.c modules/swfobject.c
10
11 bitio.o: bitio.c bitio.h
12         $(C) bitio.c -o $@
13 log.o: log.c log.h
14         $(C) log.c -o $@
15 rfxswf.o: rfxswf.c rfxswf.h bitio.h log.h $(rfxswf_modules)
16         $(C) rfxswf.c -o $@
17
18 $(lame_objects):
19         cd lame;make all;cd ..
20
21 librfxswf.a: rfxswf.o bitio.o log.o $(lame_objects)
22         $(AR) r librfxswf.a rfxswf.o bitio.o log.o $(lame_objects)
23         $(RANLIB) librfxswf.a
24
25 install:
26 uninstall:
27
28 clean: 
29         rm -f *.o *.lo *.a *.la
30         cd lame;$(MAKE) clean;cd ..
31