ia64/xen-unstable

view tools/fs-back/Makefile @ 17022:fbbc0523779e

ioemu stubdom: make daemonize optional
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Feb 11 10:03:48 2008 +0000 (2008-02-11)
parents a59e0510780b
children bd78714b8594
line source
1 XEN_ROOT = ../..
2 include $(XEN_ROOT)/tools/Rules.mk
4 INCLUDES += -I.. -I../lib
6 IBIN = fs-backend
8 CFLAGS += -Werror
9 CFLAGS += -Wno-unused
10 CFLAGS += -fno-strict-aliasing
11 CFLAGS += $(CFLAGS_libxenctrl)
12 CFLAGS += $(CFLAGS_libxenstore)
13 CFLAGS += $(INCLUDES) -I.
14 CFLAGS += -D_GNU_SOURCE
16 # Get gcc to generate the dependencies for us.
17 CFLAGS += -Wp,-MD,.$(@F).d
18 DEPS = .*.d
20 LIBS := -L. -L.. -L../lib
21 LIBS += $(LDFLAGS_libxenctrl)
22 LIBS += $(LDFLAGS_libxenstore)
23 LIBS += -lpthread -lrt
25 OBJS := fs-xenbus.o fs-ops.o
27 all: $(IBIN)
29 fs-backend: $(OBJS) fs-backend.c
30 $(CC) $(CFLAGS) -o fs-backend $(OBJS) $(LIBS) fs-backend.c
32 install: all
33 $(INSTALL_PROG) $(IBIN) $(DESTDIR)$(SBINDIR)
35 clean:
36 rm -rf *.o *~ $(DEPS) xen $(IBIN) $(LIB)
38 .PHONY: clean install
40 -include $(DEPS)