mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +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>
33 lines
852 B
Makefile
33 lines
852 B
Makefile
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
CFLAGS += -Wno-unknown-pragmas -I$(XEN_ROOT)/tools/libfsimage/common/
|
|
CFLAGS += -Werror -D_GNU_SOURCE
|
|
LDFLAGS += -L../common/
|
|
|
|
PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y))
|
|
|
|
FSDIR-$(CONFIG_Linux) = $(LIBDIR)/fs/$(FS)
|
|
FSDIR-$(CONFIG_SunOS)-x86_64 = $(PREFIX)/lib/fs/$(FS)/64
|
|
FSDIR-$(CONFIG_SunOS)-x86_32 = $(PREFIX)/lib/fs/$(FS)/
|
|
FSDIR-$(CONFIG_SunOS) = $(FSDIR-$(CONFIG_SunOS)-$(XEN_TARGET_ARCH))
|
|
FSDIR-$(CONFIG_NetBSD) = $(LIBDIR)/fs/$(FS)
|
|
FSDIR = $(FSDIR-y)
|
|
|
|
FSLIB = fsimage.so
|
|
|
|
.PHONY: fs-all
|
|
fs-all: $(FSLIB)
|
|
|
|
.PHONY: fs-install
|
|
fs-install: fs-all
|
|
$(INSTALL_DIR) $(DESTDIR)$(FSDIR)
|
|
$(INSTALL_PROG) $(FSLIB) $(DESTDIR)$(FSDIR)
|
|
|
|
$(FSLIB): $(PIC_OBJS)
|
|
$(CC) $(LDFLAGS) $(SHLIB_LDFLAGS) -o $@ $^ -lfsimage $(FS_LIBDEPS) $(APPEND_LDFLAGS)
|
|
|
|
clean distclean:
|
|
rm -f $(PIC_OBJS) $(FSLIB) $(DEPS)
|
|
|
|
-include $(DEPS)
|