Update copyright year
[openadk.git] / toolchain / newlib / Makefile
blob4cd7ce6c65c0e307ddf2e52d2e19b1e791a373f7
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 ../rules.mk
6 include Makefile.inc
7 include ${ADK_TOPDIR}/mk/buildhlp.mk
9 NEWLIB_CONFIGURE_ARGS:= --enable-newlib-io-long-long \
10 --enable-newlib-register-fini \
11 --disable-newlib-supplied-syscalls
13 $(WRKBUILD)/.configured:
14 (cd $(WRKBUILD); \
15 CC='' \
16 CFLAGS='' \
17 LDFLAGS='' \
18 CFLAGS_FOR_TARGET='$(TARGET_CFLAGS)' \
19 ./configure --prefix=/usr \
20 --target=$(GNU_TARGET_NAME) \
21 --disable-nls \
22 $(NEWLIB_CONFIGURE_ARGS) \
24 touch $@
26 $(WRKBUILD)/.compiled:
27 PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) \
28 CC='' \
29 CFLAGS='' \
30 CFLAGS_FOR_TARGET='$(TARGET_CFLAGS)' \
31 all
32 touch $@
34 $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
35 PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) \
36 CC='' \
37 CFLAGS='' \
38 CFLAGS_FOR_TARGET='$(TARGET_CFLAGS)' \
39 DESTDIR=$(STAGING_TARGET_DIR) \
40 install
41 touch $@
43 include ${ADK_TOPDIR}/mk/toolchain.mk