summaryrefslogtreecommitdiff
path: root/Build/source/libs/graphite2/Makefile.am
blob: 507a1e61580de961d3ca3f531352c9a911a75bdb (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
## Proxy Makefile.am to build graphite2 for TeX Live.
##
##   Copyright (C) 2012, 2013 Peter Breitenlohner <tex-live@tug.org>
##
##   This file is free software; the copyright holder
##   gives unlimited permission to copy and/or distribute it,
##   with or without modifications, as long as this notice is preserved.
##
ACLOCAL_AMFLAGS = -I ../../m4

# Rebuild
.PHONY: rebuild
rebuild: config.force all

## We want to re-distribute the whole original graphite2 source tree.
##
EXTRA_DIST = $(GRAPHITE2_TREE)

## Changes applied to the original source tree
##
EXTRA_DIST += $(GRAPHITE2_TREE)-PATCHES

GRAPHITE2_SRC = $(GRAPHITE2_TREE)/src
GRAPHITE2_INC = $(GRAPHITE2_TREE)/include

# in case of an SVN repository
dist-hook:
	rm -rf `find $(distdir) -name .svn`

SUBDIRS = . include/graphite2

noinst_LIBRARIES = libgraphite2.a

## common
AM_CPPFLAGS = -I$(top_srcdir)/$(GRAPHITE2_SRC) -I$(top_srcdir)/$(GRAPHITE2_INC)
AM_CPPFLAGS += -DGRAPHITE2_STATIC -DGRAPHITE2_CUSTOM_HEADER='<config.h>'
libgraphite2_a_SOURCES =  \
	$(GRAPHITE2_SRC)/Bidi.cpp \
	$(GRAPHITE2_SRC)/CachedFace.cpp \
	$(GRAPHITE2_SRC)/CmapCache.cpp \
	$(GRAPHITE2_SRC)/Code.cpp \
	$(GRAPHITE2_SRC)/Face.cpp \
	$(GRAPHITE2_SRC)/FeatureMap.cpp \
	$(GRAPHITE2_SRC)/Font.cpp \
	$(GRAPHITE2_SRC)/GlyphCache.cpp \
	$(GRAPHITE2_SRC)/GlyphFace.cpp \
	$(GRAPHITE2_SRC)/Justifier.cpp \
	$(GRAPHITE2_SRC)/NameTable.cpp \
	$(GRAPHITE2_SRC)/Pass.cpp \
	$(GRAPHITE2_SRC)/Rule.cpp \
	$(GRAPHITE2_SRC)/Segment.cpp \
	$(GRAPHITE2_SRC)/Silf.cpp \
	$(GRAPHITE2_SRC)/Slot.cpp \
	$(GRAPHITE2_SRC)/Sparse.cpp \
	$(GRAPHITE2_SRC)/TtfUtil.cpp \
	$(GRAPHITE2_SRC)/UtfCodec.cpp \
	$(GRAPHITE2_SRC)/gr_char_info.cpp \
	$(GRAPHITE2_SRC)/gr_face.cpp \
	$(GRAPHITE2_SRC)/gr_features.cpp \
	$(GRAPHITE2_SRC)/gr_font.cpp \
	$(GRAPHITE2_SRC)/gr_logging.cpp \
	$(GRAPHITE2_SRC)/gr_segment.cpp \
	$(GRAPHITE2_SRC)/gr_slot.cpp \
	$(GRAPHITE2_SRC)/inc/CachedFace.h \
	$(GRAPHITE2_SRC)/inc/CharInfo.h \
	$(GRAPHITE2_SRC)/inc/CmapCache.h \
	$(GRAPHITE2_SRC)/inc/Code.h \
	$(GRAPHITE2_SRC)/inc/Endian.h \
	$(GRAPHITE2_SRC)/inc/Face.h \
	$(GRAPHITE2_SRC)/inc/FeatureMap.h \
	$(GRAPHITE2_SRC)/inc/FeatureVal.h \
	$(GRAPHITE2_SRC)/inc/FileFace.h \
	$(GRAPHITE2_SRC)/inc/Font.h \
	$(GRAPHITE2_SRC)/inc/GlyphCache.h \
	$(GRAPHITE2_SRC)/inc/GlyphFace.h \
	$(GRAPHITE2_SRC)/inc/List.h \
	$(GRAPHITE2_SRC)/inc/Machine.h \
	$(GRAPHITE2_SRC)/inc/Main.h \
	$(GRAPHITE2_SRC)/inc/NameTable.h \
	$(GRAPHITE2_SRC)/inc/Pass.h \
	$(GRAPHITE2_SRC)/inc/Position.h \
	$(GRAPHITE2_SRC)/inc/Rule.h \
	$(GRAPHITE2_SRC)/inc/SegCache.h \
	$(GRAPHITE2_SRC)/inc/SegCacheEntry.h \
	$(GRAPHITE2_SRC)/inc/SegCacheStore.h \
	$(GRAPHITE2_SRC)/inc/Segment.h \
	$(GRAPHITE2_SRC)/inc/Silf.h \
	$(GRAPHITE2_SRC)/inc/Slot.h \
	$(GRAPHITE2_SRC)/inc/Sparse.h \
	$(GRAPHITE2_SRC)/inc/TtfTypes.h \
	$(GRAPHITE2_SRC)/inc/TtfUtil.h \
	$(GRAPHITE2_SRC)/inc/UtfCodec.h \
	$(GRAPHITE2_SRC)/inc/bits.h \
	$(GRAPHITE2_SRC)/inc/debug.h \
	$(GRAPHITE2_SRC)/inc/json.h \
	$(GRAPHITE2_SRC)/inc/locale2lcid.h \
	$(GRAPHITE2_SRC)/inc/opcode_table.h \
	$(GRAPHITE2_SRC)/inc/opcodes.h

if DIRECT_TYPE
libgraphite2_a_SOURCES += $(GRAPHITE2_SRC)/direct_machine.cpp
else !DIRECT_TYPE
libgraphite2_a_SOURCES += $(GRAPHITE2_SRC)/call_machine.cpp
endif !DIRECT_TYPE

if WITH_SEGCACHE
libgraphite2_a_SOURCES += \
	$(GRAPHITE2_SRC)/SegCache.cpp \
	$(GRAPHITE2_SRC)/SegCacheEntry.cpp \
	$(GRAPHITE2_SRC)/SegCacheStore.cpp
else !WITH_SEGCACHE
AM_CPPFLAGS += -DGRAPHITE2_NSEGCACHE
endif !WITH_SEGCACHE

if WITH_FILEFACE
libgraphite2_a_SOURCES += $(GRAPHITE2_SRC)/FileFace.cpp 
else !WITH_FILEFACE
AM_CPPFLAGS += -DGRAPHITE2_NFILEFACE
endif !WITH_FILEFACE

if WITH_TRACING
libgraphite2_a_SOURCES += $(GRAPHITE2_SRC)/json.cpp
else !WITH_TRACING
AM_CPPFLAGS += -DGRAPHITE2_NTRACING
endif !WITH_TRACING

$(libgraphite2_a_OBJECTS): config.force

config.force:
	echo timestamp >config.force
	$(SHELL) ./config.status --recheck

DISTCLEANFILES = config.force

##if build
## check_PROGRAMS = 
## dist_check_SCRIPTS = graphite2.test
## TESTS = graphite2.test
## endif build

LDADD = libgraphite2.a

## Files generated by TESTS