]> Pileus Git - ~andy/gtk/blob - gdk-pixbuf/Makefile.am
Conditionally include $(GNOME_LIBS) here.
[~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
42 noinst_PROGRAMS = testpixbuf
43
44
45 DEPS = libgdk_pixbuf.la
46 INCLUDES = -I$(top_builddir)/gdk-pixbuf $(GLIB_CFLAGS) $(LIBART_CFLAGS) $(GTK_CFLAGS)
47 AM_CPPFLAGS = "-DPIXBUF_LIBDIR=\"$(libexecdir)\""
48
49 LDADDS = libgdk_pixbuf.la $(LIBART_LIBS) $(GLIB_LIBS) $(GTK_LIBS)
50
51 if INSIDE_GNOME_LIBS
52 testpixbuf_LDADD = $(LDADDS) $(LIBART_LIBS) -lgmodule
53 else
54 testpixbuf_LDADD = $(LDADDS) $(LIBART_LIBS) $(GNOME_LIBS) -lgmodule
55 endif
56
57 #testpixbuf_drawable_LDADD = $(LDADDS) $(GNOME_LIBS)
58
59 GDK_PIXBUF_LIBS = $(LIBART_LIBS) $(GLIB_LIBS) $(GTK_LIBS)
60
61 #
62 # The GdkPixBuf library
63 #
64 if INSIDE_GNOME_LIBS
65 CANVAS_SOURCEFILES=
66 CANVAS_HEADERFILES=
67 else
68 CANVAS_SOURCEFILES=     gnome-canvas-pixbuf.c
69 CANVAS_HEADERFILES=     gnome-canvas-pixbuf.h
70 endif
71
72 libgdk_pixbufincludedir = $(includedir)/gdk-pixbuf
73
74 libgdk_pixbuf_la_SOURCES =      \
75         gdk-pixbuf.c            \
76         gdk-pixbuf-data.c       \
77         gdk-pixbuf-io.c         \
78         gdk-pixbuf-loader.c     \
79         gdk-pixbuf-render.c     \
80         gdk-pixbuf-util.c       \
81         $(CANVAS_SOURCEFILES)
82
83 #       gdk-pixbuf-drawable.c   \
84
85 libgdk_pixbuf_la_LDFLAGS = -version-info 1:0:0
86
87 libgdk_pixbufinclude_HEADERS =  \
88         gdk-pixbuf.h            \
89         gdk-pixbuf-loader.h     \
90         $(CANVAS_HEADERFILES)
91
92 #       gdk-pixbuf-drawable.h   \
93
94 noinst_HEADERS = \
95         gdk-pixbuf-io.h
96
97 #
98 # The PNG plugin.
99 #
100 libpixbuf_png_la_SOURCES = io-png.c
101 libpixbuf_png_la_LDFLAGS = -avoid-version -module
102 libpixbuf_png_la_LIBADD = $(LIBPNG)
103
104 #
105 # The JPEG loader
106 #
107 libpixbuf_jpeg_la_SOURCES = io-jpeg.c
108 libpixbuf_jpeg_la_LDFLAGS = -avoid-version -module
109 libpixbuf_jpeg_la_LIBADD = $(LIBJPEG)
110
111 #
112 # The XPM loader
113 #
114 libpixbuf_xpm_la_SOURCES = io-xpm.c
115 libpixbuf_xpm_la_LDFLAGS = -avoid-version -module
116 libpixbuf_xpm_la_LIBADD =
117
118 #
119 # The GIF loader
120 #
121 libpixbuf_gif_la_SOURCES = io-gif.c
122 libpixbuf_gif_la_LDFLAGS = -avoid-version -module
123 libpixbuf_gif_la_LIBADD =
124
125 #
126 # The ICO loader
127 #
128 libpixbuf_ico_la_SOURCES = io-ico.c
129 libpixbuf_ico_la_LDFLAGS = -avoid-version -module
130 libpixbuf_ico_la_LIBADD =
131
132 #
133 # The RAS loader
134 #
135 libpixbuf_ras_la_SOURCES = io-ras.c
136 libpixbuf_ras_la_LDFLAGS = -avoid-version -module
137 libpixbuf_ras_la_LIBADD =
138
139 #
140 # The TIFF loader
141 #
142 libpixbuf_tiff_la_SOURCES = io-tiff.c
143 libpixbuf_tiff_la_LDFLAGS = -avoid-version -module
144 libpixbuf_tiff_la_LIBADD =
145
146 #
147 # The PNM loader
148 #
149 libpixbuf_pnm_la_SOURCES = io-pnm.c
150 libpixbuf_pnm_la_LDFLAGS = -avoid-version -module
151 libpixbuf_pnm_la_LIBADD =
152
153 #
154 # The BMP loader
155 #
156 libpixbuf_bmp_la_SOURCES = io-bmp.c
157 libpixbuf_bmp_la_LDFLAGS = -avoid-version -module
158 libpixbuf_bmp_la_LIBADD =