Debian Codegraph @

Makefile

raw symbols SCIP
1
2 all: pypy3-c cffi_imports
3
4 PYPY_EXECUTABLE := $(shell which pypy)
5
6 ifeq ($(PYPY_EXECUTABLE),)
7 RUNINTERP = python
8 else
9 RUNINTERP = $(PYPY_EXECUTABLE)
10 endif
11
12 URAM := $(shell $(RUNINTERP) -c "import sys; print(4.5 if sys.maxint>1<<32 else 2.5)")
13
14 JOBS=$(subst -j,--make-jobs ,$(filter -j%, $(MAKEFLAGS)))
15
16 .PHONY: pypy-c cffi_imports
17
18 pypy3-c:
19 @echo
20 @echo "===================================================================="
21 ifeq ($(PYPY_EXECUTABLE),)
22 @echo "Building a regular (jitting) version of PyPy, using CPython."
23 @echo "This takes around 2 hours and $(URAM) GB of RAM."
24 @echo "Note that pre-installing a PyPy binary would reduce this time"
25 @echo "and produce basically the same result."
26 else
27 @echo "Building a regular (jitting) version of PyPy, using"
28 @echo "$(PYPY_EXECUTABLE) to run the translation itself."
29 @echo "This takes up to 1 hour and $(URAM) GB of RAM."
30 endif
31 @echo
32 @echo "For more control (e.g. to use multiple CPU cores during part of"
33 @echo "the process) you need to run \`\`rpython/bin/rpython'' directly."
34 @echo "For more information see \`\`http://pypy.org/download.html''."
35 @echo "===================================================================="
36 @echo
37 @sleep 5
38 cd pypy/goal && $(RUNINTERP) ../../rpython/bin/rpython $(JOBS) -Ojit targetpypystandalone.py
39
40 cffi_imports: pypy-c
41 cd lib_pypy && ../pypy/goal/pypy3-c pypy_tools/build_cffi_imports.py || /bin/true