added libart compilation
[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) q.$(O) os.$(O) gfxtools.$(O) art/libart$(A)
7
8 lame_objects = @lame_objects@
9
10 h263_objects = h.263/dct.$(O) h.263/h263tables.$(O) h.263/swfvideo.$(O)
11 actioncompiler_objects = action/assembler.$(O) action/compile.$(O) action/lex.swf4.$(O) action/lex.swf5.$(O) action/libming.$(O) action/swf4compiler.tab.$(O) action/swf5compiler.tab.$(O) action/actioncompiler.$(O)
12 rfxswf_modules =  modules/swfbits.c modules/swfaction.c modules/swfdump.c modules/swfcgi.c modules/swfbutton.c modules/swftext.c modules/swffont.c modules/swftools.c modules/swfsound.c modules/swfshape.c modules/swfobject.c modules/swfdraw.c modules/swfrender.c h.263/swfvideo.c
13
14 bitio.$(O): bitio.c bitio.h
15         $(C) bitio.c -o $@
16 drawer.$(O): drawer.c drawer.h
17         $(C) drawer.c -o $@
18 q.$(O): q.c q.h $(top_builddir)/config.h
19         $(C) q.c -o $@
20 os.$(O): os.c os.h $(top_builddir)/config.h
21         $(C) -DSWFTOOLS_DATADIR=\"$(pkgdatadir)\" os.c -o $@
22 gfxtools.$(O): gfxtools.c gfxtools.h $(top_builddir)/config.h
23         $(C) gfxtools.c -o $@
24
25 MD5.$(O): MD5.c MD5.h
26         $(C) MD5.c -o $@
27 log.$(O): log.c log.h
28         $(C) log.c -o $@
29 rfxswf.$(O): rfxswf.c rfxswf.h drawer.h bitio.h log.h MD5.h $(rfxswf_modules) $(top_builddir)/config.h
30         $(C) rfxswf.c -o $@
31
32 $(lame_objects):
33         cd lame;make all;cd ..
34 $(actioncompiler_objects):
35         cd action;make all;cd ..
36
37 art/libart$(A):
38         cd art; $(MAKE) libart$(A);cd ..
39
40 h.263/dct.$(O):  h.263/dct.c h.263/dct.h
41         $(C) h.263/dct.c -o h.263/dct.$(O)
42 h.263/h263tables.$(O): h.263/h263tables.c h.263/h263tables.h
43         $(C) h.263/h263tables.c -o h.263/h263tables.$(O)
44 h.263/swfvideo.$(O): h.263/swfvideo.c h.263/h263tables.h h.263/dct.h
45         $(C) h.263/swfvideo.c -o h.263/swfvideo.$(O)
46
47 librfxswf$(A): Makefile rfxswf.$(O) drawer.$(O) bitio.$(O) log.$(O) MD5.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects)
48         $(AR) r librfxswf$(A) rfxswf.$(O) drawer.$(O) bitio.$(O) log.$(O) MD5.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects)
49         $(RANLIB) librfxswf$(A)
50
51 install:
52 uninstall:
53
54 clean: 
55         rm -f *.o *.obj *.lo *.a *.la gmon.out
56         cd lame && $(MAKE) clean && cd .. || true
57         cd action && $(MAKE) clean && cd ..
58         cd python && $(MAKE) clean && cd ..
59         cd libart && $(MAKE) clean && cd ..
60