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