1TOPLEVEL=$(CURDIR)/../.. 2XEN_ROOT=$(TOPLEVEL)/../.. 3include $(TOPLEVEL)/common.make 4 5OBJS = xenmmap 6INTF = $(foreach obj, $(OBJS),$(obj).cmi) 7LIBS = xenmmap.cma xenmmap.cmxa 8 9all: $(INTF) $(LIBS) $(PROGRAMS) 10 11bins: $(PROGRAMS) 12 13libs: $(LIBS) 14 15xenmmap_OBJS = $(OBJS) 16xenmmap_C_OBJS = xenmmap_stubs 17OCAML_LIBRARY = xenmmap 18 19.PHONY: install 20install: $(LIBS) META 21 mkdir -p $(OCAMLDESTDIR) 22 $(OCAMLFIND) remove -destdir $(OCAMLDESTDIR) xenmmap 23 $(OCAMLFIND) install -destdir $(OCAMLDESTDIR) -ldconf ignore xenmmap META $(INTF) $(LIBS) *.a *.so *.cmx 24 25.PHONY: uninstall 26uninstall: 27 $(OCAMLFIND) remove -destdir $(OCAMLDESTDIR) xenmmap 28 29include $(TOPLEVEL)/Makefile.rules 30 31