2023-10-14 18:59:56 +00:00
|
|
|
# Compiler
|
|
|
|
CC=ocamlopt
|
|
|
|
# ocamlopt: platform-specific, faster
|
|
|
|
# ocamlc: platform-independent intermediate representation, run with ocamlrun
|
|
|
|
|
|
|
|
# Main file
|
|
|
|
SRC=samples.ml
|
|
|
|
|
|
|
|
build: $(SRC)
|
2023-10-14 19:12:42 +00:00
|
|
|
$(CC) $(SRC) -o out/samples
|
|
|
|
mv samples.cmi samples.cmx samples.o ./out/
|
|
|
|
|
|
|
|
run:
|
|
|
|
./out/samples
|