# HG changeset patch # User Mychaela Falconia # Date 1475285281 0 # Node ID dba3f097489ec5fb9ae849f716f76db685ae9fae # Parent f4eeab478bfe0efb3e927f03c56f0d5c8dfb0077 makefile-frags: initial concept diff -r f4eeab478bfe -r dba3f097489e makefile-frags/clean-always --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/clean-always Sat Oct 01 01:28:01 2016 +0000 @@ -0,0 +1,3 @@ +clean: FRC + rm -f gsm-fw.* str2ind.obj link.cmd + for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done diff -r f4eeab478bfe -r dba3f097489e makefile-frags/first-part --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/first-part Sat Oct 01 01:28:01 2016 +0000 @@ -0,0 +1,8 @@ +all: gsm-fw.bin + +${SUBDIR}: FRC + cd $@; ${MAKE} ${MFLAGS} + +${LIBS}: ${SUBDIR} + @true + diff -r f4eeab478bfe -r dba3f097489e makefile-frags/link-steps --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/link-steps Sat Oct 01 01:28:01 2016 +0000 @@ -0,0 +1,16 @@ +str2ind.obj: str2ind.c + ../toolwrap/cl470 -q -c -me -mt -o -pw2 -x -mw str2ind.c + +link.cmd: ${LINK_SCRIPT_SRC} Makefile lcfgen + perl ../scripts/ti/make-cmd.pl lcfgen $@ 0 ${LINK_SCRIPT_SRC} \ + ${SPECIAL_LINK_LIBS} + +gsm-fw.out: ${LIBS} str2ind.obj link.cmd + ../toolwrap/vlnk470 -farcall -x -o $@ -m gsm-fw.map $^ + +gsm-fw.m0: gsm-fw.out + ../toolwrap/hex470 -m -memwidth 16 -romwidth 16 gsm-fw.out + +gsm-fw.bin: gsm-fw.m0 + mokosrec2bin gsm-fw.m0 $@ FF + diff -r f4eeab478bfe -r dba3f097489e makefile-frags/str2ind-c-gen --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/str2ind-c-gen Sat Oct 01 01:28:01 2016 +0000 @@ -0,0 +1,3 @@ +str2ind.c: str2ind.tab + ../helpers/str2ind-ver str2ind.tab > $@ + diff -r f4eeab478bfe -r dba3f097489e makefile-frags/str2ind-tab-depend --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makefile-frags/str2ind-tab-depend Sat Oct 01 01:28:01 2016 +0000 @@ -0,0 +1,3 @@ +str2ind.tab: ${SUBDIR} + @true +