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
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
:
18 CFLAGS_FOR_TARGET
='$(TARGET_CFLAGS)' \
19 .
/configure
--prefix=/usr \
20 --target
=$(GNU_TARGET_NAME
) \
22 $(NEWLIB_CONFIGURE_ARGS
) \
26 $(WRKBUILD
)/.compiled
:
27 PATH
='$(HOST_PATH)' $(MAKE
) -C
$(WRKBUILD
) \
30 CFLAGS_FOR_TARGET
='$(TARGET_CFLAGS)' \
34 $(WRKBUILD
)/.installed
: $(WRKBUILD
)/.compiled
35 PATH
='$(HOST_PATH)' $(MAKE
) -C
$(WRKBUILD
) \
38 CFLAGS_FOR_TARGET
='$(TARGET_CFLAGS)' \
39 DESTDIR
=$(STAGING_TARGET_DIR
) \
43 include ${ADK_TOPDIR}/mk
/toolchain.mk