time-to-botec/ocaml/makefile

19 lines
331 B
Makefile
Raw Normal View History

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
2023-10-15 00:19:56 +00:00
OUT=./out/samples
2023-10-14 18:59:56 +00:00
build: $(SRC)
2023-10-15 00:19:56 +00:00
$(CC) $(SRC) -o $(OUT)
2023-10-14 19:12:42 +00:00
mv samples.cmi samples.cmx samples.o ./out/
run:
2023-10-15 00:19:56 +00:00
$(OUT)
time:
bash -c "time $(OUT)"