2010-06-15 10:49:03 +02:00
|
|
|
|
2011-07-27 09:12:09 +02:00
|
|
|
BUILD:= _build
|
|
|
|
OCAMLBUILD:=ocamlbuild
|
|
|
|
COMPILER:=heptc
|
2010-06-15 10:49:03 +02:00
|
|
|
|
2011-07-27 09:12:09 +02:00
|
|
|
TARGET:=byte
|
2010-06-15 10:49:03 +02:00
|
|
|
|
2011-07-27 09:12:09 +02:00
|
|
|
.PHONY: all opt byte debug profile clean
|
2010-06-15 10:49:03 +02:00
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
2011-07-27 09:12:09 +02:00
|
|
|
opt:
|
|
|
|
$(OCAMLBUILD) $(COMPILER).native
|
|
|
|
byte:
|
|
|
|
$(OCAMLBUILD) $(COMPILER).byte
|
2010-06-15 10:49:03 +02:00
|
|
|
|
2011-07-27 09:12:09 +02:00
|
|
|
debug:
|
|
|
|
$(OCAMLBUILD) $(COMPILER).d.byte
|
|
|
|
profile:
|
|
|
|
$(OCAMLBUILD) $(COMPILER).p.native
|
2010-06-15 10:49:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2011-07-27 09:12:09 +02:00
|
|
|
$(OCAMLBUILD).native -clean
|