summaryrefslogtreecommitdiff
path: root/examples/Makefile.am
blob: f13b957d1787f54f184b6ba59b809e98a903893d (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
## 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)			\
	$(QT_INCLUDES)			\
	$(GLIB_CFLAGS)			\
	$(FREETYPE_CFLAGS)

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

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

###################################################
if HAVE_FREETYPE
ft2_programs = pangoft2topgm
endif

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

noinst_PROGRAMS =  $(ft2_programs)

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		\
	pangorc			\
	pangox.aliases

if HAVE_X
alias_DATA = pangox.aliases
endif