diff --git a/.gitignore b/.gitignore index 173cd59..ad021ea 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ /doc/Makefile /doc/Makefile.in /example +/example.exe /example.o /hnjalloc.lo /hnjalloc.o @@ -30,6 +31,7 @@ /ltmain.sh /missing /substrings +/substrings.exe /substrings.o /test-driver /tests/*.log diff --git a/Makefile.am b/Makefile.am index a62a0e1..970bd76 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,7 +2,7 @@ SUBDIRS= doc tests lib_LTLIBRARIES = libhyphen.la libhyphen_la_SOURCES = hnjalloc.c hyphen.c -libhyphen_la_LDFLAGS = -version-info 3:0:3 +libhyphen_la_LDFLAGS = -version-info 3:0:3 -no-undefined include_HEADERS = hyphen.h noinst_HEADERS = hnjalloc.h diff --git a/README b/README index 4b0815d..8a4a8c6 100644 --- a/README +++ b/README @@ -71,6 +71,13 @@ to lowercase before hyphenation (under UTF-8 console environment): cat mywords.txt | awk '{print tolower($0)}' >mywordslow.txt +BUILD DLL USING CROSS-COMPILATION + +./configure --host i586-mingw32 --prefix=/tmp/hyphen-dll +make +make check +make install + DEVELOPMENT See README.hyphen for hyphenation algorithm, README.nonstandard diff --git a/tests/Makefile.am b/tests/Makefile.am index 37dc74f..263e9e1 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -134,3 +134,10 @@ num.hyph \ num.pat \ num.test \ num.word + +check-am: ../example +../example : ../example.exe + echo '#! /bin/sh' > $@ + echo '# Wrapper for example.exe' >> $@ + echo 'wine `dirname "$$0"`/example.exe "$$@" |dos2unix' >> $@ + chmod +x $@