Commit 09c83a5e authored by Kim Nguyễn's avatar Kim Nguyễn

Add an option to compile in debugging mode.

parent 9da1d67c
...@@ -67,6 +67,11 @@ ifeq ($(INTERFACE), true) ...@@ -67,6 +67,11 @@ ifeq ($(INTERFACE), true)
OPT += -passopt -i OPT += -passopt -i
endif endif
ifeq ($(DEBUG), true)
OPT += -g
SYNTAX += -symbol DEBUG=\"1\"
endif
OCAMLFIND = ocamlfind OCAMLFIND = ocamlfind
CAMLC = $(OCAMLFIND) $(CAMLC_P) $(OPT) -package "$(PACKAGES)" CAMLC = $(OCAMLFIND) $(CAMLC_P) $(OPT) -package "$(PACKAGES)"
CAMLOPT = $(OCAMLFIND) $(CAMLOPT_P) $(OPT) -package "$(PACKAGES)" CAMLOPT = $(OCAMLFIND) $(CAMLOPT_P) $(OPT) -package "$(PACKAGES)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment