Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 33 lines (24 sloc) 0.821 kb
b0eb74a speed up bind function for Variant
myang authored
1
2 PROJECT_ROOT = $(HPHP_HOME)
3
4 ifndef PROJECT_NAME
5 PROJECT_NAME = program
6 endif
7
8 # We want files to be sorted by size, so that larger files are dispatched by
9 # distcc earlier
10 CXX_NOOPT_SOURCES = $(shell echo `find . -name "*.no.cpp"`)
11 RECURSIVE_SOURCES = $(shell echo `find . -name "*.cpp"`)
12 SIZE_SORTED_SOURCES = $(wildcard ./sys/*.cpp) \
13 $(shell echo `if [ -e cpp/ ]; then ls -S ./cpp/*.cpp; fi`)
14 CXX_SOURCES = $(filter-out $(CXX_NOOPT_SOURCES), $(SIZE_SORTED_SOURCES) \
15 $(filter-out $(SIZE_SORTED_SOURCES), $(RECURSIVE_SOURCES)))
16
17 CPPFLAGS += -I.
18 LIBS = $(HPHP_LIB)/libhphp_runtime.a $(ALL_LIBS)
19
20 include $(HPHP_HOME)/src/rules.mk
21
22 ifdef HPHP_BUILD_LIBRARY
23 TARGETS = $(STATIC_LIB) $(SHARED_LIB)
24 else
25 TARGETS = $(APP_TARGET)
26 endif
27
28 all: $(TARGETS)
29
30 ifdef HPHP_BUILD_FFI
31 EXTERNAL += $(HPHP_LIB)/libhphp_java.so
32 endif
Something went wrong with that request. Please try again.