aboutsummaryrefslogtreecommitdiff
path: root/ocaml/Makefile
diff options
context:
space:
mode:
authorChouser <chouser@n01se.net>2015-01-22 02:59:48 -0500
committerChouser <chouser@n01se.net>2015-01-30 12:54:42 -0500
commit921a951fe4d088e60ce25866344bd534420f9ec6 (patch)
tree411999aa4176c13e61f3cda4508f873f1f067975 /ocaml/Makefile
parent59d10e1bd703f65e12fef85bceef4204f82685fb (diff)
downloadmal-921a951fe4d088e60ce25866344bd534420f9ec6.tar.gz
mal-921a951fe4d088e60ce25866344bd534420f9ec6.zip
Ocaml: Add step 2, nothing optional
Diffstat (limited to 'ocaml/Makefile')
-rw-r--r--ocaml/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/ocaml/Makefile b/ocaml/Makefile
index a46b82a..a526ecf 100644
--- a/ocaml/Makefile
+++ b/ocaml/Makefile
@@ -1,14 +1,17 @@
-STEPS = step0_repl.ml step1_read_print.ml
+STEPS = step0_repl.ml step1_read_print.ml step2_eval.ml
MODULES = types.ml reader.ml printer.ml
LIBS = str.cma
BINS = $(STEPS:%.ml=%)
-all: $(BINS) mal oc
+all: $(BINS) mal
mal: $(word $(words $(BINS)),$(BINS))
cp $< $@
+repl: $(MODULES)
+ rlwrap ocaml $(LIBS) $(MODULES:%.ml=%.cmo)
+
$(BINS): %: %.ml $(MODULES)
ocamlc $(LIBS) $(MODULES) $< -o $@