# 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
$(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