[HEIMDAL-646] malloc(0) checks for AIX
[heimdal.git] / lib / wind / Makefile.am
blob7d1bcb64edec954977e7e8b63af9c71bf0a68ac7
1 # $Id: Makefile.am,v 1.1 2004/12/20 08:31:45 assar Exp $
3 include $(top_srcdir)/Makefile.am.common
5 lib_LTLIBRARIES = libwind.la
7 built = \
8         bidi_table.c                            \
9         bidi_table.h                            \
10         combining_table.c                       \
11         combining_table.h                       \
12         errorlist_table.c                       \
13         errorlist_table.h                       \
14         map_table.c                             \
15         map_table.h                             \
16         normalize_table.c                       \
17         normalize_table.h
19 built_tests = \
20         punycode_examples.h                     \
21         punycode_examples.c
24 MAINTAINERCLEANFILES = $(built) $(built_tests)
26 code = \
27         bidi.c                                  \
28         combining.c                             \
29         doxygen.c                               \
30         errorlist.c                             \
31         map.c                                   \
32         ldap.c                                  \
33         normalize.c                             \
34         punycode.c                              \
35         stringprep.c                            \
36         wind.h                                  \
37         windlocl.h                              \
38         utf8.c
40 $(code:.c=.lo): $(built)
42 dist_libwind_la_SOURCES = $(code) $(built)
43 nodist_libwind_la_SOURCES = wind_err.c wind_err.h
45 dist_include_HEADERS = wind.h
46 nodist_include_HEADERS = wind_err.h
48 $(libwind_la_OBJECTS): wind_err.h
50 libwind_la_LDFLAGS = -version-info 0:0:0
52 libwind_la_LIBADD = \
53         $(LIB_roken) \
54         $(LIB_com_err)
56 if versionscript
57 libwind_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
58 endif
60 BUILT_SOURCES =                                 \
61         wind_err.c                              \
62         wind_err.h
64 TESTS =                                         \
65         $(check_PROGRAMS)
67 check_PROGRAMS =                                \
68         test-bidi                               \
69         test-map                                \
70         test-rw                                 \
71         test-normalize                          \
72         test-prohibited                         \
73         test-punycode                           \
74         test-ldap                               \
75         test-utf8
77 test_punycode_SOURCES =                         \
78         test-punycode.c                         \
79         punycode_examples.c                     \
80         punycode_examples.h
82 $(test_punycode_OBJECTS): $(built_tests)
84 bin_PROGRAMS = idn-lookup
86 idn_lookup_SOURCES = idn-lookup.c
88 LDADD = libwind.la $(LIB_roken)
90 PYTHON = python
92 map_table.h map_table.c: rfc3454.txt gen-map.py stringprep.py
93         $(PYTHON) $(srcdir)/gen-map.py $(srcdir)/rfc3454.txt $(builddir)
95 errorlist_table.h errorlist_table.c: rfc3454.txt gen-errorlist.py stringprep.py
96         $(PYTHON) $(srcdir)/gen-errorlist.py $(srcdir)/rfc3454.txt $(builddir)
98 normalize_table.h normalize_table.c: UnicodeData.txt CompositionExclusions-3.2.0.txt gen-normalize.py
99         $(PYTHON) $(srcdir)/gen-normalize.py $(srcdir)/UnicodeData.txt $(srcdir)/CompositionExclusions-3.2.0.txt $(builddir)
101 combining_table.h combining_table.c: UnicodeData.txt gen-combining.py
102         $(PYTHON) $(srcdir)/gen-combining.py $(srcdir)/UnicodeData.txt $(builddir)
104 bidi_table.h bidi_table.c: rfc3454.txt gen-bidi.py
105         $(PYTHON) $(srcdir)/gen-bidi.py $(srcdir)/rfc3454.txt $(builddir)
107 punycode_examples.h punycode_examples.c: gen-punycode-examples.py rfc3492.txt
108         $(PYTHON) $(srcdir)/gen-punycode-examples.py $(srcdir)/rfc3492.txt $(builddir)
110 EXTRA_DIST = \
111         CompositionExclusions-3.2.0.txt \
112         DerivedNormalizationProps.txt \
113         NormalizationCorrections.txt \
114         NormalizationTest.txt \
115         UnicodeData.py \
116         UnicodeData.txt \
117         gen-bidi.py \
118         gen-combining.py \
119         gen-errorlist.py \
120         gen-map.py \
121         gen-normalize.py \
122         gen-punycode-examples.py \
123         generate.py \
124         rfc3454.py \
125         rfc3454.txt \
126         rfc3490.txt \
127         rfc3491.txt \
128         rfc3492.txt \
129         rfc4013.txt \
130         rfc4518.py \
131         rfc4518.txt \
132         stringprep.py \
133         util.py \
134         version-script.map \
135         wind_err.et
137 CLEANFILES = \
138         wind_err.c  \
139         wind_err.h
141 wind_err.h: wind_err.et