mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Create two new variables called APPEND_ and PREPEND_ to add compile
flags at the beginning or at the end of the search path.
Added a new semantic for user defined compile flags, here is the list
of possible options:
PREPEND_LIB: add libraries to the search path before xen
(before xen installation folders).
PREPEND_INCLUDES: add headers to the search path before xen
(before xen installation folders).
APPEND_LIB: add libraries to the search path at the end
(after all xen installation folders have been added).
APPEND_INCLUDES: add libraries to the search path at the end
(after all xen installation folders have been added).
EXTRA_INCLUDES and EXTRA_LIB can still be used, and they will have the
same effect as PREPEND_INCLUDES and PREPEND_LIB.
Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
XEN_ROOT=$(CURDIR)/../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
CFLAGS += -Werror
|
|
|
|
CFLAGS += $(CFLAGS_libxenctrl)
|
|
LDLIBS += $(LDLIBS_libxenctrl)
|
|
|
|
BIN = xentrace xentrace_setsize
|
|
LIBBIN = xenctx
|
|
SCRIPTS = xentrace_format
|
|
MAN1 = $(wildcard *.1)
|
|
MAN8 = $(wildcard *.8)
|
|
|
|
.PHONY: all
|
|
all: build
|
|
|
|
.PHONY: build
|
|
build: $(BIN) $(LIBBIN)
|
|
|
|
.PHONY: install
|
|
install: build
|
|
$(INSTALL_DIR) $(DESTDIR)$(BINDIR)
|
|
[ -z "$(LIBBIN)" ] || $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR)
|
|
$(INSTALL_DIR) $(DESTDIR)$(MAN1DIR)
|
|
$(INSTALL_DIR) $(DESTDIR)$(MAN8DIR)
|
|
$(INSTALL_PROG) $(BIN) $(DESTDIR)$(BINDIR)
|
|
$(INSTALL_PYTHON_PROG) $(SCRIPTS) $(DESTDIR)$(BINDIR)
|
|
[ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)$(PRIVATE_BINDIR)
|
|
$(INSTALL_DATA) $(MAN1) $(DESTDIR)$(MAN1DIR)
|
|
$(INSTALL_DATA) $(MAN8) $(DESTDIR)$(MAN8DIR)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) *.a *.so *.o *.rpm $(BIN) $(LIBBIN) $(DEPS)
|
|
|
|
xentrace: xentrace.o
|
|
$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) $(APPEND_LDFLAGS)
|
|
|
|
xenctx: xenctx.o
|
|
$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) $(APPEND_LDFLAGS)
|
|
|
|
xentrace_setsize: setsize.o
|
|
$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) $(APPEND_LDFLAGS)
|
|
|
|
-include $(DEPS)
|
|
|