| 1 |
# $Id: Makefile.am,v 1.1 2004/12/20 08:31:45 assar Exp $ |
| 2 |
|
| 3 |
include $(top_srcdir)/Makefile.am.common |
| 4 |
|
| 5 |
lib_LTLIBRARIES = libwind.la |
| 6 |
|
| 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 |
| 18 |
|
| 19 |
built_tests = \ |
| 20 |
punycode_examples.h \ |
| 21 |
punycode_examples.c |
| 22 |
|
| 23 |
|
| 24 |
MAINTAINERCLEANFILES = $(built) $(built_tests) |
| 25 |
|
| 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 |
| 39 |
|
| 40 |
$(code:.c=.lo): $(built) |
| 41 |
|
| 42 |
dist_libwind_la_SOURCES = $(code) $(built) |
| 43 |
nodist_libwind_la_SOURCES = wind_err.c wind_err.h |
| 44 |
|
| 45 |
libwind_la_DEPENDENCIES = version-script.map |
| 46 |
|
| 47 |
dist_include_HEADERS = wind.h |
| 48 |
nodist_include_HEADERS = wind_err.h |
| 49 |
|
| 50 |
$(libwind_la_OBJECTS): wind_err.h |
| 51 |
|
| 52 |
libwind_la_LDFLAGS = -version-info 0:0:0 |
| 53 |
|
| 54 |
libwind_la_LIBADD = \ |
| 55 |
$(LIB_roken) \ |
| 56 |
$(LIB_com_err) |
| 57 |
|
| 58 |
if versionscript |
| 59 |
libwind_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map |
| 60 |
endif |
| 61 |
|
| 62 |
BUILT_SOURCES = \ |
| 63 |
wind_err.c \ |
| 64 |
wind_err.h |
| 65 |
|
| 66 |
TESTS = \ |
| 67 |
$(check_PROGRAMS) |
| 68 |
|
| 69 |
check_PROGRAMS = \ |
| 70 |
test-bidi \ |
| 71 |
test-map \ |
| 72 |
test-rw \ |
| 73 |
test-normalize \ |
| 74 |
test-prohibited \ |
| 75 |
test-punycode \ |
| 76 |
test-ldap \ |
| 77 |
test-utf8 |
| 78 |
|
| 79 |
test_punycode_SOURCES = \ |
| 80 |
test-punycode.c \ |
| 81 |
punycode_examples.c \ |
| 82 |
punycode_examples.h |
| 83 |
|
| 84 |
$(test_punycode_OBJECTS): $(built_tests) |
| 85 |
|
| 86 |
bin_PROGRAMS = idn-lookup |
| 87 |
|
| 88 |
idn_lookup_SOURCES = idn-lookup.c |
| 89 |
|
| 90 |
LDADD = libwind.la $(LIB_roken) |
| 91 |
|
| 92 |
if !MAINTAINER_MODE |
| 93 |
skip_python = test -f $@ || |
| 94 |
endif |
| 95 |
|
| 96 |
map_table.h map_table.c: rfc3454.txt gen-map.py stringprep.py |
| 97 |
$(skip_python) $(PYTHON) $(srcdir)/gen-map.py $(srcdir)/rfc3454.txt $(builddir) |
| 98 |
|
| 99 |
errorlist_table.h errorlist_table.c: rfc3454.txt gen-errorlist.py stringprep.py |
| 100 |
$(skip_python) $(PYTHON) $(srcdir)/gen-errorlist.py $(srcdir)/rfc3454.txt $(builddir) |
| 101 |
|
| 102 |
normalize_table.h normalize_table.c: UnicodeData.txt CompositionExclusions-3.2.0.txt gen-normalize.py |
| 103 |
$(skip_python) $(PYTHON) $(srcdir)/gen-normalize.py $(srcdir)/UnicodeData.txt $(srcdir)/CompositionExclusions-3.2.0.txt $(builddir) |
| 104 |
|
| 105 |
combining_table.h combining_table.c: UnicodeData.txt gen-combining.py |
| 106 |
$(skip_python) $(PYTHON) $(srcdir)/gen-combining.py $(srcdir)/UnicodeData.txt $(builddir) |
| 107 |
|
| 108 |
bidi_table.h bidi_table.c: rfc3454.txt gen-bidi.py |
| 109 |
$(skip_python) $(PYTHON) $(srcdir)/gen-bidi.py $(srcdir)/rfc3454.txt $(builddir) |
| 110 |
|
| 111 |
punycode_examples.h punycode_examples.c: gen-punycode-examples.py rfc3492.txt |
| 112 |
$(PYTHON) $(srcdir)/gen-punycode-examples.py $(srcdir)/rfc3492.txt $(builddir) |
| 113 |
|
| 114 |
EXTRA_DIST = \ |
| 115 |
NTMakefile \ |
| 116 |
libwind-exports.def \ |
| 117 |
CompositionExclusions-3.2.0.txt \ |
| 118 |
DerivedNormalizationProps.txt \ |
| 119 |
NormalizationCorrections.txt \ |
| 120 |
NormalizationTest.txt \ |
| 121 |
UnicodeData.py \ |
| 122 |
UnicodeData.txt \ |
| 123 |
gen-bidi.py \ |
| 124 |
gen-combining.py \ |
| 125 |
gen-errorlist.py \ |
| 126 |
gen-map.py \ |
| 127 |
gen-normalize.py \ |
| 128 |
gen-punycode-examples.py \ |
| 129 |
generate.py \ |
| 130 |
rfc3454.py \ |
| 131 |
rfc3454.txt \ |
| 132 |
rfc3490.txt \ |
| 133 |
rfc3491.txt \ |
| 134 |
rfc3492.txt \ |
| 135 |
rfc4013.txt \ |
| 136 |
rfc4518.py \ |
| 137 |
rfc4518.txt \ |
| 138 |
stringprep.py \ |
| 139 |
util.py \ |
| 140 |
version-script.map \ |
| 141 |
wind_err.et |
| 142 |
|
| 143 |
CLEANFILES = \ |
| 144 |
wind_err.c \ |
| 145 |
wind_err.h |
| 146 |
|
| 147 |
wind_err.h: wind_err.et |