summaryrefslogtreecommitdiff
path: root/examples/Makefile.am
blob: 0d2dc42d199f0af46ee9ff8cf0e767e4050b326f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
## Process this file with automake to create Makefile.in.

TEST_TEXTS =			\
	test-arabic.txt	\
	test-devanagari.txt	\
	test-ipa.txt		\
	test-syriac.txt	\
	test-tamil.txt		\
	test-tibetan.txt	\
	HELLO.utf8		\
	GLASS.utf8

EXTRA_DIST =			\
	viewer-win32.c		\
	makefile.msc		\
	$(TEST_TEXTS)

CLEANFILES = pangorc

INCLUDES =				\
	-DPANGO_DISABLE_DEPRECATED	\
	-I$(top_srcdir)			\
	$(PANGO_DEBUG_FLAGS)		\
	$(GLIB_CFLAGS)			\
	$(XFT_CFLAGS)			\
	$(CAIRO_CFLAGS)			\
	$(FREETYPE_CFLAGS)		\
	$(X_CFLAGS)

noinst_PROGRAMS =

###################################################
if HAVE_FREETYPE
noinst_PROGRAMS += pangoft2-view
endif

pangoft2_view_SOURCES =			\
	pangoft2topgm.c				\
	renderdemo.h				\
	renderdemo.c
pangoft2_view_LDADD =					\
	../pango/libpango-$(PANGO_API_VERSION).la	\
	../pango/libpangoft2-$(PANGO_API_VERSION).la	\
	$(GLIB_LIBS)					\
	$(FREETYPE_LIBS)
###################################################

###################################################
if HAVE_XFT
noinst_PROGRAMS += pangoxft-view
endif

pangoxft_view_SOURCES =				\
	renderdemo.h				\
	renderdemo.c				\
	viewer-x.h				\
	viewer-x.c				\
	xftview.c
pangoxft_view_LDADD =					\
	../pango/libpango-$(PANGO_API_VERSION).la	\
	../pango/libpangoft2-$(PANGO_API_VERSION).la	\
	../pango/libpangoxft-$(PANGO_API_VERSION).la	\
	$(GLIB_LIBS)					\
	$(XFT_LIBS)					\
	$(X_LIBS)
###################################################

###################################################
if HAVE_CAIRO
if HAVE_X
if HAVE_FREETYPE
noinst_PROGRAMS += pangocairo-view
endif
endif
endif

pangocairo_view_SOURCES =			\
	renderdemo.h				\
	renderdemo.c				\
	viewer-x.h				\
	viewer-x.c				\
	cairoview.c
pangocairo_view_LDADD =					\
	../pango/libpango-$(PANGO_API_VERSION).la	\
	../pango/libpangoft2-$(PANGO_API_VERSION).la	\
	../pango/libpangocairo-$(PANGO_API_VERSION).la	\
	$(GLIB_LIBS)					\
	$(CAIRO_LIBS)					\
	$(X_LIBS)
###################################################

###################################################
if HAVE_CAIRO_PNG
noinst_PROGRAMS += cairosimple
endif

cairosimple_SOURCES =					\
	cairosimple.c
cairosimple_LDADD =					\
	../pango/libpango-$(PANGO_API_VERSION).la	\
	../pango/libpangocairo-$(PANGO_API_VERSION).la	\
	$(GLIB_LIBS)					\
	$(CAIRO_LIBS)
###################################################

pangorc: $(srcdir)/../modules/pangorc
	cp $< $@

$(noinst_PROGRAMS): pangorc