summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6af2f74c64384c50f65673a2bf841f3d722d61ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
SRC = $(wildcard *.ml)
OBJ = $(SRC:.ml=.cmo)
PROG = prog


all: $(PROG)


$(PROG): $(OBJ)
	ocamlc -o $@ unix.cma $^


%.cmo: %.ml
	ocamlc -o $@ -c $^

.PHONY: all