-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (17 loc) · 986 Bytes
/
Makefile
File metadata and controls
17 lines (17 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
RESULT=test
SRC = ./src
BIN = ./bin
all:
ocamlc -I $(BIN) -I $(SRC) -g -a $(SRC)/tree.ml -o $(BIN)/tree.cma
ocamlc -I $(BIN) -I $(SRC) -g -a graphics.cma $(SRC)/display.ml -o $(BIN)/display.cma
ocamlc -i $(SRC)/tree.ml > $(SRC)/tree.mli
ocamlc -I $(BIN) -I $(SRC) -g $(BIN)/tree.cma -a $(SRC)/recti.ml -o $(BIN)/recti.cma -I $(SRC)
ocamlc -I $(BIN) -I $(SRC) -i tree.cma $(SRC)/recti.ml > $(SRC)/recti.mli
ocamlc -I $(BIN) -I $(SRC) -g $(BIN)/tree.cma $(BIN)/display.cma -a $(SRC)/eucli.ml -o $(BIN)/eucli.cma -I $(SRC)
ocamlc -I $(BIN) -I $(SRC) -i tree.cma $(SRC)/eucli.ml > $(SRC)/eucli.mli
ocamlc -I $(BIN) -I $(SRC) -g display.cma tree.cma recti.cma $(SRC)/test_recti.ml -o test_recti.exe
ocamlc -I $(BIN) -I $(SRC) -g tree.cma eucli.cma $(SRC)/test_eucli.ml -o test_eucli.exe -I $(BIN)
mv $(SRC)/*.cmi $(BIN)
mv $(SRC)/*.cmo $(BIN)
clean:
rm -rf $(SRC)/*.cma $(SRC)/*.cmo $(BIN)/*.cma $(BIN)/*.cmo $(SRC)/*.cmi $(BIN)/*.cmi $(SRC)/*.mli test_eucli.exe test_recti.exe