linux: update 4.13.x
[openadk.git] / toolchain / gmp / Makefile
blob3e065d49daeebd1b3476ec043399203e1c97ddb6
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
5 include Makefile.inc
6 include ../rules.mk
7 include ${ADK_TOPDIR}/mk/buildhlp.mk
9 ifeq (${ADK_MAKE_PARALLEL},y)
10 GMP_MAKEOPTS+= -j${ADK_MAKE_JOBS}
11 endif
13 ifeq (${ARCH_FOR_BUILD},x32)
14 GMP_CONFOPTS+= ABI=x32
15 endif
17 $(WRKBUILD)/.configured:
18 (cd $(WRKBUILD); \
19 PATH="$(STAGING_HOST_DIR)/usr/bin:$$PATH" \
20 ./configure ${GMP_CONFOPTS} \
21 --prefix=$(STAGING_HOST_DIR)/usr \
22 --with-pic \
23 --disable-shared \
24 --enable-static \
26 touch $@
28 $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
29 env PATH="$(STAGING_HOST_DIR)/usr/bin:$$PATH" \
30 $(MAKE) ${GMP_MAKEOPTS} -C $(WRKBUILD) all
31 touch $@
33 $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
34 $(MAKE) -C $(WRKBUILD) install
35 touch $@
37 include ${ADK_TOPDIR}/mk/toolchain.mk