Arquivos
hhvm/hphp/runtime/tmp/Makefile
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
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.
2013-02-11 02:10:41 -08:00

39 linhas
790 B
Makefile

PROJECT_ROOT=$(HPHP_HOME)
override OUTDIR_BY_TYPE=
override OUTPUT_ROOT=
include $(PROJECT_ROOT)/src/rules.mk
MONO_TARGETS = run
TARGETS = $(MONO_TARGETS)
TEST_DIRS = $(wildcard Test*)
.PHONY : all
all : $(TEST_DIRS) $(TARGETS) run.sh
.PHONY : $(TEST_DIRS)
$(TEST_DIRS):
@$(MAKE) -C $@
run.sh : $(PROJECT_ROOT)/src/rules.mk
@$(MAKE) -f script.mk
@chmod +x $@
# Build a dummy libtest.so with just the 'main' symbol defined.
# This is so we can link, dynamically, against it here and then
# use LD_LIBRARY_PATH to use different libtest.so's when running
# the tests.
LDFLAGS += -L. -ltest
libtest.so: test.c
$(CC) -fPIC -o libtest.so -Wl,-soname,libtest.so -shared test.c
run: libtest.so
TMP = $(TEST_DIRS) \
$(MONO_TARGETS) run.sh
clobber : clean
clean :
@rm -fR $(TMP)