diff options
author | Uros Majstorovic <majstor@majstor.org> | 2018-01-17 18:42:47 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2018-01-17 18:42:47 +0100 |
commit | 1425f72c38fe23a9d3fcda583a7da1e7315acfc3 (patch) | |
tree | 2731c1f5b9e0c76e0a0775f6eddf81fd90b0817d /code/ecp/platform.sh | |
parent | 97a7e6617f8ad06b7bff495603200b853766ecc8 (diff) |
build system improved
Diffstat (limited to 'code/ecp/platform.sh')
-rwxr-xr-x | code/ecp/platform.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/code/ecp/platform.sh b/code/ecp/platform.sh new file mode 100755 index 0000000..b265bd7 --- /dev/null +++ b/code/ecp/platform.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# + +BASEDIR=$(dirname $0) + +if [ -z $1 ]; then + echo usage $0 "<platform>" + exit 1 +fi + +PLATFORM=$1 + +rm -f $BASEDIR/platform +ln -sf ./$PLATFORM $BASEDIR/platform +ln -sf ./config_$PLATFORM.h $BASEDIR/config.h +ln -sf ./Makefile.$PLATFORM $BASEDIR/Makefile.platform |