changeset 61:dba3f097489e

makefile-frags: initial concept
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 01 Oct 2016 01:28:01 +0000 (2016-10-01)
parents f4eeab478bfe
children 9c16635ee5d2
files makefile-frags/clean-always makefile-frags/first-part makefile-frags/link-steps makefile-frags/str2ind-c-gen makefile-frags/str2ind-tab-depend
diffstat 5 files changed, 33 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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
--- /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
+
--- /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
+
--- /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 > $@
+
--- /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
+