Define polymorphic lenses and compile the runtime library

This commit is contained in:
milner committed 2019-02-11 13:34:00 +00:00
commit d30dc5d519
9 files changed
+61

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
OCAMLC ?= ocamlc
.PHONY: all test clean
all: fieldglass.cma
fieldglass.cmi: fieldglass.mli
$(OCAMLC) -c $<
fieldglass.cmo: fieldglass.ml fieldglass.cmi
$(OCAMLC) -c $<
fieldglass.cma: fieldglass.cmo
$(OCAMLC) -a $< -o $@
test: all
$(OCAMLC) fieldglass.cma runtime.ml -o runtime.byte
./runtime.byte
clean:
rm -f *.cmi *.cmo *.cma *.byte rewrite