mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
The previous changeset, e4f5949c44 ("tools: Add -Werror by default to all
tools/"), added "-Werror" to CFLAGS in tools/Rules.mk. Remove it from
everywhere else now it is duplicated.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
Acked-by: Daniel P. Smith <dpsmith@apertussolutions.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
23 lines
593 B
Makefile
23 lines
593 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)
|
|
|
|
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 $@
|