FreeCalypso > hg > fc-selenite
comparison scripts/mk-component.sh @ 140:2106617f1291
scripts/mk-component*: added cfile_symlink function like in Magnetite
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Wed, 06 Feb 2019 21:17:00 +0000 |
| parents | 686b2e77043e |
| children |
comparison
equal
deleted
inserted
replaced
| 139:148776c3f4c9 | 140:2106617f1291 |
|---|---|
| 90 esac | 90 esac |
| 91 echo >> $BUILD_DIR/$LIBNAME/Makefile | 91 echo >> $BUILD_DIR/$LIBNAME/Makefile |
| 92 OBJS="$OBJS $objname" | 92 OBJS="$OBJS $objname" |
| 93 } | 93 } |
| 94 | 94 |
| 95 cfile_symlink() { | |
| 96 if [ $# != 1 ] | |
| 97 then | |
| 98 echo "Error: cfile_symlink takes 1 argument" 1>&2 | |
| 99 exit 1 | |
| 100 fi | |
| 101 localcopy=`basename "$1"` | |
| 102 echo "$localcopy:" >> $BUILD_DIR/$LIBNAME/Makefile | |
| 103 echo " ln -s $1 ." >> $BUILD_DIR/$LIBNAME/Makefile | |
| 104 echo >> $BUILD_DIR/$LIBNAME/Makefile | |
| 105 c_file $localcopy | |
| 106 } | |
| 107 | |
| 95 # invoke the recipe | 108 # invoke the recipe |
| 96 | 109 |
| 97 COMPILER=tms470 | 110 COMPILER=tms470 |
| 98 SRC=../../src | 111 SRC=../../src |
| 99 OBJS= | 112 OBJS= |
