Makefile.am 4.18 KB
Newer Older
1 2
include $(top_srcdir)/Makefile.decl

3
SUBDIRS =
4

5
AM_CPPFLAGS = \
6 7 8
	-I$(top_srcdir)			\
	-I$(top_builddir)/gdk		\
	-I$(top_srcdir)/gdk		\
9
	-DSRCDIR=\""$(abs_srcdir)"\"	\
10 11 12 13
	$(GTK_DEBUG_FLAGS)		\
	$(GTK_DEP_CFLAGS)

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

progs_ldadd = \
Matthias Clasen's avatar
Matthias Clasen committed
17 18
	$(top_builddir)/gtk/libgtk-3.la	\
	$(top_builddir)/gdk/libgdk-3.la	\
Benjamin Otte's avatar
Benjamin Otte committed
19
	$(GTK_DEP_LIBS)
20

21
noinst_PROGRAMS = $(TEST_PROGS)
22 23


24 25 26 27
TEST_PROGS			+= testing
testing_SOURCES			 = testing.c
testing_LDADD			 = $(progs_ldadd)

28
TEST_PROGS			+= treemodel
29 30 31 32 33 34 35 36 37 38
treemodel_SOURCES		 = \
				treemodel.h \
				treemodel.c \
				liststore.c \
				treestore.c \
				filtermodel.c \
				sortmodel.c \
				modelrefcount.c \
				gtktreemodelrefcount.h \
				gtktreemodelrefcount.c
39
treemodel_LDADD			 = $(progs_ldadd)
40

41 42 43 44
TEST_PROGS			+= treeview
treeview_SOURCES		 = treeview.c
treeview_LDADD			 = $(progs_ldadd)

Tadej Borovšak's avatar
Tadej Borovšak committed
45
TEST_PROGS			+= treeview-scrolling
46
treeview_scrolling_SOURCES	 = treeview-scrolling.c
Matthias Clasen's avatar
Matthias Clasen committed
47
treeview_scrolling_LDADD	 = $(progs_ldadd) -lm
48 49 50 51 52 53 54 55 56

TEST_PROGS			+= recentmanager
recentmanager_SOURCES 		 = recentmanager.c
recentmanager_LDADD   		 = $(progs_ldadd)

TEST_PROGS			+= floating
floating_SOURCES		 = floating.c
floating_LDADD			 = $(progs_ldadd)

57 58 59
TEST_PROGS			+= accel
accel_SOURCES			 = accel.c
accel_LDADD			 = $(progs_ldadd)
60

61
#TEST_PROGS			+= object
Benjamin Otte's avatar
Benjamin Otte committed
62
#object_SOURCES			 = object.c
Matthias Clasen's avatar
Matthias Clasen committed
63
#object_LDADD			 = $(progs_ldadd)
64

Matthias Clasen's avatar
Matthias Clasen committed
65 66 67 68
# this doesn't work in make distcheck, since running
# on a naked X server creates slightly different event
# sequences than running on a normal desktop
# TEST_PROGS			+= crossingevents
Kristian Høgsberg's avatar
Kristian Høgsberg committed
69 70
#crossingevents_SOURCES		 = crossingevents.c
#crossingevents_LDADD		 = $(progs_ldadd)
71

72 73 74
TEST_PROGS			+= filechooser
filechooser_SOURCES		 = filechooser.c
filechooser_LDADD		 = $(progs_ldadd)
75

76 77 78 79
TEST_PROGS			+= builder
builder_SOURCES			 = builder.c
builder_LDADD			 = $(progs_ldadd)
builder_LDFLAGS			 = -export-dynamic
80

81
if OS_UNIX
82
#TEST_PROGS			+= defaultvalue
Benjamin Otte's avatar
Benjamin Otte committed
83
#defaultvalue_SOURCES		 = defaultvalue.c
Kristian Høgsberg's avatar
Kristian Høgsberg committed
84
#defaultvalue_LDADD 		 = $(progs_ldadd)
85
endif
86

87
TEST_PROGS			+= textbuffer
Benjamin Otte's avatar
Benjamin Otte committed
88
textbuffer_SOURCES		 = textbuffer.c
89
textbuffer_LDADD		 = $(progs_ldadd)
90

91 92 93 94
TEST_PROGS			+= textiter
textiter_SOURCES		 = textiter.c
textiter_LDADD			 = $(progs_ldadd)

Paolo Borelli's avatar
Paolo Borelli committed
95 96
TEST_PROGS			+= expander
expander_SOURCES		 = expander.c
97
expander_LDADD			 = $(progs_ldadd)
Paolo Borelli's avatar
Paolo Borelli committed
98

99 100 101 102
TEST_PROGS			+= action
action_SOURCES			 = action.c
action_LDADD			 = $(progs_ldadd)

Matthias Clasen's avatar
Matthias Clasen committed
103 104 105 106
TEST_PROGS			+= stylecontext
stylecontext_SOURCES		 = stylecontext.c
stylecontext_LDADD		 = $(progs_ldadd)

107 108 109
TEST_PROGS			+= papersize
papersize_SOURCES		 = papersize.c
papersize_LDADD			 = $(progs_ldadd)
110

111 112 113 114
TEST_PROGS			+= cellarea
cellarea_SOURCES		 = cellarea.c
cellarea_LDADD			 = $(progs_ldadd)

Matthias Clasen's avatar
Matthias Clasen committed
115 116 117 118
TEST_PROGS			+= treepath
treepath_SOURCES		 = treepath.c
treepath_LDADD			 = $(progs_ldadd)

119 120 121 122
TEST_PROGS			+= accessible
accessible_SOURCES		 = accessible.c
accessible_LDADD		 = $(progs_ldadd)

Matthias Clasen's avatar
Matthias Clasen committed
123 124 125 126
TEST_PROGS			+= entry
entry_SOURCES			 = entry.c
entry_LDADD			 = $(progs_ldadd)

127 128 129 130
TEST_PROGS			+= grid
grid_SOURCES			 = grid.c
grid_LDADD			 = $(progs_ldadd)

131 132 133 134 135
TEST_PROGS			+= rbtree
rbtree_CFLAGS			 = -DGTK_COMPILATION -UG_ENABLE_DEBUG
rbtree_SOURCES			 = rbtree.c ../gtkrbtree.h ../gtkrbtree.c
rbtree_LDADD			 = $(GTK_DEP_LIBS)

136 137
TEST_PROGS			+= bitmask
bitmask_CFLAGS			 = -DGTK_COMPILATION -UG_ENABLE_DEBUG
138 139 140 141
bitmask_SOURCES			 = bitmask.c \
				   ../gtkbitmaskprivate.h \
				   ../gtkallocatedbitmaskprivate.h \
				   ../gtkallocatedbitmask.c
142 143
bitmask_LDADD			 = $(GTK_DEP_LIBS)

144 145 146 147
TEST_PROGS			+= regression-tests
regression_tests_SOURCES	 = regression-tests.c
regression_tests_LDADD		 = $(progs_ldadd)

Matthias Clasen's avatar
Matthias Clasen committed
148 149 150 151 152 153 154 155 156 157 158
TEST_PROGS			+= keyhash
keyhash_SOURCES			 = keyhash.c \
				   ../gtkkeyhash.c ../gtkkeyhash.h \
				   ../gtkprivate.c ../gtkprivate.h
keyhash_LDADD			 = $(progs_ldadd)
keyhash_CFLAGS			 = -DGTK_COMPILATION \
				   -DGTK_LIBDIR=\"$(libdir)\" \
				   -DGTK_DATADIR=\"$(datadir)\" \
				   -DGTK_DATA_PREFIX=\"$(prefix)\" \
				   -DGTK_SYSCONFDIR=\"$(sysconfdir)\"

159 160 161 162
TEST_PROGS			+= gtkmenu
gtkmenu_SOURCES			 = gtkmenu.c
gtkmenu_LDADD			 = $(progs_ldadd)

163 164 165 166 167

TEST_PROGS			+= objects-finalize
objects_finalize_SOURCES         = objects-finalize.c
objects_finalize_LDADD	         = $(progs_ldadd)

Matthias Clasen's avatar
Matthias Clasen committed
168
EXTRA_DIST +=				\
169 170 171
	file-chooser-test-dir/empty     \
	file-chooser-test-dir/text.txt

172
-include $(top_srcdir)/git.mk