FreeCalypso > hg > fc-selenite
comparison scripts/mk-component.sh @ 21:b7059379dd87
scripts/mk-component.sh: tool wrappers moved to tms470/toolwrap
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 15 Jul 2018 22:20:36 +0000 |
parents | 889745bf8615 |
children | 0085ce06b728 |
comparison
equal
deleted
inserted
replaced
20:889745bf8615 | 21:b7059379dd87 |
---|---|
57 echo "Error: asm_file takes 1 argument" 1>&2 | 57 echo "Error: asm_file takes 1 argument" 1>&2 |
58 exit 1 | 58 exit 1 |
59 fi | 59 fi |
60 objname=`basename "$1" .s`.obj | 60 objname=`basename "$1" .s`.obj |
61 helpers/makeline dep $objname "$1" >> $BUILD_DIR/$LIBNAME/Makefile | 61 helpers/makeline dep $objname "$1" >> $BUILD_DIR/$LIBNAME/Makefile |
62 helpers/makeline cmd ../../toolwrap/asm470 ${ASMFLAGS} "$1" '$@' \ | 62 helpers/makeline cmd ../../tms470/toolwrap/asm470 ${ASMFLAGS} "$1" \ |
63 >> $BUILD_DIR/$LIBNAME/Makefile | 63 '$@' >> $BUILD_DIR/$LIBNAME/Makefile |
64 echo >> $BUILD_DIR/$LIBNAME/Makefile | 64 echo >> $BUILD_DIR/$LIBNAME/Makefile |
65 OBJS="$OBJS $objname" | 65 OBJS="$OBJS $objname" |
66 } | 66 } |
67 | 67 |
68 c_file() { | 68 c_file() { |
77 *[A-Z]*) | 77 *[A-Z]*) |
78 helpers/makeline cmd rm -f '$@' \ | 78 helpers/makeline cmd rm -f '$@' \ |
79 >> $BUILD_DIR/$LIBNAME/Makefile | 79 >> $BUILD_DIR/$LIBNAME/Makefile |
80 ;; | 80 ;; |
81 esac | 81 esac |
82 helpers/makeline cmd ../../toolwrap/cl470 -q -c ${CFLAGS} ${CPPFLAGS} \ | 82 helpers/makeline cmd ../../tms470/toolwrap/cl470 -q -c ${CFLAGS} \ |
83 "$1" >> $BUILD_DIR/$LIBNAME/Makefile | 83 ${CPPFLAGS} "$1" >> $BUILD_DIR/$LIBNAME/Makefile |
84 case "$objname" in | 84 case "$objname" in |
85 *[A-Z]*) | 85 *[A-Z]*) |
86 objname_lc=`echo $objname | tr A-Z a-z` | 86 objname_lc=`echo $objname | tr A-Z a-z` |
87 helpers/makeline cmd mv $objname_lc $objname \ | 87 helpers/makeline cmd mv $objname_lc $objname \ |
88 >> $BUILD_DIR/$LIBNAME/Makefile | 88 >> $BUILD_DIR/$LIBNAME/Makefile |
99 . "$recipe_file" | 99 . "$recipe_file" |
100 | 100 |
101 # finish the Makefile | 101 # finish the Makefile |
102 | 102 |
103 helpers/makeline dep $LIBNAME.lib ${OBJS} >> $BUILD_DIR/$LIBNAME/Makefile | 103 helpers/makeline dep $LIBNAME.lib ${OBJS} >> $BUILD_DIR/$LIBNAME/Makefile |
104 echo ' ../../toolwrap/ar470 r $@ $^' >> $BUILD_DIR/$LIBNAME/Makefile | 104 echo ' ../../tms470/toolwrap/ar470 r $@ $^' >> $BUILD_DIR/$LIBNAME/Makefile |
105 echo >> $BUILD_DIR/$LIBNAME/Makefile | 105 echo >> $BUILD_DIR/$LIBNAME/Makefile |
106 echo 'clean:' >> $BUILD_DIR/$LIBNAME/Makefile | 106 echo 'clean:' >> $BUILD_DIR/$LIBNAME/Makefile |
107 echo ' rm -f *.obj *.lib *.c' >> $BUILD_DIR/$LIBNAME/Makefile | 107 echo ' rm -f *.obj *.lib *.c' >> $BUILD_DIR/$LIBNAME/Makefile |