Build DLL using cross-compilation

This commit is contained in:
Bert Frees 2016-04-24 14:09:16 +02:00
parent b5df7eef38
commit 51132a3819
4 changed files with 17 additions and 1 deletions

2
.gitignore vendored
View File

@ -15,6 +15,7 @@
/doc/Makefile /doc/Makefile
/doc/Makefile.in /doc/Makefile.in
/example /example
/example.exe
/example.o /example.o
/hnjalloc.lo /hnjalloc.lo
/hnjalloc.o /hnjalloc.o
@ -30,6 +31,7 @@
/ltmain.sh /ltmain.sh
/missing /missing
/substrings /substrings
/substrings.exe
/substrings.o /substrings.o
/test-driver /test-driver
/tests/*.log /tests/*.log

View File

@ -2,7 +2,7 @@ SUBDIRS= doc tests
lib_LTLIBRARIES = libhyphen.la lib_LTLIBRARIES = libhyphen.la
libhyphen_la_SOURCES = hnjalloc.c hyphen.c 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 include_HEADERS = hyphen.h
noinst_HEADERS = hnjalloc.h noinst_HEADERS = hnjalloc.h

7
README
View File

@ -71,6 +71,13 @@ to lowercase before hyphenation (under UTF-8 console environment):
cat mywords.txt | awk '{print tolower($0)}' >mywordslow.txt 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 DEVELOPMENT
See README.hyphen for hyphenation algorithm, README.nonstandard See README.hyphen for hyphenation algorithm, README.nonstandard

View File

@ -134,3 +134,10 @@ num.hyph \
num.pat \ num.pat \
num.test \ num.test \
num.word 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 $@