Skip to content

Commit e151f76

Browse files
committed
New makefile target : compiling result to native code.
1 parent 54e550d commit e151f76

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

examples/ocaml/Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,18 @@ MLANG=$(MLANG_BIN) $(MLANG_DEFAULT_OPTS) $(OPTIMIZE_FLAG)
1212
all: backend_tests $(shell find . -name "run_*.py")
1313

1414
clean:
15-
rm -f Ir_*.ml
15+
rm -f ir_*.ml
1616

1717
##################################################
1818
# Generating and running Java files from Mlang
1919
##################################################
2020

21-
.PRECIOUS: Ir_%.ml
22-
Ir_%.ml: ../../m_specs/%.m_spec
21+
.PRECIOUS: ir_%.ml
22+
ir_%.ml: ../../m_specs/%.m_spec
2323
$(MLANG) \
2424
--backend ocaml --output $@ \
2525
--function_spec $^ \
2626
$(SOURCE_FILES)
27+
28+
ir_%.exe: ir_%.ml
29+
ocamlfind opt -o $@ $^

0 commit comments

Comments
 (0)