]> Pileus Git - ~andy/gtk/blob - demos/Makefile.am
demos: remove testpixbuf-drawable
[~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         testanimation           \
26         testpixbuf-color        \
27         testpixbuf-save         \
28         testpixbuf-scale        \
29         pixbuf-demo
30
31 # Need to build test-inline-pixbufs.h for testpixbuf
32 noinst_PROGRAMS += testpixbuf
33 BUILT_SOURCES = test-inline-pixbufs.h
34
35 test-inline-pixbufs.h: apple-red.png gnome-foot.png
36         $(GDK_PIXBUF_CSOURCE) --raw --build-list        \
37                 apple_red  $(srcdir)/apple-red.png      \
38                 gnome_foot $(srcdir)/gnome-foot.png     \
39         > test-inline-pixbufs.h                         \
40         || (rm -f test-inline-pixbufs.h && false)
41
42 testpixbuf_DEPENDENCIES = $(DEPS)
43 testpixbuf_save_DEPENDENCIES = $(DEPS)
44 testpixbuf_color_DEPENDENCIES = $(DEPS)
45 testpixbuf_scale_DEPENDENCIES = $(DEPS)
46 testanimation_DEPENDENCIES = $(DEPS)
47 pixbuf_demo_DEPENDENCIES = $(DEPS)
48
49 testpixbuf_LDADD = $(LDADDS)
50 testpixbuf_save_LDADD = $(LDADDS)
51 testpixbuf_color_LDADD = $(LDADDS)
52 testpixbuf_scale_LDADD = $(LDADDS)
53 testanimation_LDADD = $(LDADDS)
54 pixbuf_demo_LDADD = $(LDADDS)
55
56 testpixbuf_SOURCES = testpixbuf.c pixbuf-init.c
57 testpixbuf_save_SOURCES = testpixbuf-save.c
58 testpixbuf_color_SOURCES = testpixbuf-color.c
59 testpixbuf_scale_SOURCES = testpixbuf-scale.c pixbuf-init.c
60 testanimation_SOURCES = testanimation.c pixbuf-init.c
61 pixbuf_demo_SOURCES = pixbuf-demo.c pixbuf-init.c
62
63 EXTRA_DIST +=                   \
64         apple-red.png           \
65         background.jpg          \
66         gnome-applets.png       \
67         gnome-calendar.png      \
68         gnome-foot.png          \
69         gnome-gimp.png          \
70         gnome-gmush.png         \
71         gnome-gsame.png         \
72         gnu-keys.png
73
74 DISTCLEANFILES = test-inline-pixbufs.h
75
76 -include $(top_srcdir)/git.mk