mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
and xenconsole out of /usr/libexec/xen and into one of /usr/lib/xen/bin or /usr/lib64/xen/bin. Remove all the PATH hacking inside Xend, and rely upon the PATH being set correctly from outside. Added an auxbin module for handling the hacky stuff. Replace the few /usr/bin/python bang paths with /usr/bin/env python. Signed-off-by: Ewan Mellor <ewan@xensource.com>
38 lines
977 B
Makefile
38 lines
977 B
Makefile
|
|
XEN_ROOT=../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
DAEMON_INSTALL_DIR = /usr/sbin
|
|
CLIENT_INSTALL_DIR = /usr/$(LIBDIR)/xen/bin
|
|
|
|
INSTALL = install
|
|
INSTALL_PROG = $(INSTALL) -m0755
|
|
INSTALL_DIR = $(INSTALL) -d -m0755
|
|
|
|
CFLAGS += -Wall -Werror -g3
|
|
|
|
CFLAGS += -I $(XEN_LIBXC)
|
|
CFLAGS += -I $(XEN_XENSTORE)
|
|
|
|
BIN = xenconsoled xenconsole
|
|
|
|
all: $(BIN)
|
|
|
|
clean:
|
|
$(RM) *.a *.so *.o *.rpm $(BIN)
|
|
$(RM) client/*.o daemon/*.o
|
|
|
|
xenconsoled: $(patsubst %.c,%.o,$(wildcard daemon/*.c))
|
|
$(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \
|
|
-lxenctrl -lxenstore
|
|
|
|
xenconsole: $(patsubst %.c,%.o,$(wildcard client/*.c))
|
|
$(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \
|
|
-lxenctrl -lxenstore
|
|
|
|
install: $(BIN)
|
|
$(INSTALL_DIR) -p $(DESTDIR)/$(DAEMON_INSTALL_DIR)
|
|
$(INSTALL_PROG) xenconsoled $(DESTDIR)/$(DAEMON_INSTALL_DIR)
|
|
$(INSTALL_DIR) -p $(DESTDIR)/$(CLIENT_INSTALL_DIR)
|
|
$(INSTALL_PROG) xenconsole $(DESTDIR)/$(CLIENT_INSTALL_DIR)
|