ocaml-standard-library/makefile

18 lines
360 B
Makefile
Raw Normal View History

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