1 ########################################################################
3 # Copyright (c) 2009, Secure Endpoints Inc.
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
10 # - Redistributions of source code must retain the above copyright
11 # notice, this list of conditions and the following disclaimer.
13 # - Redistributions in binary form must reproduce the above copyright
14 # notice, this list of conditions and the following disclaimer in
15 # the documentation and/or other materials provided with the
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22 # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 # POSSIBILITY OF SUCH DAMAGE.
34 !include ../../windows/NTMakefile.w32
38 $(OBJ)\bidi_table.obj \
39 $(OBJ)\combining.obj \
40 $(OBJ)\combining_table.obj \
41 $(OBJ)\errorlist.obj \
42 $(OBJ)\errorlist_table.obj \
44 $(OBJ)\map_table.obj \
46 $(OBJ)\normalize.obj \
47 $(OBJ)\normalize_table.obj \
49 $(OBJ)\stringprep.obj \
53 $(LIBWIND): $(libwind_OBJs)
58 $(INCDIR)\wind_err.h \
59 $(INCDIR)\map_table.h \
60 $(INCDIR)\errorlist_table.h \
61 $(INCDIR)\normalize_table.h \
62 $(INCDIR)\combining_table.h \
63 $(INCDIR)\bidi_table.h \
64 $(INCDIR)\punycode_examples.h
66 $(OBJ)\map_table.h $(OBJ)\map_table.c: rfc3454.txt gen-map.py stringprep.py
68 $(PYTHON) $(SRCDIR)\gen-map.py $(SRCDIR)\rfc3454.txt $(OBJ)
71 $(OBJ)\errorlist_table.h $(OBJ)\errorlist_table.c: rfc3454.txt gen-errorlist.py stringprep.py
73 $(PYTHON) $(SRCDIR)\gen-errorlist.py $(SRCDIR)\rfc3454.txt $(OBJ)
76 $(OBJ)\normalize_table.h $(OBJ)\normalize_table.c: UnicodeData.txt CompositionExclusions-3.2.0.txt gen-normalize.py
78 $(PYTHON) $(SRCDIR)\gen-normalize.py $(SRCDIR)\UnicodeData.txt $(SRCDIR)\CompositionExclusions-3.2.0.txt $(OBJ)
81 $(OBJ)\combining_table.h $(OBJ)\combining_table.c: UnicodeData.txt gen-combining.py
83 $(PYTHON) $(SRCDIR)\gen-combining.py $(SRCDIR)\UnicodeData.txt $(OBJ)
86 $(OBJ)\bidi_table.h $(OBJ)\bidi_table.c: rfc3454.txt gen-bidi.py
88 $(PYTHON) $(SRCDIR)\gen-bidi.py $(SRCDIR)\rfc3454.txt $(OBJ)
91 $(OBJ)\punycode_examples.h $(OBJ)\punycode_examples.c: gen-punycode-examples.py rfc3492.txt
93 $(PYTHON) $(SRCDIR)\gen-punycode-examples.py $(SRCDIR)\rfc3492.txt $(OBJ)
96 $(OBJ)\wind_err.c $(OBJ)\wind_err.h: wind_err.et
98 $(BINDIR)\compile_et.exe $(SRCDIR)\wind_err.et
102 $(OBJ)\test-bidi.exe \
103 $(OBJ)\test-map.exe \
105 $(OBJ)\test-normalize.exe \
106 $(OBJ)\test-prohibited.exe \
107 $(OBJ)\test-punycode.exe \
108 $(OBJ)\test-ldap.exe \
111 {$(OBJ)}.c{$(OBJ)}.obj::
112 $(C2OBJ_P) -I$(SRCDIR)
114 {$(OBJ)}.obj{$(OBJ)}.exe:
115 $(EXECONLINK) $(LIBHEIMDAL) $(LIBROKEN)
118 $(OBJ)\test-bidi.exe: $(OBJ)\test-bidi.obj
120 $(OBJ)\test-map.exe: $(OBJ)\test-map.obj
122 $(OBJ)\test-rw.exe: $(OBJ)\test-rw.obj
124 $(OBJ)\test-normalize.exe: $(OBJ)\test-normalize.obj
126 $(OBJ)\test-prohibited.exe: $(OBJ)\test-prohibited.obj
128 $(OBJ)\test-punycode.exe: $(OBJ)\test-punycode.obj $(OBJ)\punycode_examples.obj
130 $(OBJ)\test-ldap.exe: $(OBJ)\test-ldap.obj
132 $(OBJ)\test-utf8.exe: $(OBJ)\test-utf8.obj
134 test-binaries: $(TEST_BINARIES)
141 test-normalize.exe $(SRCDIR)\NormalizationTest.txt
148 all:: $(INCFILES) $(LIBWIND)
154 test:: test-binaries test-run
157 $(PERL) ..\..\cf\w32-check-exported-symbols.pl --vs version-script.map --def libwind-exports.def