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:
|
2022-01-05 06:51:48 +00:00
|
|
|
rm -f *.o *.a *.s *.cmi *.cmx *.cmxa *.cmo *.cma main.mli
|
|
|
|
|
|
|
|
clean:
|
2022-01-20 09:07:42 +00:00
|
|
|
rm -f *.o *.a *.s *.cmi *.cmx *.cmxa *.cmo *.cma main.mli 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
|