summaryrefslogtreecommitdiff
path: root/Build/source/libs/teckit/Makefile.am
blob: 9709f851b34e57ed4b9a50591f59c5d55350d5c3 (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
## $Id$
## Makefile.am for the TeX Live subdirectory libs/teckit/
##
## Copyright 2017 Karl Berry <tex-live@tug.org>
## Copyright 2009-2015 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.

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

## Patches applied to the original source tree
EXTRA_DIST += TLpatches

# Files not to be distributed
include $(srcdir)/../../am/dist_hook.am
NEVER_NAMES += $(NEVER_NAMES_SUB)

SUBDIRS = . include/teckit

AM_CPPFLAGS = -I$(top_srcdir)/$(TECKIT_TREE)/source/Public-headers $(ZLIB_INCLUDES)
AM_CPPFLAGS += -DNDEBUG
AM_CFLAGS = $(WARNING_CFLAGS)
AM_CXXFLAGS = $(WARNING_CXXFLAGS)

bin_PROGRAMS = teckit_compile

noinst_LIBRARIES = libTECkit_Compiler.a libTECkit.a

# teckit_compile
#
nodist_teckit_compile_SOURCES = \
	@TECKIT_TREE@/source/Sample-tools/TECkit_Compile.cpp

teckit_compile_LDADD = libTECkit_Compiler.a $(ZLIB_LIBS)

$(teckit_compile_OBJECTS): libTECkit_Compiler.a

# libTECkit_Compiler.a and libTECkit.a
#
nodist_libTECkit_Compiler_a_SOURCES = \
	@TECKIT_TREE@/source/Compiler.cpp \
	@TECKIT_TREE@/source/UnicodeNames.cpp

nodist_libTECkit_a_SOURCES = \
	@TECKIT_TREE@/source/Engine.cpp

$(libTECkit_Compiler_a_OBJECTS) $(libTECkit_a_OBJECTS): config.force

DISTCLEANFILES = CXXLD.sh

## Tests
##
if build
TESTS = teckit.test
endif build
teckit.log: teckit_compile$(EXEEXT)

EXTRA_DIST += \
	teckit.test \
	tex-text.map \
	tex-text.tec

## Files generated by TESTS
##
CLEANFILES = xtex-text.tec

## Rebuild zlib
@ZLIB_RULE@

# Reconfig
reconfig_prereq = $(ZLIB_DEPEND)

include $(srcdir)/../../am/reconfig.am

# Rebuild
rebuild_prereq =
rebuild_target = all

include $(srcdir)/../../am/rebuild.am