]> xenbits.xensource.com Git - xen.git/commitdiff
tools: ocaml: push CFLAGS usage down into the specific bindings
authorIan Campbell <ian.campbell@citrix.com>
Thu, 31 Mar 2011 18:30:15 +0000 (19:30 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 31 Mar 2011 18:30:15 +0000 (19:30 +0100)
So each binding only builds against what it requires.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/ocaml/common.make
tools/ocaml/libs/eventchn/Makefile
tools/ocaml/libs/xb/Makefile
tools/ocaml/libs/xl/Makefile

index 6de48e19976c51732996baa78da8f4d31f250d84..04a0b6b1fff290a62381808a154cf9dcc688f14f 100644 (file)
@@ -9,7 +9,6 @@ OCAMLLEX ?= ocamllex
 OCAMLYACC ?= ocamlyacc
 
 CFLAGS += -fPIC -Werror
-CFLAGS += $(CFLAGS_xeninclude) $(CFLAGS_libxenctrl) $(CFLAGS_libxenstore) $(CFLAGS_libxenlight)
 CFLAGS-$(CONFIG_Linux) += -I/usr/lib64/ocaml -I/usr/lib/ocaml
 CFLAGS-$(CONFIG_NetBSD) += -I/usr/pkg/lib/ocaml -fPIC
 
index 69e08c160e0decc890cf2c2ff8f54bff96cdf593..926e3fbe26bc0d6fd0072077323c924dc5654406 100644 (file)
@@ -2,6 +2,8 @@ TOPLEVEL=$(CURDIR)/../..
 XEN_ROOT=$(TOPLEVEL)/../..
 include $(TOPLEVEL)/common.make
 
+CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_xeninclude)
+
 OBJS = eventchn
 INTF = $(foreach obj, $(OBJS),$(obj).cmi)
 LIBS = eventchn.cma eventchn.cmxa
index 317d879c2c0096f4f5eff93b6b2f3f123ecb9056..dc858828f1c046ae01c1fac995daae2a86ad07c0 100644 (file)
@@ -3,6 +3,8 @@ XEN_ROOT=$(TOPLEVEL)/../..
 include $(TOPLEVEL)/common.make
 
 CFLAGS += -I../mmap
+CFLAGS += $(CFLAGS_libxenctrl) # For xen_mb()
+CFLAGS += $(CFLAGS_xeninclude)
 OCAMLINCLUDE += -I ../mmap
 
 .NOTPARALLEL:
index e9f060818702ebc0f686c6c4537cc95bc981ced7..8e31b72424e7e1d60ed13a379c7d9b075387c7b2 100644 (file)
@@ -2,6 +2,8 @@ TOPLEVEL=$(CURDIR)/../..
 XEN_ROOT=$(TOPLEVEL)/../..
 include $(TOPLEVEL)/common.make
 
+CFLAGS += $(CFLAGS_libxenlight)
+
 OBJS = xl
 INTF = xl.cmi
 LIBS = xl.cma xl.cmxa