diff leo-obj/bootloader/Makefile @ 199:4526143a77ce

leo-obj: let's take a look at bootloader.lib
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 25 May 2015 04:50:24 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/leo-obj/bootloader/Makefile	Mon May 25 04:50:24 2015 +0000
@@ -0,0 +1,17 @@
+OBJS=	boot.obj bootloader.obj branch_in_RAM.obj cmdboot.obj command.obj \
+	convert.obj optboot.obj serial.obj start.obj
+TARGETS=$(patsubst %.obj,%.disasm,${OBJS})
+TOOL=	../tool/tiobjd
+
+all:	${TARGETS}
+
+%.disasm:	%.obj %.hints
+	${TOOL} $*.obj disasm -h $*.hints > $@
+
+%.disasm:	%.obj
+	${TOOL} $*.obj disasm > $@
+
+${TARGETS}:	${TOOL} Makefile
+
+clean:
+	rm -f *.disasm