Source

StarML / Makefile

Full commit
.PHONY: all clean
EXEC=starml.exe
OBJ=types.cmo main.cmo
OCAMLFLAGS=-w A -warn-error A -g

all: $(EXEC)

$(EXEC): $(OBJ)
	ocamlc $(OCAMLFLAGS) -o $@ str.cma unix.cma $+
	
%.cmo: %.ml
	ocamlc $(OCAMLFLAGS) -c $<

clean:
	rm -f *.cmo *.cmi $(EXEC)