Makefile.am 2.12 KB
Newer Older
Owen Taylor's avatar
Owen Taylor committed
1
## Makefile.am for gtk+/demos
2
include $(top_srcdir)/Makefile.decl
Owen Taylor's avatar
Owen Taylor committed
3

4
SUBDIRS = gtk-demo
5

6 7 8 9 10 11
INCLUDES = 				\
	-I$(top_srcdir) 		\
	-I$(top_builddir)/gdk		\
	-DGDK_DISABLE_DEPRECATED	\
	-DGTK_DISABLE_DEPRECATED	\
	$(GTK_DEBUG_FLAGS)		\
12
	$(GTK_DEP_CFLAGS)
Owen Taylor's avatar
Owen Taylor committed
13

14 15 16
DEPS = 									\
	$(top_builddir)/gdk/$(gdktargetlib) 				\
	$(top_builddir)/gtk/$(gtktargetlib)
Owen Taylor's avatar
Owen Taylor committed
17

18 19
LDADDS = 								\
	$(top_builddir)/gdk/$(gdktargetlib)        			\
Benjamin Otte's avatar
Benjamin Otte committed
20 21 22
	$(top_builddir)/gtk/$(gtktargetlib)				\
	$(GTK_DEP_LIBS)							\
	$(MATH_LIB)
Owen Taylor's avatar
Owen Taylor committed
23 24 25 26

noinst_PROGRAMS = 		\
	testpixbuf-drawable 	\
	testanimation 		\
27
	testpixbuf-color	\
28
	testpixbuf-save		\
Owen Taylor's avatar
Owen Taylor committed
29 30 31
	testpixbuf-scale 	\
	pixbuf-demo

32 33 34
# Need to build test-inline-pixbufs.h for testpixbuf
noinst_PROGRAMS += testpixbuf
BUILT_SOURCES = test-inline-pixbufs.h
35 36 37

test-inline-pixbufs.h: apple-red.png gnome-foot.png
	$(GDK_PIXBUF_CSOURCE) --raw --build-list	\
38 39 40 41
	        apple_red  $(srcdir)/apple-red.png	\
                gnome_foot $(srcdir)/gnome-foot.png	\
        > test-inline-pixbufs.h				\
	|| (rm -f test-inline-pixbufs.h && false)
Havoc Pennington's avatar
Havoc Pennington committed
42

Owen Taylor's avatar
Owen Taylor committed
43 44
testpixbuf_DEPENDENCIES = $(DEPS)
testpixbuf_drawable_DEPENDENCIES = $(DEPS)
45
testpixbuf_save_DEPENDENCIES = $(DEPS)
46
testpixbuf_color_DEPENDENCIES = $(DEPS)
Owen Taylor's avatar
Owen Taylor committed
47 48 49 50
testpixbuf_scale_DEPENDENCIES = $(DEPS)
testanimation_DEPENDENCIES = $(DEPS)
pixbuf_demo_DEPENDENCIES = $(DEPS)

51
testpixbuf_LDADD = $(LDADDS)
Owen Taylor's avatar
Owen Taylor committed
52
testpixbuf_drawable_LDADD = $(LDADDS)
53
testpixbuf_save_LDADD = $(LDADDS)
54
testpixbuf_color_LDADD = $(LDADDS)
Owen Taylor's avatar
Owen Taylor committed
55
testpixbuf_scale_LDADD = $(LDADDS)
56 57
testanimation_LDADD = $(LDADDS)
pixbuf_demo_LDADD = $(LDADDS)
Owen Taylor's avatar
Owen Taylor committed
58 59 60

testpixbuf_SOURCES = testpixbuf.c pixbuf-init.c
testpixbuf_drawable_SOURCES = testpixbuf-drawable.c pixbuf-init.c
61
testpixbuf_save_SOURCES = testpixbuf-save.c
62
testpixbuf_color_SOURCES = testpixbuf-color.c
Owen Taylor's avatar
Owen Taylor committed
63 64 65
testpixbuf_scale_SOURCES = testpixbuf-scale.c pixbuf-init.c
testanimation_SOURCES = testanimation.c pixbuf-init.c
pixbuf_demo_SOURCES = pixbuf-demo.c pixbuf-init.c
Owen Taylor's avatar
Owen Taylor committed
66

67
EXTRA_DIST +=			\
Owen Taylor's avatar
Owen Taylor committed
68 69 70 71 72 73 74 75 76
	apple-red.png		\
	background.jpg		\
	gnome-applets.png	\
	gnome-calendar.png	\
	gnome-foot.png		\
	gnome-gimp.png		\
	gnome-gmush.png		\
	gnome-gsame.png		\
	gnu-keys.png
77 78

DISTCLEANFILES = test-inline-pixbufs.h
79 80

-include $(top_srcdir)/git.mk