|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 12 of 30] tools: consistently use $({CFLAGS, LDLIBS}_
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1300718506 0
# Node ID d189faef58e1ebec67571879f86519f3aacf3b53
# Parent 6fda0df59ce0845d8408de933b8d323018ad4abf
tools: consistently use $({CFLAGS,LDLIBS}_libxenstore) instead of open coding.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 6fda0df59ce0 -r d189faef58e1 tools/ocaml/common.make
--- a/tools/ocaml/common.make Mon Mar 21 14:41:46 2011 +0000
+++ b/tools/ocaml/common.make Mon Mar 21 14:41:46 2011 +0000
@@ -9,7 +9,7 @@ OCAMLYACC ?= ocamlyacc
OCAMLYACC ?= ocamlyacc
CFLAGS += -fPIC -Werror
-CFLAGS += $(CFLAGS_xeninclude) $(CFLAGS_libxenctrl) -I$(TOPLEVEL)/../xenstore
-I$(TOPLEVEL)/../libxl
+CFLAGS += $(CFLAGS_xeninclude) $(CFLAGS_libxenctrl) $(CFLAGS_libxenstore)
-I$(TOPLEVEL)/../libxl
CFLAGS-$(CONFIG_Linux) += -I/usr/lib64/ocaml -I/usr/lib/ocaml
CFLAGS-$(CONFIG_NetBSD) += -I/usr/pkg/lib/ocaml -fPIC
diff -r 6fda0df59ce0 -r d189faef58e1 tools/xenstat/libxenstat/Makefile
--- a/tools/xenstat/libxenstat/Makefile Mon Mar 21 14:41:46 2011 +0000
+++ b/tools/xenstat/libxenstat/Makefile Mon Mar 21 14:41:46 2011 +0000
@@ -36,9 +36,9 @@ SONAME_FLAGS=-Wl,$(SONAME_LDFLAG) -Wl,li
WARN_FLAGS=-Wall -Werror
-CFLAGS+=-Isrc $(CFLAGS_libxenctrl) -I$(XEN_XENSTORE) $(CFLAGS_xeninclude)
+CFLAGS+=-Isrc $(CFLAGS_libxenctrl) $(CFLAGS_libxenstore) $(CFLAGS_xeninclude)
LDFLAGS+=-Lsrc -L$(XEN_XENSTORE)/
-LDLIBS-y = -lxenstore $(LDLIBS_libxenctrl)
+LDLIBS-y = $(LDLIBS_libxenstore) $(LDLIBS_libxenctrl)
LDLIBS-$(CONFIG_SunOS) += -lkstat
ARLIBS-y = $(XEN_XENSTORE)/libxenstore.so $(XEN_LIBXC)/libxenctrl.so
ARLIBS-x86_64 = /usr/lib/amd64/libkstat.so
diff -r 6fda0df59ce0 -r d189faef58e1 tools/xenstore/Makefile
--- a/tools/xenstore/Makefile Mon Mar 21 14:41:46 2011 +0000
+++ b/tools/xenstore/Makefile Mon Mar 21 14:41:46 2011 +0000
@@ -53,10 +53,10 @@ xenstored: $(XENSTORED_OBJS)
ln -f xenstore $@
xenstore: xenstore_client.o $(LIBXENSTORE)
- $(CC) $(CFLAGS) $(LDFLAGS) $< -L. -lxenstore $(SOCKET_LIBS) -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) $< $(LDLIBS_libxenstore) $(SOCKET_LIBS) -o $@
xenstore-control: xenstore_control.o $(LIBXENSTORE)
- $(CC) $(CFLAGS) $(LDFLAGS) $< -L. -lxenstore $(SOCKET_LIBS) -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) $< $(LDLIBS_libxenstore) $(SOCKET_LIBS) -o $@
xs_tdb_dump: xs_tdb_dump.o utils.o tdb.o talloc.o
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 10 of 30] tools: consistently use $(CFLAGS_xeninclude) instead of open coding, (continued)
[Xen-devel] [PATCH 14 of 30] tools: xenstat: install and use shared library, Ian Campbell
[Xen-devel] [PATCH 12 of 30] tools: consistently use $({CFLAGS, LDLIBS}_libxenstore) instead of open coding,
Ian Campbell <=
[Xen-devel] [PATCH 15 of 30] tools: Drop $(X11_LDPATH) from build, Ian Campbell
[Xen-devel] [PATCH 07 of 30] tools: remove unnecessary uses of -I, Ian Campbell
[Xen-devel] [PATCH 17 of 30] tools: ocaml: link xl bindings against libxl, Ian Campbell
[Xen-devel] [PATCH 18 of 30] tools: ocaml: link evtchn bindings against libxenctrl, Ian Campbell
[Xen-devel] [PATCH 16 of 30] tools: allow Makefiles to define CFLAGS_foo.o, Ian Campbell
[Xen-devel] [PATCH 19 of 30] tools: users of libxl currently need to see libxc and libxenstore headers, Ian Campbell
[Xen-devel] [PATCH 20 of 30] tools: ocaml: push CFLAGS usage down into the specific bindings, Ian Campbell
[Xen-devel] [PATCH 21 of 30] tools: flask: Remove BASECFLAGS, just use CFLAGS, Ian Campbell
[Xen-devel] [PATCH 22 of 30] tools: flask: remove $(LOADLIBES), Ian Campbell
[Xen-devel] [PATCH 23 of 30] tools: provide generic rules for compiling .S files, Ian Campbell
|
|
|
|
|