src/toolchain/binutils/Makefile

29 lines
627 B
Makefile

# Makefile - hhl - /usr/src/toolchain/binutils-pass1
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
#
distname = binutils
include toolchain.mk
config_opts += --with-sysroot=$(build)
config_opts += --target=$(tgt)
config_opts += --disable-nls
config_opts += --disable-werror
ifeq ($(arch), armv6)
config_opts += --with-arch=armv6
config_opts += --with-fpu=vfp
config_opts += --with-float=hard
endif
ifeq ($(arch), x86_64)
install: | $(tooldir)/lib64
else ifeq ($(arch), riscv64)
install: | $(tooldir)/lib64
endif
include targets.mk
$(tooldir)/lib64:
install -d $(tooldir)/lib
ln -s lib $(tooldir)/lib64