2022-01-20 09:07:42 +00:00
|
|
|
STANDARD_FLAGS = -O3
|
2022-01-05 06:51:48 +00:00
|
|
|
STANDARD_COMPILE = ocamlopt $(STANDARD_FLAGS) -nopervasives -c
|
2022-01-20 09:07:42 +00:00
|
|
|
LIB_NAME = library
|
2022-01-05 06:51:48 +00:00
|
|
|
|
2022-01-20 09:07:42 +00:00
|
|
|
build:
|
2022-02-04 03:06:51 +00:00
|
|
|
make clean
|
2021-12-16 10:01:08 +00:00
|
|
|
|
2022-01-30 00:55:42 +00:00
|
|
|
ocamlopt $(STANDARD_FLAGS) -nopervasives -c general.mli general.ml
|
2021-12-16 10:01:08 +00:00
|
|
|
|
2022-01-30 00:55:42 +00:00
|
|
|
$(STANDARD_COMPILE) fatal.mli fatal.ml
|
2022-01-05 06:51:48 +00:00
|
|
|
$(STANDARD_COMPILE) int.mli int.ml
|
|
|
|
$(STANDARD_COMPILE) float.mli float.ml
|
|
|
|
$(STANDARD_COMPILE) option.mli option.ml
|
|
|
|
$(STANDARD_COMPILE) stack.mli stack.ml
|
|
|
|
$(STANDARD_COMPILE) list.mli list.ml
|
|
|
|
$(STANDARD_COMPILE) map.mli map.ml
|
|
|
|
$(STANDARD_COMPILE) queue.mli queue.ml
|
|
|
|
$(STANDARD_COMPILE) set.mli set.ml
|
|
|
|
$(STANDARD_COMPILE) tree.mli tree.ml
|
|
|
|
$(STANDARD_COMPILE) string.mli string.ml
|
2022-01-20 09:07:42 +00:00
|
|
|
$(STANDARD_COMPILE) char.mli char.ml
|
|
|
|
$(STANDARD_COMPILE) bool.mli bool.ml
|
2022-01-30 00:55:42 +00:00
|
|
|
$(STANDARD_COMPILE) terminal.mli terminal.ml
|
2022-02-04 03:06:51 +00:00
|
|
|
$(STANDARD_COMPILE) file.mli file.ml
|
|
|
|
$(STANDARD_COMPILE) array.mli array.ml
|
|
|
|
$(STANDARD_COMPILE) random.mli random.ml
|
2022-01-20 09:07:42 +00:00
|
|
|
|
2022-02-04 03:06:51 +00:00
|
|
|
ocamlopt -a general.cmx fatal.cmx int.cmx float.cmx option.cmx stack.cmx list.cmx map.cmx queue.cmx set.cmx tree.cmx string.cmx char.cmx bool.cmx terminal.cmx file.cmx array.cmx random.cmx -o $(LIB_NAME).cmxa
|
2021-12-16 10:01:08 +00:00
|
|
|
|
|
|
|
clean:
|
2022-01-20 09:07:42 +00:00
|
|
|
rm -f *.o *.a *.s *.cmi *.cmx *.cmxa *.cmo *.cma
|