Skip to content
Snippets Groups Projects
Commit dda5c03e authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[dune] add release mode in Makefile

parent 166c3105
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,13 @@ $(error \ ...@@ -33,6 +33,13 @@ $(error \
"You should run ./configure first (or autoconf if there is no configure)") "You should run ./configure first (or autoconf if there is no configure)")
endif endif
RELEASE?=no
ifeq ($(RELEASE),yes)
DUNE_BUILD_OPTS=--release
else
DUNE_BUILD_OPTS=
endif
################### ###################
# Frama-C Version # # Frama-C Version #
################### ###################
...@@ -43,7 +50,7 @@ VERSION_CODENAME:=$(shell $(CAT) VERSION_CODENAME) ...@@ -43,7 +50,7 @@ VERSION_CODENAME:=$(shell $(CAT) VERSION_CODENAME)
.PHONY: all .PHONY: all
all: config.sed all: config.sed
dune build @install dune build $(DUNE_BUILD_OPTS) @install
ifeq ($(HAS_DOT),yes) ifeq ($(HAS_DOT),yes)
OPTDOT=Some \"$(DOT)\" OPTDOT=Some \"$(DOT)\"
......
...@@ -57,7 +57,7 @@ PTESTS=frama-c-ptests ...@@ -57,7 +57,7 @@ PTESTS=frama-c-ptests
else else
# PTESTS is internal # PTESTS is internal
PTESTS=dune exec --root ptests -- frama-c-ptests PTESTS=dune exec $(DUNE_BUILD_OPTS) --root ptests -- frama-c-ptests
#PTESTS=dune exec --root ptests -- frama-c-ptests -v #PTESTS=dune exec --root ptests -- frama-c-ptests -v
# Note: the public name of ptest.exe is frama-c-ptests # Note: the public name of ptest.exe is frama-c-ptests
...@@ -83,7 +83,7 @@ WTESTS=frama-c-wtests ...@@ -83,7 +83,7 @@ WTESTS=frama-c-wtests
else else
# WTESTS is internal to Frama-C # WTESTS is internal to Frama-C
WTESTS=dune exec --root ptests -- frama-c-wtests WTESTS=dune exec $(DUNE_BUILD_OPTS) --root ptests -- frama-c-wtests
# Note: the public name of wtest.exe is frama-c-wtests # Note: the public name of wtest.exe is frama-c-wtests
$(FRAMAC_WTESTS): ptests/wtests.ml $(FRAMAC_WTESTS): ptests/wtests.ml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment