Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
.PHONY: all clean test

ifdef CROSS
OCAMLLIB=$(abspath $(shell ocamlfind printconf path))
OCAMLBUILD=ocamlbuild -toolchain windows -I src -I lib -I parser -use-menhir -use-ocamlfind -classic-display \
-menhir "menhir --infer --explain" \
-ocamldep "ocamldep -predicates custom_ppx -ppx '$(OCAMLLIB)/ppx_deriving/ppx_deriving $(OCAMLLIB)/ppx_deriving/ppx_deriving_show.cma $(OCAMLLIB)/ppx_deriving_yojson/ppx_deriving_yojson.cma'" \
-ocamlc "ocamlc -predicates custom_ppx -ppx '$(OCAMLLIB)/ppx_deriving/ppx_deriving $(OCAMLLIB)/ppx_deriving/ppx_deriving_show.cma $(OCAMLLIB)/ppx_deriving_yojson/ppx_deriving_yojson.cma'" \
-ocamlopt "ocamlopt -predicates custom_ppx -ppx '$(OCAMLLIB)/ppx_deriving/ppx_deriving $(OCAMLLIB)/ppx_deriving/ppx_deriving_show.cma $(OCAMLLIB)/ppx_deriving_yojson/ppx_deriving_yojson.cma'"
else
OCAMLBUILD=ocamlbuild -I src -I lib -I parser -use-menhir -use-ocamlfind -classic-display \
-menhir "menhir --infer --explain"
endif

FLAVOR?=native
TARGETS=Kremlin.$(FLAVOR) Tests.$(FLAVOR)

Expand Down