X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/c235081a25cee59ac3cf5e52daaa100e30cd1653..cfc28578b10e5fc612bc1a7a09309d79872e2eb0:/Makefile diff --git a/Makefile b/Makefile index c1fb6d3..7f5d7d5 100644 --- a/Makefile +++ b/Makefile @@ -9,13 +9,14 @@ COMMON_DEPS := configDefault/config.sig configDefault/configDefault.sml \ EMACS_DIR := /usr/local/share/emacs/site-lisp/domtool-mode config.sml: - echo -e 'structure Config :> CONFIG = struct\nopen ConfigDefault\nend' > $@ + /bin/echo -e 'structure Config :> CONFIG = struct\nopen ConfigDefault\nend' > $@ .PHONY: all mlton smlnj install install_sos mlton: bin/domtool-server bin/domtool-client bin/domtool-slave \ bin/domtool-admin bin/domtool-doc bin/dbtool bin/vmail \ - bin/smtplog bin/setsa bin/mysql-fixperms bin/webbw bin/domtool-tail + bin/smtplog bin/setsa bin/mysql-fixperms bin/webbw bin/domtool-tail \ + bin/fwtool smlnj: $(COMMON_DEPS) openssl/smlnj/FFI/libssl.h.cm pcre/smlnj/FFI/libpcre.h.cm \ src/domtool.cm @@ -99,6 +100,10 @@ src/mysql-fixperms.mlb: src/prefix.mlb src/sources src/suffix.mlb $(MAKE_MLB_BASE) >src/mysql-fixperms.mlb echo "main-mysql-fixperms.sml" >>src/mysql-fixperms.mlb +src/fwtool.mlb: src/prefix.mlb src/sources src/suffix.mlb + $(MAKE_MLB_BASE) >src/fwtool.mlb + echo "main-fwtool.sml" >>src/fwtool.mlb + openssl/smlnj/FFI/libssl.h.cm: openssl/openssl_sml.h cd openssl/smlnj ; ml-nlffigen -d FFI -lh LibsslH.libh -include ../libssl-h.sml \ -cm libssl.h.cm -D__builtin_va_list="void*" \ @@ -169,6 +174,9 @@ bin/smtplog: $(COMMON_MLTON_DEPS) src/smtplog.mlb bin/mysql-fixperms: $(COMMON_MLTON_DEPS) src/mysql-fixperms.mlb $(MLTON) -output bin/mysql-fixperms src/mysql-fixperms.mlb +bin/fwtool: $(COMMON_MLTON_DEPS) src/fwtool.mlb + $(MLTON) -output bin/fwtool src/fwtool.mlb + bin/webbw: $(COMMON_MLTON_DEPS) src/stats/webbw.mlb src/stats/*.sml mlton -output bin/webbw src/stats/webbw.mlb @@ -202,6 +210,7 @@ install: install_sos -cp bin/domtool-admin /usr/local/bin/ -cp bin/domtool-doc /usr/local/bin/ -cp bin/dbtool /usr/local/bin/ + -cp bin/fwtool /usr/local/bin/ -cp bin/vmail /usr/local/bin/ -cp bin/setsa /usr/local/bin/ -cp bin/smtplog /usr/local/bin/