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

4
AM_CPPFLAGS =				\
5 6 7 8 9 10
	-I$(top_srcdir)			\
	-I$(top_builddir)/gdk		\
	-I$(top_srcdir)/gdk		\
	-DGDK_DISABLE_DEPRECATED	\
	-DGTK_DISABLE_DEPRECATED	\
	$(GTK_DEBUG_FLAGS)		\
11 12
	$(GTK_DEP_CFLAGS)

13
DEPS = \
14
	$(top_builddir)/gtk/libgtk-3.la
15

16
LDADDS = \
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 22 23 24 25 26 27

noinst_PROGRAMS	= 	\
	testperf

testperf_DEPENDENCIES = $(TEST_DEPS)

testperf_LDADD = $(LDADDS)

28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
testperf_SOURCES =		\
	appwindow.c		\
	gtkwidgetprofiler.c	\
	gtkwidgetprofiler.h	\
	main.c			\
	textview.c		\
	treeview.c		\
	typebuiltins.c		\
	typebuiltins.h		\
	widgets.h

BUILT_SOURCES =			\
	typebuiltins.c		\
	typebuiltins.h

stamp_files =			\
	stamp-typebuiltins.h

headers_with_enums = 		\
	gtkwidgetprofiler.h

MAINTAINERCLEANFILES = $(BUILT_SOURCES) $(stamp_files)


typebuiltins.h: stamp-typebuiltins.h
	@true
54 55
stamp-typebuiltins.h: @REBUILD@ $(headers_with_enums) typebuiltins.h.template
	( cd $(srcdir) && $(GLIB_MKENUMS) --template typebuiltins.h.template \
56 57 58 59
		$(headers_with_enums) ) >> xgen-gtbh \
	&& (cmp -s xgen-gtbh typebuiltins.h || cp xgen-gtbh typebuiltins.h ) \
	&& rm -f xgen-gtbh \
	&& echo timestamp > $(@F)
60 61
typebuiltins.c: @REBUILD@ $(headers_with_enums) typebuiltins.c.template
	( cd $(srcdir) && $(GLIB_MKENUMS) --template typebuiltins.c.template \
62 63 64 65 66
		$(headers_with_enums) ) > xgen-gtbc \
	&& cp xgen-gtbc typebuiltins.c  \
	&& rm -f xgen-gtbc


67
EXTRA_DIST += 		\
68
	README		\
69 70
	typebuiltins.c.template	\
	typebuiltins.h.template	\
71
	$(BUILT_SOURCES)
Matthias Clasen's avatar
Matthias Clasen committed
72 73 74 75 76 77 78

# if srcdir!=builddir, clean out maintainer-clean files from builddir
# this allows dist to pass.
distclean-local:
	if test $(srcdir) != .; then \
	  rm -f $(MAINTAINERCLEANFILES); \
	fi
79 80

-include $(top_srcdir)/git.mk