makefiles/ocaml.mk

14 lines
212 B
Makefile
Raw Normal View History

2024-12-03 20:55:38 +01:00
CC = ocamlopt
RM = rm -rf
OUTPUT = exe.byte
NAME = main
LIB = unix.cmxa -I +unix
main:
$(CC) -o $(OUTPUT) $(LIB) $(NAME).ml
EXTS = cmi cmx o
clean:
$(RM) $(OUTPUT) $(foreach ext,$(EXTS),$(NAME).$(ext))