2024-12-03 20:55:38 +01:00
|
|
|
CC = ocamlopt
|
|
|
|
RM = rm -rf
|
|
|
|
|
2024-12-03 21:23:33 +01:00
|
|
|
NAME = main
|
|
|
|
EXE = a.out
|
|
|
|
LIB = unix.cmxa -I +unix
|
2024-12-03 20:55:38 +01:00
|
|
|
|
2024-12-03 21:23:33 +01:00
|
|
|
|
|
|
|
all: run
|
|
|
|
|
|
|
|
compilation:
|
|
|
|
$(CC) -o $(EXE) $(LIB) $(NAME).ml
|
|
|
|
|
|
|
|
run: compilation
|
|
|
|
./$(EXE)
|
2024-12-03 20:55:38 +01:00
|
|
|
|
|
|
|
EXTS = cmi cmx o
|
|
|
|
clean:
|
2024-12-03 21:23:33 +01:00
|
|
|
$(RM) $(EXE) $(foreach ext,$(EXTS),$(NAME).$(ext))
|