Files
xen/tools/fs-back/Makefile
T
Stefano Stabellini ba26a1e197 split LDLIBS from LDFLAGS to fix link errors in recent toolchains
Linker command lines are order-sensitive.
Move linker options -Lfoo -lfoo from LDFLAGS to LDLIBS and place this new
variable after the objects to link. This resolves build errors in xenpagin
and blktap with recent toolchains.

rename SHLIB_CFLAGS to SHLIB_LDFLAGS
rename LDFLAGS_* to LDLIBS_*
move LDFLAGS usage after CFLAGS in CC calls
remove stale comments in xenpaging Makefile

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
2010-08-11 18:02:32 +01:00

37 lines
726 B
Makefile

XEN_ROOT = ../..
include $(XEN_ROOT)/tools/Rules.mk
INCLUDES += -I.. -I../lib
IBIN = fs-backend
CFLAGS += -Werror
CFLAGS += -Wno-unused
CFLAGS += -fno-strict-aliasing
CFLAGS += $(CFLAGS_libxenctrl)
CFLAGS += $(CFLAGS_libxenstore)
CFLAGS += $(INCLUDES) -I.
CFLAGS += -D_GNU_SOURCE
LIBS := -L. -L.. -L../lib
LIBS += $(LDLIBS_libxenctrl)
LIBS += $(LDLIBS_libxenstore)
LIBS += -lrt -lpthread
OBJS := fs-xenbus.o fs-ops.o
all: $(IBIN)
fs-backend: $(OBJS) fs-backend.c
$(CC) $(CFLAGS) -o fs-backend $(OBJS) $(LIBS) fs-backend.c
install: all
$(INSTALL_PROG) $(IBIN) $(DESTDIR)$(SBINDIR)
clean:
rm -rf *.o *~ $(DEPS) xen $(IBIN) $(LIB)
.PHONY: clean install
-include $(DEPS)