summaryrefslogtreecommitdiff
path: root/examples/Makefile.am
blob: dce8b604c3224450c28cd35cf508a2d02307cbcc (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
110
111
112
113
114
115
116
117
## Process this file with automake to create Makefile.in.

aliasdir = $(sysconfdir)/pango

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

###################################################

CLEANFILES = pango.modules
###################################################

noinst_PROGRAMS =

###################################################
if HAVE_FREETYPE
noinst_PROGRAMS += pangoft2topgm
endif

pangoft2topgm_SOURCES =				\
	pangoft2topgm.c				\
	renderdemo.c				\
	renderdemo.h				\
	argcontext.c				\
	argcontext.h
pangoft2topgm_LDADD =					\
	../pango/libpango-$(PANGO_API_VERSION).la	\
	../pango/libpangoft2-$(PANGO_API_VERSION).la	\
	$(FREETYPE_LIBS)
###################################################

###################################################
if HAVE_XFT
noinst_PROGRAMS += pango-xftview
endif

pango_xftview_SOURCES =				\
	xftview.c				\
	renderdemo.c				\
	argcontext.c				\
	argcontext.h
pango_xftview_LDADD =					\
	../pango/libpango-$(PANGO_API_VERSION).la	\
	../pango/libpangoft2-$(PANGO_API_VERSION).la	\
	../pango/libpangoxft-$(PANGO_API_VERSION).la	\
	 $(XFT_LIBS)
###################################################

###################################################
if HAVE_CAIRO
if HAVE_X
noinst_PROGRAMS += pango-cairoview
endif
endif

pango_cairoview_SOURCES =			\
	cairoview.c				\
	renderdemo.c				\
	argcontext.c				\
	argcontext.h
pango_cairoview_LDADD =					\
	../pango/libpango-$(PANGO_API_VERSION).la	\
	../pango/libpangoft2-$(PANGO_API_VERSION).la	\
	../pango/libpangocairo-$(PANGO_API_VERSION).la	\
	 $(CAIRO_LIBS)					\
	 $(X_LIBS)
###################################################

###################################################
if HAVE_CAIRO
noinst_PROGRAMS += cairosimple
endif

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

if CROSS_COMPILING
else
all-local: pango.modules
endif

pango.modules: $(top_builddir)/pango/pango-querymodules
	if find ../modules -name '*.so' | grep 'so' > /dev/null ; then \
          echo "Writing a pango.modules file to use when running examples before installing Pango."; \
	  (cd ../modules && \
           $(top_builddir)/pango/pango-querymodules `find . -name '*.la' | grep -v \.libs` > ../examples/pango.modules ) ;\
	else \
          echo "No dynamic modules found; will use only static modules for uninstalled example programs."; \
	  touch pango.modules; \
	fi

EXTRA_DIST=			\
	viewer-win32.c		\
	pangoft2topgm.c         \
	makefile.msc		\
	HELLO.utf8		\
	dev-example.utf		\
	muru.utf		\
	syriac.utf		\
	pangorc			\
	pangox.aliases

if HAVE_X
alias_DATA = pangox.aliases
endif