summaryrefslogtreecommitdiff
path: root/toolchain/mpc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-06-26 22:18:46 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-06-26 22:18:46 +0200
commit81d9ade69615399ef810297ac195c6e638a89a04 (patch)
treee19c567722cdca4c2c28b5815ae83f813f63c56d /toolchain/mpc/Makefile
parentebf1ffef54e96093d0ee20c8fe48f9818d300695 (diff)
with gcc 4.5 we will need mpc
Diffstat (limited to 'toolchain/mpc/Makefile')
-rw-r--r--toolchain/mpc/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/toolchain/mpc/Makefile b/toolchain/mpc/Makefile
new file mode 100644
index 000000000..d790e0912
--- /dev/null
+++ b/toolchain/mpc/Makefile
@@ -0,0 +1,32 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+include Makefile.inc
+include ../rules.mk
+include ${TOPDIR}/mk/buildhlp.mk
+
+ifeq (${ADK_MAKE_PARALLEL},y)
+MPC_MAKEOPTS+= -j${ADK_MAKE_JOBS}
+endif
+
+$(WRKBUILD)/.headers:
+$(WRKBUILD)/.configured:
+ (cd $(WRKBUILD); \
+ $(WRKBUILD)/configure \
+ --prefix=$(STAGING_TOOLS) \
+ --with-gmp=$(STAGING_TOOLS) \
+ --disable-shared \
+ --enable-static \
+ );
+ touch $@
+
+$(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
+ $(MAKE) ${MPC_MAKEOPTS} -C $(WRKBUILD) all
+ touch $@
+
+$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
+ $(MAKE) -C $(WRKBUILD) install
+ touch $@
+
+include ${TOPDIR}/mk/toolchain.mk