18 lines
378 B
Makefile
Raw Normal View History

2022-01-20 20:07:42 +11:00
CUSTOM_LIBRARY_LOCATION = lib
COMPILE = ocamlopt -O3 -nopervasives -I $(CUSTOM_LIBRARY_LOCATION) -c
2022-01-05 17:51:48 +11:00
build:
2022-01-20 20:07:42 +11:00
ocamlopt $(CUSTOM_LIBRARY_LOCATION)/library.cmxa -o program
2022-01-05 17:51:48 +11:00
2022-01-20 20:07:42 +11:00
mostlyclean:
2022-01-05 17:51:48 +11:00
rm -f *.o *.a *.s *.cmi *.cmx *.cmxa *.cmo *.cma main.mli
clean:
2022-01-20 20:07:42 +11:00
rm -f *.o *.a *.s *.cmi *.cmx *.cmxa *.cmo *.cma main.mli program
2022-01-05 17:51:48 +11:00
2022-01-20 20:07:42 +11:00
make install:
make build
make mostlyclean
2022-01-05 17:51:48 +11:00
run:
./program