Makefile.am 2.1 KB
Newer Older
1
## Makefile.am for gtk+/demos
2
include $(top_srcdir)/Makefile.decl
3

4
democodedir=$(datadir)/gtk-$(GTK_API_VERSION)/demo
5

Matthias Clasen's avatar
Matthias Clasen committed
6
## These should be in the order you want them to appear in the
7
## demo app, which means alphabetized by demo title, not filename
8 9
demos =						\
	appwindow.c				\
10
	assistant.c				\
Johan Dahlin's avatar
Johan Dahlin committed
11
	builder.c				\
12 13
	button_box.c				\
	changedisplay.c				\
Anders Carlsson's avatar
Anders Carlsson committed
14
	clipboard.c				\
15
	colorsel.c				\
16
	combobox.c				\
17 18 19
	dialog.c				\
	drawingarea.c				\
	editable_cells.c			\
20
	entry_buffer.c				\
Matthias Clasen's avatar
Matthias Clasen committed
21
	entry_completion.c			\
Matthias Clasen's avatar
Matthias Clasen committed
22
	expander.c  				\
23
	hypertext.c				\
24
	iconview.c				\
Matthias Clasen's avatar
Matthias Clasen committed
25
	iconview_edit.c				\
26
	images.c				\
27 28
	infobar.c				\
	links.c					\
29 30
	list_store.c				\
	menus.c					\
Matthias Clasen's avatar
Matthias Clasen committed
31
	offscreen_window.c			\
Matthias Clasen's avatar
Matthias Clasen committed
32
	offscreen_window2.c			\
33
	overlay.c				\
34
	panes.c					\
35
	pickers.c				\
36
	pixbufs.c				\
Matthias Clasen's avatar
Matthias Clasen committed
37
	printing.c				\
38
	rotated_text.c				\
39
	search_entry.c				\
40
	sizegroup.c				\
41
	spinner.c				\
42 43
	stock_browser.c				\
	textview.c				\
44
	textscroll.c				\
45
	toolpalette.c				\
Matthias Clasen's avatar
Matthias Clasen committed
46
	tree_store.c				\
47
	ui_manager.c
48

49
AM_CPPFLAGS = \
50 51 52 53 54 55
	-DDEMOCODEDIR="\"$(democodedir)\""	\
	-I$(top_srcdir) 			\
	-I$(top_builddir)/gdk			\
	-DGDK_DISABLE_DEPRECATED		\
	-DGTK_DISABLE_DEPRECATED 		\
	$(GTK_DEBUG_FLAGS)			\
56
	$(GTK_DEP_CFLAGS)
57 58

DEPS = \
Matthias Clasen's avatar
Matthias Clasen committed
59
	$(top_builddir)/gtk/libgtk-3.la
60

61
LDADDS = \
Matthias Clasen's avatar
Matthias Clasen committed
62 63
	$(top_builddir)/gtk/libgtk-3.la	\
	$(top_builddir)/gdk/libgdk-3.la	\
Matthias Clasen's avatar
Matthias Clasen committed
64
	$(GTK_DEP_LIBS)				\
65
	-lm
66

67
bin_PROGRAMS = gtk3-demo
68 69 70

BUILT_SOURCES = demos.h

71
EXTRA_DIST += 		\
Johan Dahlin's avatar
Johan Dahlin committed
72 73
	$(IMAGEFILES)	\
	demo.ui
74

75 76
demos.h: @REBUILD@ $(demos) geninclude.pl
	(here=`pwd` ; cd $(srcdir) && $(PERL) $$here/geninclude.pl $(demos)) > demos.h
77

78
gtk3_demo_SOURCES = 		\
79
	$(demos)		\
80
	demo-common.h		\
81 82 83
	main.c			\
	demos.h

84 85 86
gtk3_demo_DEPENDENCIES = $(DEPS)
gtk3_demo_LDADD = $(LDADDS)
gtk3_demo_LDFLAGS = -export-dynamic
87

Havoc Pennington's avatar
Havoc Pennington committed
88 89
IMAGEFILES=	alphatest.png		\
	        apple-red.png		\
90
		background.jpg		\
Havoc Pennington's avatar
Havoc Pennington committed
91
		floppybuddy.gif		\
92 93
		gnome-applets.png	\
		gnome-calendar.png	\
94 95
		gnome-fs-directory.png	\
		gnome-fs-regular.png	\
96 97 98 99 100
		gnome-foot.png		\
		gnome-gimp.png		\
		gnome-gmush.png		\
		gnome-gsame.png		\
		gnu-keys.png		\
101
		gtk-logo-rgb.gif
102

Johan Dahlin's avatar
Johan Dahlin committed
103
democode_DATA = $(demos) $(IMAGEFILES) demo.ui
104 105

DISTCLEANFILES = demos.h
106 107

-include $(top_srcdir)/git.mk