20 lines
243 B
Makefile
20 lines
243 B
Makefile
|
CC = ocamlopt
|
||
|
RM = rm -rf
|
||
|
|
||
|
NAME = main
|
||
|
EXE = a.out
|
||
|
LIB = unix.cmxa -I +unix
|
||
|
|
||
|
|
||
|
all: run
|
||
|
|
||
|
compilation:
|
||
|
$(CC) -o $(EXE) $(LIB) $(NAME).ml
|
||
|
|
||
|
run: compilation
|
||
|
./$(EXE)
|
||
|
|
||
|
EXTS = cmi cmx o
|
||
|
clean:
|
||
|
$(RM) $(EXE) $(foreach ext,$(EXTS),$(NAME).$(ext))
|