aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-01-27 12:57:14 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-01-27 12:57:14 +0000
commitad44c013ec383964e20248f73eeece9f3730c3ff (patch)
treeba2c1d701bfa7e7eb81e4bd098351a784c09357c /tools/xenstore
parent9f602ddea9e12233d43f2fe2021d33d40c87455a (diff)
downloadxen-ad44c013ec383964e20248f73eeece9f3730c3ff.tar.gz
xen-ad44c013ec383964e20248f73eeece9f3730c3ff.tar.bz2
xen-ad44c013ec383964e20248f73eeece9f3730c3ff.zip
Define CFLAGS and LDFLAGS for libxenctrl.
Signed-off-by: Bastian Blank <waldi@debian.org>
Diffstat (limited to 'tools/xenstore')
-rw-r--r--tools/xenstore/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/xenstore/Makefile b/tools/xenstore/Makefile
index 3b31e9a4b1..3d6700c0b8 100644
--- a/tools/xenstore/Makefile
+++ b/tools/xenstore/Makefile
@@ -11,12 +11,11 @@ BASECFLAGS=-Werror
BASECFLAGS += -Wp,-MD,.$(@F).d
PROG_DEP = .*.d
BASECFLAGS+= $(PROFILE)
-BASECFLAGS+= -I$(XEN_ROOT)/tools/libxc
+BASECFLAGS+= $(CFLAGS_libxenctrl)
BASECFLAGS+= -I.
-BASECFLAGS+= -I$(XEN_INCLUDE)
CFLAGS += $(BASECFLAGS)
-LDFLAGS += $(PROFILE) -L$(XEN_LIBXC)
+LDFLAGS += $(PROFILE)
CLIENTS := xenstore-exists xenstore-list xenstore-read xenstore-rm xenstore-chmod
CLIENTS += xenstore-write
@@ -34,7 +33,7 @@ XENSTORED_OBJS += $(XENSTORED_OBJS_y)
all: libxenstore.so libxenstore.a xenstored $(CLIENTS) xs_tdb_dump xenstore-control xenstore-ls
xenstored: $(XENSTORED_OBJS)
- $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -lxenctrl $(SOCKET_LIBS) -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) $(LDFLAGS_libxenctrl) $(SOCKET_LIBS) -o $@
$(CLIENTS): xenstore-%: xenstore_%.o libxenstore.so
$(CC) $(CFLAGS) $(LDFLAGS) $< $(LOADLIBES) $(LDLIBS) -L. -lxenstore $(SOCKET_LIBS) -o $@