]> Pileus Git - ~andy/gtk/blob - demos/Makefile.am
Make GTK+ use an external gdk-pixbuf
[~andy/gtk] / demos / Makefile.am
1 ## Makefile.am for gtk+/demos
2 include $(top_srcdir)/Makefile.decl
3
4 SUBDIRS = gtk-demo
5
6 INCLUDES =                              \
7         -I$(top_srcdir)                 \
8         -I$(top_builddir)/gdk           \
9         -DGDK_DISABLE_DEPRECATED        \
10         -DGTK_DISABLE_DEPRECATED        \
11         $(GTK_DEBUG_FLAGS)              \
12         $(GTK_DEP_CFLAGS)
13
14 DEPS =                                                                  \
15         $(top_builddir)/gdk/$(gdktargetlib)                             \
16         $(top_builddir)/gtk/$(gtktargetlib)
17
18 LDADDS =                                                                \
19         $(top_builddir)/gdk/$(gdktargetlib)                             \
20         $(top_builddir)/gtk/$(gtktargetlib)                             \
21         $(GTK_DEP_LIBS)                                                 \
22         $(MATH_LIB)
23
24 noinst_PROGRAMS =               \
25         testpixbuf-drawable     \
26         testanimation           \
27         testpixbuf-color        \
28         testpixbuf-save         \
29         testpixbuf-scale        \
30         pixbuf-demo
31
32 # Need to build test-inline-pixbufs.h for testpixbuf
33 noinst_PROGRAMS += testpixbuf
34 BUILT_SOURCES = test-inline-pixbufs.h
35
36 test-inline-pixbufs.h: apple-red.png gnome-foot.png
37         $(GDK_PIXBUF_CSOURCE) --raw --build-list        \
38                 apple_red  $(srcdir)/apple-red.png      \
39                 gnome_foot $(srcdir)/gnome-foot.png     \
40         > test-inline-pixbufs.h                         \
41         || (rm -f test-inline-pixbufs.h && false)
42
43 testpixbuf_DEPENDENCIES = $(DEPS)
44 testpixbuf_drawable_DEPENDENCIES = $(DEPS)
45 testpixbuf_save_DEPENDENCIES = $(DEPS)
46 testpixbuf_color_DEPENDENCIES = $(DEPS)
47 testpixbuf_scale_DEPENDENCIES = $(DEPS)
48 testanimation_DEPENDENCIES = $(DEPS)
49 pixbuf_demo_DEPENDENCIES = $(DEPS)
50
51 testpixbuf_LDADD = $(LDADDS)
52 testpixbuf_drawable_LDADD = $(LDADDS)
53 testpixbuf_save_LDADD = $(LDADDS)
54 testpixbuf_color_LDADD = $(LDADDS)
55 testpixbuf_scale_LDADD = $(LDADDS)
56 testanimation_LDADD = $(LDADDS)
57 pixbuf_demo_LDADD = $(LDADDS)
58
59 testpixbuf_SOURCES = testpixbuf.c pixbuf-init.c
60 testpixbuf_drawable_SOURCES = testpixbuf-drawable.c pixbuf-init.c
61 testpixbuf_save_SOURCES = testpixbuf-save.c
62 testpixbuf_color_SOURCES = testpixbuf-color.c
63 testpixbuf_scale_SOURCES = testpixbuf-scale.c pixbuf-init.c
64 testanimation_SOURCES = testanimation.c pixbuf-init.c
65 pixbuf_demo_SOURCES = pixbuf-demo.c pixbuf-init.c
66
67 EXTRA_DIST +=                   \
68         apple-red.png           \
69         background.jpg          \
70         gnome-applets.png       \
71         gnome-calendar.png      \
72         gnome-foot.png          \
73         gnome-gimp.png          \
74         gnome-gmush.png         \
75         gnome-gsame.png         \
76         gnu-keys.png
77
78 DISTCLEANFILES = test-inline-pixbufs.h
79
80 -include $(top_srcdir)/git.mk