2011-10-20 18:06:23 +02:00
|
|
|
include ../config
|
2010-06-15 10:49:03 +02:00
|
|
|
|
2011-10-20 18:06:23 +02:00
|
|
|
ifeq ($(ENABLE_SIMULATOR), yes)
|
|
|
|
BIN:=heptc.$(TARGET) hepts.$(TARGET)
|
|
|
|
else
|
|
|
|
BIN:=heptc.$(TARGET)
|
|
|
|
endif
|
2010-06-15 10:49:03 +02:00
|
|
|
|
2011-10-20 18:06:23 +02:00
|
|
|
.PHONY: all clean opt byte clean debug install
|
2010-06-15 10:49:03 +02:00
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
2011-07-27 09:12:09 +02:00
|
|
|
opt:
|
2011-10-20 18:06:23 +02:00
|
|
|
ifeq ($(ENABLE_SIMULATOR), yes)
|
|
|
|
$(OCAMLBUILD) $(COMPILER).native $(SIMULATOR).native
|
|
|
|
else
|
2011-07-27 09:12:09 +02:00
|
|
|
$(OCAMLBUILD) $(COMPILER).native
|
2011-10-20 18:06:23 +02:00
|
|
|
endif
|
|
|
|
|
2011-07-27 09:12:09 +02:00
|
|
|
byte:
|
2011-10-20 18:06:23 +02:00
|
|
|
ifeq ($(ENABLE_SIMULATOR), yes)
|
|
|
|
$(OCAMLBUILD) $(COMPILER).byte $(SIMULATOR).byte
|
|
|
|
else
|
2011-07-27 09:12:09 +02:00
|
|
|
$(OCAMLBUILD) $(COMPILER).byte
|
2011-10-20 18:06:23 +02:00
|
|
|
endif
|
2010-06-15 10:49:03 +02:00
|
|
|
|
2011-07-27 09:12:09 +02:00
|
|
|
debug:
|
2011-10-20 18:06:23 +02:00
|
|
|
ifeq ($(ENABLE_SIMULATOR), yes)
|
|
|
|
$(OCAMLBUILD) $(COMPILER).d.byte $(SIMULATOR).d.byte
|
|
|
|
else
|
2011-07-27 09:12:09 +02:00
|
|
|
$(OCAMLBUILD) $(COMPILER).d.byte
|
2011-10-20 18:06:23 +02:00
|
|
|
endif
|
|
|
|
|
2011-07-27 09:12:09 +02:00
|
|
|
profile:
|
2011-10-20 18:06:23 +02:00
|
|
|
ifeq ($(ENABLE_SIMULATOR), yes)
|
|
|
|
$(OCAMLBUILD) $(COMPILER).p.native $(SIMULATOR).p.native
|
|
|
|
else
|
2011-07-27 09:12:09 +02:00
|
|
|
$(OCAMLBUILD) $(COMPILER).p.native
|
2011-10-20 18:06:23 +02:00
|
|
|
endif
|
2010-06-15 10:49:03 +02:00
|
|
|
|
2011-10-20 18:06:23 +02:00
|
|
|
install: all
|
|
|
|
$(INSTALL) -d $(INSTALL_BINDIR)
|
|
|
|
$(INSTALL) $(COMPILER).$(TARGET) $(INSTALL_BINDIR)/$(COMPILER)
|
|
|
|
ifeq ($(ENABLE_SIMULATOR), yes)
|
|
|
|
$(INSTALL) $(COMPILER).$(TARGET) $(INSTALL_BINDIR)/$(SIMULATOR)
|
|
|
|
endif
|
2010-06-15 10:49:03 +02:00
|
|
|
|
|
|
|
clean:
|
2011-10-20 18:06:23 +02:00
|
|
|
$(OCAMLBUILD) -clean
|