2022-02-15 11:05:11 +00:00
|
|
|
COMPILER = ocamlopt
|
|
|
|
EXT = .cmx
|
|
|
|
AEXT = .cmxa
|
|
|
|
|
2022-01-20 09:07:42 +00:00
|
|
|
CUSTOM_LIBRARY_LOCATION = lib
|
2022-02-15 11:05:11 +00:00
|
|
|
STANDARD_FLAGS = -nopervasives -O3
|
|
|
|
COMPILE = $(COMPILER) $(STANDARD_FLAGS) -I $(CUSTOM_LIBRARY_LOCATION) -c
|
2022-01-05 06:51:48 +00:00
|
|
|
|
|
|
|
build:
|
2022-02-15 11:05:11 +00:00
|
|
|
$(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:
|
2022-02-04 03:06:51 +00:00
|
|
|
rm -f *.o *.a *.s *.cmi *.cmx *.cmxa *.cmo *.cma
|
2022-01-05 06:51:48 +00:00
|
|
|
|
|
|
|
clean:
|
2022-02-15 11:05:11 +00:00
|
|
|
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
|