X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=examples%2Fcompile-c%2FMakefile.am;h=9d01536c6a53beff6b9da959980bda2ab0b99805;hb=97134efe68268cc3b0df76600012ee7847ec0e3a;hp=d8a1be7cfdf30285f6fa9c8c41d333c8e66e293a;hpb=712c2fa7fc3c6f45f282cd293eec0e9eb4c689fd;p=goaljobs.git diff --git a/examples/compile-c/Makefile.am b/examples/compile-c/Makefile.am index d8a1be7..9d01536 100644 --- a/examples/compile-c/Makefile.am +++ b/examples/compile-c/Makefile.am @@ -15,37 +15,13 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -include ../../common-rules.mk +include $(top_srcdir)/common-rules.mk -EXTRA_DIST = main.c utils.c $(sources) +EXTRA_DIST = main.c utils.c compile.ml CLEANFILES += compile program -sources = compile.ml - noinst_SCRIPTS = compile -compile: ../../goaljobs.cmxa compile.cmx - $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) \ - $(OCAMLOPTPACKAGES) -linkpkg $^ -o $@ - -compile.cmx: compile.ml ../../pa_goal.cmo - $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) $(OCAMLOPTPACKAGES) \ - -pp "$(CAMLP4O) ../../pa_goal.cmo" -c $< -o $@ - -# Dependencies. - -depend: .depend - -.depend: $(sources) - rm -f $@ $@-t - $(OCAMLFIND) ocamldep -I $(abs_srcdir) -I $(top_builddir) $^ | \ - $(SED) 's/ *$$//' | \ - $(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \ - $(SED) -e 's,$(abs_srcdir)/,$(builddir)/,g' | \ - sort > $@-t - mv $@-t $@ - --include .depend - -SUFFIXES = .cmo .cmi .cmx .ml .mli .mll .mly +compile: compile.ml $(top_builddir)/goaljobs.cmxa $(top_builddir)/pa_goal.cmo $(top_builddir)/goaljobs + $(top_builddir)/goaljobs --pkgdir $(top_builddir) $< -o $@