ocaml-standard-library/makefile

23 lines
456 B
Makefile
Raw Normal View History

COMPILER = ocamlopt
EXT = .cmx
AEXT = .cmxa
2022-01-20 09:07:42 +00:00
CUSTOM_LIBRARY_LOCATION = lib
STANDARD_FLAGS = -nopervasives -O3
COMPILE = $(COMPILER) $(STANDARD_FLAGS) -I $(CUSTOM_LIBRARY_LOCATION) -c
2022-01-05 06:51:48 +00:00
build:
$(COMPILER) -I $(CUSTOM_LIBRARY_LOCATION) library$(AEXT) -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 *.so *.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