# libguestfs
-# Copyright (C) 2010 Red Hat Inc.
+# Copyright (C) 2010-2011 Red Hat Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
generator_haskell.ml \
generator_csharp.ml \
generator_php.ml \
+ generator_erlang.ml \
generator_bindtests.ml \
generator_errnostring.ml \
generator_main.ml
if HAVE_OCAML
-generator: $(OBJECTS)
- $(OCAMLC) -o generator $(OCAMLCFLAGS) $(OCAMLCLIBS) $(OBJECTS)
+$(srcdir)/generator: $(OBJECTS)
+ $(OCAMLC) -I $(srcdir) -o $@ $(OCAMLCFLAGS) $(OCAMLCLIBS) $(OBJECTS)
.ml.cmo:
- $(OCAMLC) $(OCAMLCFLAGS) -c $< -o $@
+ $(OCAMLC) -I $(srcdir) $(OCAMLCFLAGS) -c $< -o $@
.mli.cmi:
- $(OCAMLC) $(OCAMLCFLAGS) -c $< -o $@
+ $(OCAMLC) -I $(srcdir) $(OCAMLCFLAGS) -c $< -o $@
depend: .depend