From: Ian Jackson <ian.jackson@eu.citrix.com>
To: xen-devel@lists.xensource.com
Cc: Julien Grall <Julien.Grall@arm.com>,
Stefano Stabellini <sstabellini@kernel.org>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
David Scott <dave@recoil.org>
Subject: [PATCH 2/2] ocaml: Substitute tools/ocaml/common.make with configure
Date: Fri, 20 Jan 2017 15:46:42 +0000 [thread overview]
Message-ID: <1484927202-28014-3-git-send-email-ian.jackson@eu.citrix.com> (raw)
In-Reply-To: <1484927202-28014-1-git-send-email-ian.jackson@eu.citrix.com>
Rename tools/ocaml/common.make to .in, and add it to the list of files
to generate. Add it to .gitignore.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
.gitignore | 1 +
tools/configure.ac | 1 +
tools/ocaml/common.make | 22 ----------------------
tools/ocaml/common.make.in | 22 ++++++++++++++++++++++
4 files changed, 24 insertions(+), 22 deletions(-)
delete mode 100644 tools/ocaml/common.make
create mode 100644 tools/ocaml/common.make.in
diff --git a/.gitignore b/.gitignore
index 01ad29e..ce4dc7b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -37,6 +37,7 @@ config.status
config.cache
config/Toplevel.mk
config/Paths.mk
+tools/ocaml/common.make
build-*
dist/*
diff --git a/tools/configure.ac b/tools/configure.ac
index 873e18d..ca855f6 100644
--- a/tools/configure.ac
+++ b/tools/configure.ac
@@ -7,6 +7,7 @@ AC_INIT([Xen Hypervisor Tools], m4_esyscmd([../version.sh ../xen/Makefile]),
AC_CONFIG_SRCDIR([libxl/libxl.c])
AC_CONFIG_FILES([
../config/Tools.mk
+ocaml/common.make
hotplug/FreeBSD/rc.d/xencommons
hotplug/FreeBSD/rc.d/xendriverdomain
hotplug/Linux/init.d/sysconfig.xencommons
diff --git a/tools/ocaml/common.make b/tools/ocaml/common.make
deleted file mode 100644
index d5478f6..0000000
--- a/tools/ocaml/common.make
+++ /dev/null
@@ -1,22 +0,0 @@
-include $(XEN_ROOT)/tools/Rules.mk
-
-CC ?= gcc
-OCAMLOPT ?= ocamlopt
-OCAMLC ?= ocamlc
-OCAMLMKLIB ?= ocamlmklib
-OCAMLDEP ?= ocamldep
-OCAMLLEX ?= ocamllex
-OCAMLYACC ?= ocamlyacc
-OCAMLFIND ?= ocamlfind
-
-CFLAGS += -fPIC -Werror -I$(shell ocamlc -where)
-
-OCAMLOPTFLAG_G := $(shell $(OCAMLOPT) -h 2>&1 | sed -n 's/^ *\(-g\) .*/\1/p')
-OCAMLOPTFLAGS = $(OCAMLOPTFLAG_G) -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) -cc $(CC) -w F -warn-error F
-OCAMLCFLAGS += -g $(OCAMLINCLUDE) -w F -warn-error F
-
-VERSION := 4.1
-
-OCAMLDESTDIR ?= $(DESTDIR)$(shell $(OCAMLFIND) printconf destdir)
-
-o= >$@.new && mv -f $@.new $@
diff --git a/tools/ocaml/common.make.in b/tools/ocaml/common.make.in
new file mode 100644
index 0000000..d5478f6
--- /dev/null
+++ b/tools/ocaml/common.make.in
@@ -0,0 +1,22 @@
+include $(XEN_ROOT)/tools/Rules.mk
+
+CC ?= gcc
+OCAMLOPT ?= ocamlopt
+OCAMLC ?= ocamlc
+OCAMLMKLIB ?= ocamlmklib
+OCAMLDEP ?= ocamldep
+OCAMLLEX ?= ocamllex
+OCAMLYACC ?= ocamlyacc
+OCAMLFIND ?= ocamlfind
+
+CFLAGS += -fPIC -Werror -I$(shell ocamlc -where)
+
+OCAMLOPTFLAG_G := $(shell $(OCAMLOPT) -h 2>&1 | sed -n 's/^ *\(-g\) .*/\1/p')
+OCAMLOPTFLAGS = $(OCAMLOPTFLAG_G) -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) -cc $(CC) -w F -warn-error F
+OCAMLCFLAGS += -g $(OCAMLINCLUDE) -w F -warn-error F
+
+VERSION := 4.1
+
+OCAMLDESTDIR ?= $(DESTDIR)$(shell $(OCAMLFIND) printconf destdir)
+
+o= >$@.new && mv -f $@.new $@
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-01-20 15:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-20 15:46 [PATCH 0/2] ocaml: Start on fixing brokenness when no ocamlopt Ian Jackson
2017-01-20 15:46 ` [PATCH 1/2] ocaml: Copy up-to-date m4/ocaml.m4 from forge.ocamlcore Ian Jackson
2017-01-20 15:46 ` Ian Jackson [this message]
2017-01-24 11:35 ` [PATCH 0/2] ocaml: Start on fixing brokenness when no ocamlopt Ian Jackson
2017-01-24 22:19 ` David Scott
2017-02-08 19:50 ` Julien Grall
2017-02-14 14:18 ` Julien Grall
2017-02-14 14:36 ` Julien Grall
[not found] ` <81966962-3dc6-88e7-054d-185ed5c35eab@arm.com>
[not found] ` <D4E716C2.34027%lars.kurth@citrix.com>
2017-03-30 14:40 ` ARM64 hardware in osstest (WAS: [PATCH 0/2] ocaml: Start on fixing brokenness when no ocamlopt) Ian Jackson
2017-03-30 15:17 ` Christian Lindig
2017-04-03 10:16 ` Julien Grall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1484927202-28014-3-git-send-email-ian.jackson@eu.citrix.com \
--to=ian.jackson@eu.citrix.com \
--cc=Julien.Grall@arm.com \
--cc=dave@recoil.org \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).