This commit is contained in:
Mylloon 2024-12-03 21:23:33 +01:00
parent 547477df92
commit 56e94072ed
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,13 +1,19 @@
CC = ocamlopt
RM = rm -rf
OUTPUT = exe.byte
NAME = main
EXE = a.out
LIB = unix.cmxa -I +unix
main:
$(CC) -o $(OUTPUT) $(LIB) $(NAME).ml
all: run
compilation:
$(CC) -o $(EXE) $(LIB) $(NAME).ml
run: compilation
./$(EXE)
EXTS = cmi cmx o
clean:
$(RM) $(OUTPUT) $(foreach ext,$(EXTS),$(NAME).$(ext))
$(RM) $(EXE) $(foreach ext,$(EXTS),$(NAME).$(ext))