FreeCalypso > hg > fc-selenite
comparison scripts/mk-component-gcc.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 | 19f5e7133949 |
children |
comparison
equal
deleted
inserted
replaced
139:148776c3f4c9 | 140:2106617f1291 |
---|---|
77 >> $BUILD_DIR/$LIBNAME/Makefile | 77 >> $BUILD_DIR/$LIBNAME/Makefile |
78 echo >> $BUILD_DIR/$LIBNAME/Makefile | 78 echo >> $BUILD_DIR/$LIBNAME/Makefile |
79 OBJS="$OBJS $objname" | 79 OBJS="$OBJS $objname" |
80 } | 80 } |
81 | 81 |
82 cfile_symlink() { | |
83 if [ $# != 1 ] | |
84 then | |
85 echo "Error: cfile_symlink takes 1 argument" 1>&2 | |
86 exit 1 | |
87 fi | |
88 localcopy=`basename "$1"` | |
89 echo "$localcopy:" >> $BUILD_DIR/$LIBNAME/Makefile | |
90 echo " ln -s $1 ." >> $BUILD_DIR/$LIBNAME/Makefile | |
91 echo >> $BUILD_DIR/$LIBNAME/Makefile | |
92 c_file $localcopy | |
93 } | |
94 | |
82 # invoke the recipe | 95 # invoke the recipe |
83 | 96 |
84 COMPILER=gcc | 97 COMPILER=gcc |
85 SRC=../../src | 98 SRC=../../src |
86 OBJS= | 99 OBJS= |