Makefile.am 2.08 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
	panes.c					\
34
	pickers.c				\
35
	pixbufs.c				\
Matthias Clasen's avatar
Matthias Clasen committed
36
	printing.c				\
37
	rotated_text.c				\
38
	search_entry.c				\
39
	sizegroup.c				\
40
	spinner.c				\
41 42
	stock_browser.c				\
	textview.c				\
43
	textscroll.c				\
44
	toolpalette.c				\
Matthias Clasen's avatar
Matthias Clasen committed
45
	tree_store.c				\
46
	ui_manager.c
47

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

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

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

66
bin_PROGRAMS = gtk3-demo
67 68 69

BUILT_SOURCES = demos.h

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

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

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

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

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

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

DISTCLEANFILES = demos.h
105 106

-include $(top_srcdir)/git.mk