NetBSD/sys/arch/sh3/conf/build-sh3

15 lines
405 B
Bash

#! /bin/sh
# just helping for cross compilation.
MACHINE=sh3
MACHINE_ARCH=sh3
# just in case you forgot to specify this when you built gcc...
CFLAGS="-D__NetBSD__ -v"
export MACHINE MACHINE_ARCH CFLAGS
TARGET=sh-hitachi-coff
make AR=$TARGET-ar AS=$TARGET-as CC=$TARGET-gcc LD=$TARGET-ld NM=$TARGET-nm \
RANLIB=$TARGET-ranlib SIZE=$TARGET-size STRIP=$TARGET-strip \
CPP=$TARGET-cpp CXX=$TARGET-c++ $*