-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.mk
36 lines (28 loc) · 742 Bytes
/
init.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ifndef INIT_MK
INIT_MK=init.mk
include helpers.mk
EPREFIX?=${HOME}/gentoo
unexport LDFLAGS
unexport CPPFLAGS
unexport CHOST
unexport CC
unexport CXX
unexport HOSTCC
unexport CFLAGS
unexport CPLUS_INCLUDE_PATH
unexport LIBRARY_PATH
unexport INCLUDE_PATH
#unexport LD_LIBRARY_PATH
unexport CPATH
unexport C_INCLUDE_PATH
unexport DYLD_LIBRARY_PATH
unexport PYTHONPATH
N_PROCESSORS:=$(shell grep '^processor' /proc/cpuinfo | wc -l)
#MAKEOPTS:=-j$(shell echo ${N_PROCESSORS}+1 | bc) -l${N_PROCESSORS}
MAKEOPTS:=-j${N_PROCESSORS}
PATH:=${EPREFIX}/usr/bin:${EPREFIX}/bin:${EPREFIX}/tmp/usr/bin:${EPREFIX}/tmp/bin:${EPREFIX}/usr/portage/scripts:${PATH}
#CHOST:="x86_64-pc-linux-gnu"
EMERGE:=emerge --quiet
PIP:=pip
EIXSYNC:=eix-sync -q
endif