arts is now part of libgfx.a
[swftools.git] / lib / Makefile.in
1 top_builddir = ..
2 srcdir = @srcdir@
3 top_srcdir = @top_srcdir@
4 include ../Makefile.common
5
6 DEVICES = devices/swf.$(O) #devices/lrf.$(O) devices/opengl.$(O)
7
8 all: librfxswf$(A) libpdf$(A) libbase$(A) libgfx$(A) $(DEVICES)
9
10 lame_objects = @lame_objects@
11
12 h263_objects = h.263/dct.$(O) h.263/h263tables.$(O) h.263/swfvideo.$(O)
13 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)
14 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/swffilter.c modules/swfrender.c h.263/swfvideo.c
15
16 base_objects=q.$(O) utf8.$(O) png.$(O) wav.$(O) mp3.$(O) os.$(O) bitio.$(O) log.$(O) mem.$(O) 
17 gfx_objects=gfxtools.$(O) gfxfont.$(O) gfxpoly.$(O) devices/dummy.$(O) devices/file.$(O) devices/render.$(O) devices/text.$(O) devices/record.$(O) devices/ops.$(O) devices/polyops.$(O) devices/bbox.$(O) devices/rescale.$(O)
18 art_objects = art/art_affine.$(O) art/art_alphagamma.$(O) art/art_bpath.$(O) art/art_gray_svp.$(O) art/art_misc.$(O) art/art_pixbuf.$(O) art/art_rect.$(O) art/art_rect_svp.$(O) art/art_rect_uta.$(O) art/art_render.$(O) art/art_render_gradient.$(O) art/art_render_mask.$(O) art/art_render_svp.$(O) art/art_rgb.$(O) art/art_rgb_a_affine.$(O) art/art_rgb_affine.$(O) art/art_rgb_affine_private.$(O) art/art_rgb_bitmap_affine.$(O) art/art_rgb_pixbuf_affine.$(O) art/art_rgb_rgba_affine.$(O) art/art_rgb_svp.$(O) art/art_rgba.$(O) art/art_svp.$(O) art/art_svp_intersect.$(O) art/art_svp_ops.$(O) art/art_svp_point.$(O) art/art_svp_render_aa.$(O) art/art_svp_vpath.$(O) art/art_svp_vpath_stroke.$(O) art/art_svp_wind.$(O) art/art_uta.$(O) art/art_uta_ops.$(O) art/art_uta_rect.$(O) art/art_uta_svp.$(O) art/art_uta_vpath.$(O) art/art_vpath.$(O) art/art_vpath_bpath.$(O) art/art_vpath_dash.$(O) art/art_vpath_svp.$(O)
19
20 %.$(O): %.c 
21         $(C) $< -o $@
22 bitio.$(O): bitio.c bitio.h
23         $(C) bitio.c -o $@
24 drawer.$(O): drawer.c drawer.h
25         $(C) drawer.c -o $@
26 q.$(O): q.c q.h $(top_builddir)/config.h
27         $(C) q.c -o $@
28 utf8.$(O): utf8.c utf8.h $(top_builddir)/config.h
29         $(C) utf8.c -o $@
30 mem.$(O): mem.c mem.h $(top_builddir)/config.h
31         $(C) mem.c -o $@
32 png.$(O): png.c png.h $(top_builddir)/config.h
33         $(C) png.c -o $@
34 mp3.$(O): mp3.c mp3.h $(top_builddir)/config.h
35         $(C) mp3.c -o $@
36 wav.$(O): wav.c wav.h $(top_builddir)/config.h
37         $(C) wav.c -o $@
38 os.$(O): os.c os.h $(top_builddir)/config.h
39         $(C) -DSWFTOOLS_DATADIR=\"$(pkgdatadir)\" os.c -o $@
40 gfxtools.$(O): gfxtools.c gfxtools.h $(top_builddir)/config.h
41         $(C) gfxtools.c -o $@
42 gfxpoly.$(O): gfxpoly.c gfxpoly.h $(top_builddir)/config.h
43         $(C) gfxpoly.c -o $@
44 gfxfont.$(O): gfxfont.c gfxfont.h $(top_builddir)/config.h
45         $(C) gfxfont.c -o $@
46 gfxwindow.$(O): gfxwindow_win32.c gfxwindow_unix.c gfxwindow.c gfxwindow.h
47         $(C) gfxwindow.c -o $@
48
49 MD5.$(O): MD5.c MD5.h
50         $(C) MD5.c -o $@
51 log.$(O): log.c log.h
52         $(C) log.c -o $@
53 rfxswf.$(O): rfxswf.c rfxswf.h drawer.h bitio.h log.h MD5.h $(rfxswf_modules) $(top_builddir)/config.h
54         $(C) rfxswf.c -o $@
55
56 $(lame_objects):
57         cd lame;$(MAKE) all;cd ..
58 $(actioncompiler_objects):
59         cd action;$(MAKE) all;cd ..
60
61 h.263/dct.$(O):  h.263/dct.c h.263/dct.h
62         $(C) h.263/dct.c -o h.263/dct.$(O)
63 h.263/h263tables.$(O): h.263/h263tables.c h.263/h263tables.h
64         $(C) h.263/h263tables.c -o h.263/h263tables.$(O)
65 h.263/swfvideo.$(O): h.263/swfvideo.c h.263/h263tables.h h.263/dct.h
66         $(C) h.263/swfvideo.c -o h.263/swfvideo.$(O)
67
68 devices/swf.$(O):  devices/swf.c devices/swf.h
69         $(C) devices/swf.c -o devices/swf.$(O)
70 devices/file.$(O):  devices/file.c devices/file.h
71         $(C) devices/file.c -o devices/file.$(O)
72 devices/dummy.$(O):  devices/dummy.c devices/dummy.h
73         $(C) devices/dummy.c -o devices/dummy.$(O)
74 devices/render.$(O):  devices/render.c devices/render.h
75         $(C) devices/render.c -o devices/render.$(O)
76 devices/opengl.$(O):  devices/opengl.c devices/opengl.h
77         $(C) devices/opengl.c -o devices/opengl.$(O)
78 devices/polyops.$(O):  devices/polyops.c devices/polyops.h gfxpoly.h
79         $(C) devices/polyops.c -o devices/polyops.$(O)
80 devices/record.$(O):  devices/record.c devices/record.h
81         $(C) devices/record.c -o devices/record.$(O)
82 devices/text.$(O):  devices/text.c devices/text.h
83         $(C) devices/text.c -o devices/text.$(O)
84 devices/ops.$(O):  devices/ops.c devices/ops.h
85         $(C) devices/ops.c -o devices/ops.$(O)
86 devices/rescale.$(O):  devices/rescale.c devices/rescale.h
87         $(C) devices/rescale.c -o devices/rescale.$(O)
88 devices/bbox.$(O):  devices/bbox.c devices/bbox.h
89         $(C) devices/bbox.c -o devices/bbox.$(O)
90 devices/lrf.$(O):  devices/lrf.c devices/lrf.h
91         $(C) devices/lrf.c -o devices/lrf.$(O)
92
93 libbase$(A): $(base_objects) Makefile
94         $(AR) r libbase$(A) $(base_objects)
95
96 libgfx$(A): $(gfx_objects) $(art_objects) Makefile
97         $(AR) r libgfx$(A) $(gfx_objects) $(art_objects)
98
99 librfxswf$(A): Makefile rfxswf.$(O) drawer.$(O) MD5.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects) Makefile
100         $(AR) r librfxswf$(A) rfxswf.$(O) drawer.$(O) MD5.$(O) $(lame_objects) $(h263_objects) $(actioncompiler_objects)
101         $(RANLIB) librfxswf$(A)
102
103 libpdf$(A): pdf/GFXOutputDev.cc pdf/GFXOutputDev.h pdf/pdf.cc pdf/pdf.h
104         cd pdf;$(MAKE) libpdf
105
106
107 install:
108 uninstall:
109
110 clean: 
111         rm -f *.o *.obj *.lo *.a *.lib *.la gmon.out
112         rm -f art/*.o art/*.obj art/*.lo art/*.a art/*.lib art/*.la art/gmon.out
113         cd lame && $(MAKE) clean && cd .. || true
114         cd action && $(MAKE) clean && cd ..
115         cd python && $(MAKE) clean && cd ..
116         cd pdf && $(MAKE) clean && cd ..
117