mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Xen 4.1 is more than a decade stale now. Use the same mechanism as elsewhere in the tree to get the current version number. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Christian Lindig <christian.lindig@cloud.com> Reviewed-by: Edwin Török <edwin.torok@cloud.com>
20 lines
511 B
Makefile
20 lines
511 B
Makefile
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
CC ?= gcc
|
|
OCAMLOPT ?= ocamlopt
|
|
OCAMLC ?= ocamlc
|
|
OCAMLMKLIB ?= ocamlmklib
|
|
OCAMLDEP ?= ocamldep
|
|
OCAMLLEX ?= ocamllex
|
|
OCAMLYACC ?= ocamlyacc
|
|
OCAMLFIND ?= ocamlfind
|
|
|
|
CFLAGS += -fPIC -I$(shell ocamlc -where)
|
|
|
|
OCAMLOPTFLAGS = -g -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) -w F -warn-error F
|
|
OCAMLCFLAGS += -g $(OCAMLINCLUDE) -w F -warn-error F
|
|
|
|
VERSION := $(shell $(XEN_ROOT)/version.sh $(XEN_ROOT)/xen/Makefile)
|
|
|
|
OCAMLDESTDIR ?= $(DESTDIR)$(shell $(OCAMLFIND) printconf destdir)
|