From 1973427f962122ab6dc251546f20393a2be33e5b Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 9 Jan 2020 12:17:45 +0100 Subject: First attempt Signed-off-by: Olivier Gayot --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6af2f74 --- /dev/null +++ b/Makefile @@ -0,0 +1,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 -- cgit v1.2.3