summaryrefslogtreecommitdiffstats
path: root/third_party/heimdal/lib/wind/Makefile.am
blob: 4a34496fcf0a584f1f1805319f30029c4327c1da (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
# $Id: Makefile.am,v 1.1 2004/12/20 08:31:45 assar Exp $

include $(top_srcdir)/Makefile.am.common

lib_LTLIBRARIES = libwind.la

built = \
	bidi_table.c				\
	bidi_table.h				\
	combining_table.c			\
	combining_table.h			\
	errorlist_table.c			\
	errorlist_table.h			\
	map_table.c				\
	map_table.h				\
	normalize_table.c			\
	normalize_table.h

built_tests = \
	punycode_examples.h			\
	punycode_examples.c


MAINTAINERCLEANFILES = $(built) $(built_tests)

code = \
	bidi.c					\
	combining.c				\
	doxygen.c				\
	errorlist.c				\
	map.c					\
	ldap.c					\
	normalize.c				\
	punycode.c				\
	stringprep.c				\
	wind.h					\
	windlocl.h				\
	utf8.c

$(code:.c=.lo): $(built)

dist_libwind_la_SOURCES = $(code) $(built)
nodist_libwind_la_SOURCES = wind_err.c wind_err.h

libwind_la_DEPENDENCIES = version-script.map

dist_include_HEADERS = wind.h
nodist_include_HEADERS = wind_err.h

$(libwind_la_OBJECTS): wind_err.h

libwind_la_LDFLAGS = -version-info 0:0:0

libwind_la_LIBADD = \
	$(LIB_roken) \
	$(LIB_com_err)

if versionscript
libwind_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
endif

BUILT_SOURCES =					\
	wind_err.c				\
	wind_err.h

TESTS =						\
	$(check_PROGRAMS)

check_PROGRAMS =				\
	test-bidi				\
	test-map				\
	test-rw					\
	test-normalize				\
	test-prohibited				\
	test-punycode				\
	test-ldap				\
	test-utf8

test_punycode_SOURCES =				\
	test-punycode.c				\
	punycode_examples.c			\
	punycode_examples.h

$(test_punycode_OBJECTS): $(built_tests)

bin_PROGRAMS = idn-lookup

idn_lookup_SOURCES = idn-lookup.c

LDADD = libwind.la $(LIB_roken)

if !MAINTAINER_MODE
skip_python = test -f $@ ||
endif

map_table.h map_table.c: rfc3454.txt gen-map.py stringprep.py
	$(skip_python) $(PYTHON) $(srcdir)/gen-map.py $(srcdir)/rfc3454.txt $(builddir)

errorlist_table.h errorlist_table.c: rfc3454.txt gen-errorlist.py stringprep.py
	$(skip_python) $(PYTHON) $(srcdir)/gen-errorlist.py $(srcdir)/rfc3454.txt $(builddir)

normalize_table.h normalize_table.c: UnicodeData.txt CompositionExclusions-3.2.0.txt gen-normalize.py
	$(skip_python) $(PYTHON) $(srcdir)/gen-normalize.py $(srcdir)/UnicodeData.txt $(srcdir)/CompositionExclusions-3.2.0.txt $(builddir)

combining_table.h combining_table.c: UnicodeData.txt gen-combining.py
	$(skip_python) $(PYTHON) $(srcdir)/gen-combining.py $(srcdir)/UnicodeData.txt $(builddir)

bidi_table.h bidi_table.c: rfc3454.txt gen-bidi.py
	$(skip_python) $(PYTHON) $(srcdir)/gen-bidi.py $(srcdir)/rfc3454.txt $(builddir)

punycode_examples.h punycode_examples.c: gen-punycode-examples.py rfc3492.txt
	$(PYTHON) $(srcdir)/gen-punycode-examples.py $(srcdir)/rfc3492.txt $(builddir)

EXTRA_DIST = \
	NTMakefile \
	libwind-exports.def \
	CompositionExclusions-3.2.0.txt \
	DerivedNormalizationProps.txt \
	NormalizationCorrections.txt \
	NormalizationTest.txt \
	UnicodeData.py \
	UnicodeData.txt \
	gen-bidi.py \
	gen-combining.py \
	gen-errorlist.py \
	gen-map.py \
	gen-normalize.py \
	gen-punycode-examples.py \
	generate.py \
	rfc3454.py \
	rfc3454.txt \
	rfc3490.txt \
	rfc3491.txt \
	rfc3492.txt \
	rfc4013.txt \
	rfc4518.py \
	rfc4518.txt \
	stringprep.py \
	util.py \
	version-script.map \
	wind_err.et

CLEANFILES = \
	wind_err.c  \
	wind_err.h

wind_err.h: wind_err.et