mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Reuse automake variable instead of inventing a private variable. The result of this command: git grep -wnl LIBDIR | xargs sed -i 's@LIBDIR@libdir@g' Signed-off-by: Olaf Hering <olaf@aepfle.de> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
28 lines
629 B
Makefile
28 lines
629 B
Makefile
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
CFLAGS += -Wno-unknown-pragmas -I$(XEN_ROOT)/tools/libfsimage/common/ -DFSIMAGE_FSDIR=\"$(FSDIR)\"
|
|
CFLAGS += -Werror -D_GNU_SOURCE
|
|
LDFLAGS += -L../common/
|
|
|
|
PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y))
|
|
|
|
FSDIR = $(libdir)/fs
|
|
|
|
FSLIB = fsimage.so
|
|
|
|
.PHONY: fs-all
|
|
fs-all: $(FSLIB)
|
|
|
|
.PHONY: fs-install
|
|
fs-install: fs-all
|
|
$(INSTALL_DIR) $(DESTDIR)$(FSDIR)/$(FS)
|
|
$(INSTALL_PROG) $(FSLIB) $(DESTDIR)$(FSDIR)/$(FS)
|
|
|
|
$(FSLIB): $(PIC_OBJS)
|
|
$(CC) $(LDFLAGS) $(SHLIB_LDFLAGS) -o $@ $^ -lfsimage $(FS_LIBDEPS) $(APPEND_LDFLAGS)
|
|
|
|
clean distclean::
|
|
rm -f $(PIC_OBJS) $(FSLIB) $(DEPS)
|
|
|
|
-include $(DEPS)
|