Files
xen/tools/fs-back/Makefile
T
2008-01-27 12:58:15 +00:00

41 lines
823 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
# Get gcc to generate the dependencies for us.
CFLAGS += -Wp,-MD,.$(@F).d
DEPS = .*.d
LIBS := -L. -L.. -L../lib
LIBS += $(LDFLAGS_libxenctrl)
LIBS += $(LDFLAGS_libxenstore)
LIBS += -lpthread -lrt
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)