added libart compilation
[swftools.git] / lib / Makefile.in
index b821a58..0a7c6d8 100644 (file)
@@ -3,7 +3,7 @@ srcdir = @srcdir@
 top_srcdir = @top_srcdir@
 include ../Makefile.common
 
-all: librfxswf.a q.$(O)
+all: librfxswf$(A) q.$(O) os.$(O) gfxtools.$(O) art/libart$(A)
 
 lame_objects = @lame_objects@
 
@@ -17,6 +17,11 @@ drawer.$(O): drawer.c drawer.h
        $(C) drawer.c -o $@
 q.$(O): q.c q.h $(top_builddir)/config.h
        $(C) q.c -o $@
+os.$(O): os.c os.h $(top_builddir)/config.h
+       $(C) -DSWFTOOLS_DATADIR=\"$(pkgdatadir)\" os.c -o $@
+gfxtools.$(O): gfxtools.c gfxtools.h $(top_builddir)/config.h
+       $(C) gfxtools.c -o $@
+
 MD5.$(O): MD5.c MD5.h
        $(C) MD5.c -o $@
 log.$(O): log.c log.h
@@ -29,6 +34,9 @@ $(lame_objects):
 $(actioncompiler_objects):
        cd action;make all;cd ..
 
+art/libart$(A):
+       cd art; $(MAKE) libart$(A);cd ..
+
 h.263/dct.$(O):  h.263/dct.c h.263/dct.h
        $(C) h.263/dct.c -o h.263/dct.$(O)
 h.263/h263tables.$(O): h.263/h263tables.c h.263/h263tables.h
@@ -36,9 +44,9 @@ h.263/h263tables.$(O): h.263/h263tables.c h.263/h263tables.h
 h.263/swfvideo.$(O): h.263/swfvideo.c h.263/h263tables.h h.263/dct.h
        $(C) h.263/swfvideo.c -o h.263/swfvideo.$(O)
 
-librfxswf.a: Makefile rfxswf.$(O) drawer.$(O) bitio.$(O) log.$(O) MD5.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects)
-       $(AR) r librfxswf.a rfxswf.$(O) drawer.$(O) bitio.$(O) log.$(O) MD5.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects)
-       $(RANLIB) librfxswf.a
+librfxswf$(A): Makefile rfxswf.$(O) drawer.$(O) bitio.$(O) log.$(O) MD5.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects)
+       $(AR) r librfxswf$(A) rfxswf.$(O) drawer.$(O) bitio.$(O) log.$(O) MD5.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects)
+       $(RANLIB) librfxswf$(A)
 
 install:
 uninstall:
@@ -48,4 +56,5 @@ clean:
        cd lame && $(MAKE) clean && cd .. || true
        cd action && $(MAKE) clean && cd ..
        cd python && $(MAKE) clean && cd ..
+       cd libart && $(MAKE) clean && cd ..