363d1bb20f
This change is mostly for FB internal organizational reasons. Building is not effected beyond the fact that the target now lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
32 linhas
618 B
Makefile
32 linhas
618 B
Makefile
|
|
PROJECT_ROOT = ../..
|
|
include $(PROJECT_ROOT)/src/dirs.mk
|
|
|
|
HPHPI_EXTRA =
|
|
|
|
HOOK_RULE_FILE = $(wildcard hook.mk)
|
|
ifneq ($(strip $(HOOK_RULE_FILE)),)
|
|
include hook.mk
|
|
endif
|
|
|
|
PHP_FILES = hphpi.php
|
|
|
|
all: $(HPHPI)
|
|
|
|
$(HPHPI): $(HPHP) $(PHP_FILES)
|
|
@echo "Compiling hphpi..."
|
|
$(V)$(if $(OUT_TOP),HPHP_LIB=$(LIB_DIR)) HPHPI_THUNK=1 \
|
|
$(HPHP) \
|
|
-t cpp -f exe --input-dir . \
|
|
-i $(PHP_FILES) -o $(OUT_DIR)gen \
|
|
-vEnableEval=2 --log=1 \
|
|
$(HPHPI_EXTRA) \
|
|
--program=$(if $(OUT_TOP),,$(CWD)/)$@
|
|
|
|
clobber:
|
|
$(V)rm -rf $(OUT_DIR)gen $(HPHPI)
|
|
|
|
.PHONY: do-setup objects picobjects
|
|
do-setup objects picobjects:
|
|
@true
|