diff options
author | kaa <kaa@disroot.org> | 2023-11-10 11:35:58 -0800 |
---|---|---|
committer | kaa <kaa@disroot.org> | 2023-11-10 11:35:58 -0800 |
commit | 902e6964083c2f3ce51f85242d751d00269ac527 (patch) | |
tree | e9ff30bd1f11ed8d7fdedd88cc51e58fbe3c5648 /makefile | |
parent | 573da274a77db0e45185c25796b3527f36f8729f (diff) |
Real support for compliation on Windows. Depends on mingw and busybox-w32. No need for emulation a-la Cygwin, real native binaries.
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -13,10 +13,14 @@ lib/libhyphen.a: ext/hyphen-2.8.8/README cd ext/hyphen-2.8.8 && ./configure --prefix=$$(pwd)/../.. && make install hyp: lib/libhyphen.a - $(CC) $(CFLAGS) $(HYPFLAGS) $(LDFLAGS) -o $@ -DBUILD_PATH=\"$$(pwd)\" hyp.c lib/libhyphen.a + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -DBUILD_PATH=\"$$(pwd)\" hyp.c lib/libhyphen.a +win/hyp.exe: + cd win && \ + gcc -fdiagnostics-color=never -I. -static -o hyp.exe -DBUILD_PATH=\"$$(pwd)\" ../hyp.c libhyphen.a && \ + strip hyp.exe clean: - rm -f hyp hyp-es && rm -rf lib include bin share && cd ext/hyphen-2.8.8 && make clean + rm -f hyp win/hyp.exe && rm -rf lib include bin share && cd ext/hyphen-2.8.8 && make clean dist: clean rm -rf ext/hyphen-2.8.8 install: all |