diff makefile-frags/link-steps @ 33:94ee95dad595

makefile-frags: adapted from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 17 Oct 2020 02:28:10 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/makefile-frags/link-steps	Sat Oct 17 02:28:10 2020 +0000
@@ -0,0 +1,17 @@
+build_date.c:	${LIBS}
+	../helpers/build-date ${CONFIG_NAME} ${TARGET} \
+		`../scripts/src-version.sh` > $@
+
+build_date.obj:	build_date.c
+	../toolwrap/cl470 -q -c -me -mt -o -pw2 -x -mw build_date.c
+
+link.cmd:	${LINK_SCRIPT_SRC} Makefile lcfgen
+	perl ../scripts/ti/make_cmd.pl lcfgen $@ 0 ${LINK_SCRIPT_SRC} \
+		${SPECIAL_LINK_LIBS}
+
+fwimage.out:	${LIBS} build_date.obj ${STR2IND_OBJ} link.cmd
+	../toolwrap/vlnk470 -farcall -x -o $@ -m fwimage.map $^
+
+fwimage.m0:	fwimage.out
+	../toolwrap/hex470 -m -memwidth 16 -romwidth 16 $<
+