14 lines
212 B
Makefile
14 lines
212 B
Makefile
|
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))
|