12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- # This file is part of the OpenADK project. OpenADK is copyrighted
- # material, please see the LICENCE file in the top-level directory.
- include $(ADK_TOPDIR)/rules.mk
- include ../rules.mk
- include Makefile.inc
- include ${ADK_TOPDIR}/mk/buildhlp.mk
- NEWLIB_CONFIGURE_ARGS:= --enable-newlib-io-long-long \
- --enable-newlib-register-fini \
- --disable-newlib-supplied-syscalls
- $(WRKBUILD)/.configured:
- (cd $(WRKBUILD); \
- CC='' \
- CFLAGS='' \
- LDFLAGS='' \
- CFLAGS_FOR_TARGET='$(TARGET_CFLAGS)' \
- ./configure --prefix=/usr \
- --target=$(GNU_TARGET_NAME) \
- --disable-nls \
- $(NEWLIB_CONFIGURE_ARGS) \
- )
- touch $@
- $(WRKBUILD)/.compiled:
- PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) \
- CC='' \
- CFLAGS='' \
- CFLAGS_FOR_TARGET='$(TARGET_CFLAGS)' \
- all
- touch $@
- $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
- PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) \
- CC='' \
- CFLAGS='' \
- CFLAGS_FOR_TARGET='$(TARGET_CFLAGS)' \
- DESTDIR=$(STAGING_TARGET_DIR) \
- install
- touch $@
- include ${ADK_TOPDIR}/mk/toolchain.mk
|