mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Running "make uninstall" does not remove all installed files, a situation which might cause link related issues if xen is re-installed in a different location. In order to make uninstall correctly remove the files it is best the process should be done recursively by mirroring each "install" target with an "uninstall" who removes the installed files. An exception to this rule is uninstalling the files produced by "qemu-xen-dir-remote" and "qemu-xen-traditional-dir", which are external to the project. These projects do not implement an "uninstall" target so the files have to be removed manually. Signed-off-by: Petre Pircalabu <ppircalabu@bitdefender.com> Acked-by: Wei Liu <wei.liu2@citrix.com>
56 lines
1.7 KiB
Makefile
56 lines
1.7 KiB
Makefile
XEN_ROOT = $(CURDIR)/../../..
|
|
OCAML_TOPLEVEL = $(CURDIR)/..
|
|
include $(OCAML_TOPLEVEL)/common.make
|
|
|
|
CFLAGS += $(APPEND_CFLAGS)
|
|
|
|
OCAMLINCLUDE += \
|
|
-I $(OCAML_TOPLEVEL)/libs/xentoollog \
|
|
-I $(OCAML_TOPLEVEL)/libs/xl
|
|
|
|
OBJS = xtl send_debug_keys list_domains raise_exception dmesg
|
|
|
|
PROGRAMS = xtl send_debug_keys list_domains raise_exception dmesg
|
|
|
|
xtl_LIBS = \
|
|
-ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xentoollog $(OCAML_TOPLEVEL)/libs/xentoollog/xentoollog.cmxa \
|
|
-ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xl $(OCAML_TOPLEVEL)/libs/xl/xenlight.cmxa
|
|
|
|
xtl_OBJS = xtl
|
|
|
|
send_debug_keys_LIBS = \
|
|
-ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xentoollog $(OCAML_TOPLEVEL)/libs/xentoollog/xentoollog.cmxa \
|
|
-ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xl $(OCAML_TOPLEVEL)/libs/xl/xenlight.cmxa
|
|
|
|
send_debug_keys_OBJS = xtl send_debug_keys
|
|
|
|
list_domains_LIBS = \
|
|
-ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xentoollog $(OCAML_TOPLEVEL)/libs/xentoollog/xentoollog.cmxa \
|
|
-ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xl $(OCAML_TOPLEVEL)/libs/xl/xenlight.cmxa
|
|
|
|
list_domains_OBJS = xtl list_domains
|
|
|
|
raise_exception_LIBS = \
|
|
-ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xentoollog $(OCAML_TOPLEVEL)/libs/xentoollog/xentoollog.cmxa \
|
|
-ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xl $(OCAML_TOPLEVEL)/libs/xl/xenlight.cmxa
|
|
|
|
raise_exception_OBJS = raise_exception
|
|
|
|
dmesg_LIBS = \
|
|
-ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xentoollog $(OCAML_TOPLEVEL)/libs/xentoollog/xentoollog.cmxa \
|
|
-ccopt -L -ccopt $(OCAML_TOPLEVEL)/libs/xl $(OCAML_TOPLEVEL)/libs/xl/xenlight.cmxa
|
|
|
|
dmesg_OBJS = xtl dmesg
|
|
|
|
OCAML_PROGRAM = xtl send_debug_keys list_domains raise_exception dmesg
|
|
|
|
all: $(PROGRAMS)
|
|
|
|
bins: $(PROGRAMS)
|
|
|
|
install:
|
|
|
|
uninstall:
|
|
|
|
include $(OCAML_TOPLEVEL)/Makefile.rules
|