]> Pileus Git - ~andy/gtk/blob - gdk-pixbuf/Makefile.am
moved the file here. It seems natural to put this function here, as that's
[~andy/gtk] / gdk-pixbuf / Makefile.am
1 lib_LTLIBRARIES =               \
2         libgdk_pixbuf.la
3
4 libexecdir = $(libdir)/gdk-pixbuf/loaders
5
6 if HAVE_PNG
7 PNG_LIB =       libpixbuf-png.la
8 endif
9
10 if HAVE_JPEG
11 JPEG_LIB =      libpixbuf-jpeg.la
12 endif
13
14 GIF_LIB = libpixbuf-gif.la
15
16 ICO_LIB = libpixbuf-ico.la
17
18 RAS_LIB = libpixbuf-ras.la
19
20 if HAVE_TIFF
21 TIFF_LIB =      libpixbuf-tiff.la
22 endif
23
24 XPM_LIB =       libpixbuf-xpm.la
25
26 PNM_LIB =       libpixbuf-pnm.la
27
28 BMP_LIB =       libpixbuf-bmp.la
29
30 libexec_LTLIBRARIES =           \
31         $(PNG_LIB)      \
32         $(JPEG_LIB)     \
33         $(GIF_LIB)      \
34         $(ICO_LIB)      \
35         $(RAS_LIB)      \
36         $(XPM_LIB)      \
37         $(TIFF_LIB)     \
38         $(PNM_LIB)      \
39         $(BMP_LIB)
40
41 noinst_PROGRAMS = testpixbuf testpixbuf-drawable testanimation
42
43 DEPS = libgdk_pixbuf.la
44 INCLUDES = -I$(top_srcdir) -I$(top_builddir) \
45         -I$(top_srcdir)/gdk-pixbuf \
46         -I$(top_builddir)/gdk-pixbuf \
47         $(GLIB_CFLAGS) $(LIBART_CFLAGS) $(GTK_CFLAGS)
48 AM_CPPFLAGS = "-DPIXBUF_LIBDIR=\"$(libexecdir)\""
49
50 LDADDS = libgdk_pixbuf.la $(LIBART_LIBS) $(GLIB_LIBS) $(GTK_LIBS)
51
52 if INSIDE_GNOME_LIBS
53 testpixbuf_LDADD = $(LDADDS) $(LIBART_LIBS) -lgmodule
54 testpixbuf_drawable_LDADD = $(LDADDS)
55 else
56 testpixbuf_LDADD = $(LDADDS) $(LIBART_LIBS) $(GNOME_LIBS) -lgmodule
57 testpixbuf_drawable_LDADD = $(LDADDS) $(GNOME_LIBS)
58 endif
59
60 if INSIDE_GNOME_LIBS
61 testanimation_LDADD = $(LDADDS) $(LIBART_LIBS) -lgmodule
62 testanimation_drawable_LDADD = $(LDADDS)
63 else
64 testanimation_LDADD = $(LDADDS) $(LIBART_LIBS) $(GNOME_LIBS) -lgmodule
65 testanimation_drawable_LDADD = $(LDADDS) $(GNOME_LIBS)
66 endif
67
68
69 GDK_PIXBUF_LIBS = $(LIBART_LIBS) $(GLIB_LIBS) $(GTK_LIBS)
70
71 #
72 # The GdkPixBuf library
73 #
74 if INSIDE_GNOME_LIBS
75 CANVAS_SOURCEFILES=
76 CANVAS_HEADERFILES=
77 else
78 CANVAS_SOURCEFILES=     gnome-canvas-pixbuf.c
79 CANVAS_HEADERFILES=     gnome-canvas-pixbuf.h
80 endif
81
82 libgdk_pixbufincludedir = $(includedir)/gdk-pixbuf
83
84 libgdk_pixbuf_la_SOURCES =      \
85         gdk-pixbuf.c            \
86         gdk-pixbuf-data.c       \
87         gdk-pixbuf-drawable.c   \
88         gdk-pixbuf-io.c         \
89         gdk-pixbuf-loader.c     \
90         gdk-pixbuf-render.c     \
91         gdk-pixbuf-util.c       \
92         $(CANVAS_SOURCEFILES)
93
94 if INSIDE_GNOME_LIBS
95 EXTRA_GNOME_LIBS = ""
96 else
97 EXTRA_GNOME_LIBS = $(GNOME_LIBS)
98 endif
99
100 libgdk_pixbuf_la_LDFLAGS = -version-info 1:0:0 $(EXTRA_GNOME_LIBS)
101
102 libgdk_pixbufinclude_HEADERS =  \
103         gdk-pixbuf.h            \
104         gdk-pixbuf-loader.h     \
105         $(CANVAS_HEADERFILES)
106
107 noinst_HEADERS = \
108         gdk-pixbuf-io.h
109
110 #
111 # The PNG plugin.
112 #
113 libpixbuf_png_la_SOURCES = io-png.c
114 libpixbuf_png_la_LDFLAGS = -avoid-version -module
115 libpixbuf_png_la_LIBADD = $(LIBPNG)
116
117 #
118 # The JPEG loader
119 #
120 libpixbuf_jpeg_la_SOURCES = io-jpeg.c
121 libpixbuf_jpeg_la_LDFLAGS = -avoid-version -module
122 libpixbuf_jpeg_la_LIBADD = $(LIBJPEG)
123
124 #
125 # The XPM loader
126 #
127 libpixbuf_xpm_la_SOURCES = io-xpm.c
128 libpixbuf_xpm_la_LDFLAGS = -avoid-version -module
129 libpixbuf_xpm_la_LIBADD =
130
131 #
132 # The GIF loader
133 #
134 libpixbuf_gif_la_SOURCES = io-gif.c
135 libpixbuf_gif_la_LDFLAGS = -avoid-version -module
136 libpixbuf_gif_la_LIBADD =
137
138 #
139 # The ICO loader
140 #
141 libpixbuf_ico_la_SOURCES = io-ico.c
142 libpixbuf_ico_la_LDFLAGS = -avoid-version -module
143 libpixbuf_ico_la_LIBADD =
144
145 #
146 # The RAS loader
147 #
148 libpixbuf_ras_la_SOURCES = io-ras.c
149 libpixbuf_ras_la_LDFLAGS = -avoid-version -module
150 libpixbuf_ras_la_LIBADD =
151
152 #
153 # The TIFF loader
154 #
155 libpixbuf_tiff_la_SOURCES = io-tiff.c
156 libpixbuf_tiff_la_LDFLAGS = -avoid-version -module
157 libpixbuf_tiff_la_LIBADD =
158
159 #
160 # The PNM loader
161 #
162 libpixbuf_pnm_la_SOURCES = io-pnm.c
163 libpixbuf_pnm_la_LDFLAGS = -avoid-version -module
164 libpixbuf_pnm_la_LIBADD =
165
166 #
167 # The BMP loader
168 #
169 libpixbuf_bmp_la_SOURCES = io-bmp.c
170 libpixbuf_bmp_la_LDFLAGS = -avoid-version -module
171 libpixbuf_bmp_la_LIBADD =