--- ocaml_sha-1.4-orig/Makefile 2006-12-02 01:37:54.000000000 +0100 +++ ocaml_sha-1.4-fix/Makefile 2009-01-29 15:34:34.000000000 +0100 @@ -1,5 +1,7 @@ CC = gcc -CFLAGS = -Wall -O3 -funroll-loops +OCAML_PATH = $(shell ocamlc -where) +OCAML_INCS = -I "$(OCAML_PATH)" +CFLAGS = -Wall -O3 -funroll-loops $(OCAML_INCS) OCAMLC = ocamlc OCAMLOPT = ocamlopt @@ -14,7 +16,7 @@ bins: $(PROGRAMS) -sha1sum: sha1.cmxa sha256.cmxa sha512.cmxa shasum.cmx +sha1sum: sha.cmx sha1.cmxa sha256.cmxa sha512.cmxa shasum.cmx $(OCAMLOPT) $(OCAMLOPTFLAGS) -o $@ $+ sha256sum: sha1sum