1999-09-13 14:30:21 +04:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
# just helping for cross compilation.
|
|
|
|
|
2001-01-04 10:09:47 +03:00
|
|
|
MACHINE=evbsh3
|
2001-01-04 10:50:23 +03:00
|
|
|
MACHINE_ARCH=sh3el
|
1999-09-13 14:30:21 +04:00
|
|
|
# just in case you forgot to specify this when you built gcc...
|
|
|
|
CFLAGS="-D__NetBSD__ -v"
|
|
|
|
export MACHINE MACHINE_ARCH CFLAGS
|
2001-01-04 10:51:50 +03:00
|
|
|
TARGET=/usr/pkg/cross/bin/shel-netbsdcoff
|
1999-09-13 14:30:21 +04:00
|
|
|
|
|
|
|
make AR=$TARGET-ar AS=$TARGET-as CC=$TARGET-gcc LD=$TARGET-ld NM=$TARGET-nm \
|
2001-01-04 10:09:47 +03:00
|
|
|
RANLIB=$TARGET-ranlib SIZE=$TARGET-size \
|
|
|
|
STRIP=$TARGET-strip OBJCOPY=$TARGET-objcopy \
|
1999-09-13 19:50:01 +04:00
|
|
|
CPP=$TARGET-cpp CXX=$TARGET-c++ $*
|