X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=resize%2FMakefile.am;h=ff10cf8e0619595b999dd14e8e8bafe4bd47e9f0;hb=04fbcc63ebf5718608f199eb6b09061cd32283c3;hp=93a2600fe787147b7b43b5b42f3f5dd1ace4b5dd;hpb=ff101adf7ead7bcdb46bccdb227ef18d844b965f;p=libguestfs.git diff --git a/resize/Makefile.am b/resize/Makefile.am index 93a2600..ff10cf8 100644 --- a/resize/Makefile.am +++ b/resize/Makefile.am @@ -29,12 +29,16 @@ if HAVE_OCAML_PCRE # Alphabetical order. SOURCES = \ + progress_c.c \ + progress.mli \ progress.ml \ resize.ml \ utils.ml # Note this list must be in dependency order. OBJECTS = \ + ../fish/guestfish-progress.o \ + progress_c.o \ utils.cmx \ progress.cmx \ resize.cmx @@ -50,7 +54,8 @@ OCAMLCFLAGS = -g -warn-error CDEFLMPSUVYZX $(OCAMLPACKAGES) OCAMLOPTFLAGS = $(OCAMLCFLAGS) virt-resize: $(OBJECTS) - $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) mlguestfs.cmxa -linkpkg $^ -o $@ + $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) \ + mlguestfs.cmxa -linkpkg $^ -cclib -lncurses -o $@ .mli.cmi: $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -c $< -o $@ @@ -59,6 +64,14 @@ virt-resize: $(OBJECTS) .ml.cmx: $(OCAMLFIND) ocamlopt $(OCAMLCFLAGS) -c $< -o $@ +# automake will decide we don't need C support in this file. Really +# we do, so we have to provide it ourselves. + +DEFAULT_INCLUDES = -I. -I$(top_builddir) -I$(shell $(OCAMLC) -where) -I../fish + +.c.o: + $(CC) $(CFLAGS) $(PROF_CFLAGS) $(DEFAULT_INCLUDES) -c $< -o $@ + # Manual pages and HTML files for the website. man_MANS = virt-resize.1 @@ -93,7 +106,8 @@ depend: .depend .depend: $(wildcard *.mli) $(wildcard *.ml) rm -f $@ $@-t - $(OCAMLFIND) ocamldep $(OCAMLPACKAGES) $^ | \ + $(OCAMLFIND) ocamldep $^ | \ + $(SED) 's/ *$$//' | \ $(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \ sort > $@-t mv $@-t $@