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