From 17d10c3fdc1c180ebfb255cdd96519215ab47414 Mon Sep 17 00:00:00 2001 From: John Whitington Date: Tue, 20 Aug 2013 21:00:17 +0100 Subject: [PATCH] Now builds library and executable and has ocamlfind support --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cfaacd8..d706771 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ # Build the cpdf command line tools and top level -SOURCES = cpdfstrftime.mli cpdfstrftime.ml cpdf.mli cpdf.ml cpdfcommand.mli \ -cpdfcommand.ml cpdfcommandrun.ml +MODS = cpdfstrftime cpdf cpdfcommand + +SOURCES = $(foreach x,$(MODS),$(x).ml $(x).mli) cpdfcommandrun.ml RESULT = cpdf @@ -10,7 +11,12 @@ OCAMLNCFLAGS = -g OCAMLBCFLAGS = -g OCAMLLDFLAGS = -g -all : native-code top htdoc +all : native-code native-code-library byte-code-library top htdoc + +LIBINSTALL_FILES = cpdf.a cpdf.cma cpdf.cmxa \ +$(foreach x,$(MODS),$x.mli) $(foreach x,$(MODS),$x.cmi) + +install : libinstall -include OCamlMakefile