X-Git-Url: http://git.annexia.org/?p=whenjobs.git;a=blobdiff_plain;f=lib%2FMakefile.am;h=3d72b240b21197e779a8878f29509b54f314c8c7;hp=47285cd68a20725e0dfaf53f7a59b1b070546f22;hb=2b33ad509c3000cac1f2c81efce68b0c370a0f20;hpb=61cad7bbaf63389b520b695eefdd735bc11a8aa6 diff --git a/lib/Makefile.am b/lib/Makefile.am index 47285cd..3d72b24 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -15,10 +15,12 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +EXTRA_DIST = whenproto.x pa_when.ml $(SOURCES) + libwhenjobsdir = $(libdir)/$(PACKAGE_NAME) libwhenjobs_SCRIPTS = whenlib.cma pa_when.cmo -OCAMLPACKAGES = -package unix,num,camlp4.lib,rpc +OCAMLPACKAGES = -package unix,num,camlp4.lib,calendar,rpc OCAMLCFLAGS = -g -warn-error CDEFLMPSUVYZX $(OCAMLPACKAGES) OCAMLOPTFLAGS = $(OCAMLCFLAGS) @@ -26,8 +28,8 @@ OCAMLOPTFLAGS = $(OCAMLCFLAGS) # These should be in alphabetical order. SOURCES = \ config.ml \ - whenfile.mli \ whenfile.ml \ + whenfile.mli \ whenlock.ml \ whenlock.mli \ whenproto_aux.ml \ @@ -55,9 +57,12 @@ whenproto_aux.ml whenproto_aux.mli: whenproto.x $(OCAMLRPCGEN) -int int32 -hyper int64 -aux $< # Preprocessor for whenjobs files. -pa_when.cmo: pa_when.ml whenlib.cma - $(OCAMLFIND) c $(OCAMLCFLAGS) \ - -linkpkg whenlib.cma -pp $(CAMLP4OF) -c $< -o $@ +# Note that we intentionally don't want this to depend on any +# libraries except for camlp4.lib. +pa_when.cmo: pa_when.ml + $(OCAMLFIND) c -g -warn-error CDEFLMPSUVYZX \ + -package camlp4.lib -linkpkg \ + -pp $(CAMLP4OF) -c $< -o $@ # Rules for all OCaml files. %.cmi: %.mli