summaryrefslogtreecommitdiff
path: root/pango/Makefile.am
blob: fb423bfdd331951c0a1aeca2c30fac6189b57623 (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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
## Process this file with automake to create Makefile.in.

if HAVE_FRIBIDI
else
SUBDIRS = mini-fribidi
endif

INCLUDES = 					\
	-DSYSCONFDIR=\"$(sysconfdir)\" 		\
	-DLIBDIR=\"$(libdir)\" 			\
	$(X_CFLAGS)				\
	-I$(top_srcdir)

if HAVE_XFT
XFT_HFILES=pangoxft.h
XFT_BUILD_LIBS=libpangoxft.la
else
XFT_HFILES=
XFT_BUILD_LIBS=
endif

lib_LTLIBRARIES = libpango.la libpangox.la $(XFT_BUILD_LIBS)

bin_PROGRAMS = pango-querymodules

pango_built_headers= pango-enum-types.h
pango_built_cfiles= pango-enum-types.c

BUILT_SOURCES=$(pango_built_headers) $(pango_built_cfiles)

libpango_la_SOURCES = 	   \
	break.c 	   \
	fonts.c 	   \
	glyphstring.c 	   \
	mapping.c 	   \
	modules.c 	   \
	pango-attributes.c \
	pango-context.c    \
	pango-coverage.c   \
	pango-fontmap.c	   \
	pango-intset.c	   \
	pango-intset.h	   \
	pango-item.c	   \
	pango-layout.c	   \
	pango-markup.c	   \
	pango-tabs.c	   \
	pango-utils.c	   \
	reorder-items.c    \
	shape.c	           \
	$(pango_built_cfiles)

libpangox_la_SOURCES = 	   \
	modules.h 	   \
	module-defs.c	   \
	pangox.c	   \
	pangox-private.h   \
	pangox-fontcache.c \
	pangox-fontmap.c   \
	pango-indic.c

# We use the -release flag for now until the API settles
# down at which point we'll either use the GTK+ versioning
# scheme or the standard libtool scheme.
#
libpango_la_LDFLAGS = -release $(VERSION) $(GLIB_LIBS)
if HAVE_FRIBIDI
else
libpango_la_LIBADD = mini-fribidi/libmini-fribidi.la
endif

libpangox_la_LDFLAGS = -release $(VERSION)
libpangox_la_LIBADD = $(INCLUDED_MODULES) $(X_LIBS)

libpangoxft_la_SOURCES =   	\
	pangoxft-font.c		\
	pangoxft-fontmap.c

libpangoxft_la_LIBADD = $(INCLUDED_MODULES) $(XFT_LIBS)
libpangoxft_la_LDFLAGS = -release $(VERSION)

pangoincludedir=$(includedir)/pango-1.0/pango

pango_headers=		   \
	pango.h		   \
	pango-attributes.h \
	pango-break.h	   \
	pango-context.h	   \
	pango-coverage.h   \
	pango-engine.h	   \
	pango-font.h       \
	pango-fontmap.h	   \
	pango-glyph.h	   \
	pango-indic.h	   \
	pango-item.h	   \
	pango-layout.h	   \
	pango-modules.h	   \
	pango-tabs.h	   \
	pango-types.h	   \
	pango-utils.h	   \
	pangox.h	   \
	$(XFT_HFILES)

pangoinclude_HEADERS = 	   \
	$(pango_headers)   \
	$(pango_built_headers)

pango-enum-types.h: @REBUILD@ $(pango_headers) makeenums.pl
	$(PERL)	./makeenums.pl include $(pango_headers) > pango-enum-types.h

pango-enum-types.c: @REBUILD@ $(pango_headers) makeenums.pl
	$(PERL) ./makeenums.pl cfile $(pango_headers) > pango-enum-types.c

#
# As a temporary hack, we pull in libpangox here so that we can link
#
pango_querymodules_SOURCES = \
	querymodules.c
if HAVE_XFT
pango_querymodules_LDADD = libpangox.la libpangoxft.la libpango.la $(GLIB_LIBS) $(FRIBIDI_LIBS) $(XFT_LIBS)
else
pango_querymodules_LDADD = libpangox.la libpango.la $(GLIB_LIBS) $(FRIBIDI_LIBS) $(X_LIBS)
endif

EXTRA_DIST =			\
	$(pango_built_headers)	\
	makeenums.pl		\
	module-defs.c.win32	\
	pango.def		\
	pangowin32.def		\
	pangowin32.h		\
	pangowin32.c		\
	pangowin32-private.h	\
	pangowin32-fontcache.c	\
	pangowin32-fontmap.c	\
	pangoft2.def		\
	pangoft2.h		\
	pangoft2.c		\
	pangoft2-private.h	\
	pangoft2-fontcache.c	\
	pangoft2-fontmap.c	\
	makefile.mingw		\
	makefile.mingw.in	\
	pango.rc		\
	pango.rc.in		\
	pangoft2.rc		\
	pangoft2.rc.in		\
	pangowin32.rc		\
	pangowin32.rc.in