diff leo-obj/frame_na7_db_fl/Makefile @ 140:21fda9752bd9

OSL flash objects: created disasm hints for os_com through os_mis
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 09 Apr 2014 02:40:20 +0000
parents 8754c410c10d
children 4d7f36110f1c
line wrap: on
line diff
--- a/leo-obj/frame_na7_db_fl/Makefile	Mon Apr 07 07:36:31 2014 +0000
+++ b/leo-obj/frame_na7_db_fl/Makefile	Wed Apr 09 02:40:20 2014 +0000
@@ -1,13 +1,15 @@
-OSL=	os_com.disasm os_drv.disasm os_evt.disasm os_isr.disasm os_mem.disasm \
-	os_mis.disasm os_pro.disasm os_sem.disasm os_tim.disasm
-TARGETS=${OSL}
+OSL=	os_com.obj os_drv.obj os_evt.obj os_isr.obj os_mem.obj os_mis.obj \
+	os_pro.obj os_sem.obj os_tim.obj
+OBJS=	${OSL}
+TARGETS=$(patsubst %.obj,%.disasm,${OBJS})
 TOOL=	../tool/tiobjd
 
 all:	${TARGETS}
 
-.SUFFIXES:	.obj .disasm
+%.disasm:	%.obj %.hints
+	${TOOL} $*.obj disasm -h $*.hints > $@
 
-.obj.disasm:
+%.disasm:	%.obj
 	${TOOL} $*.obj disasm > $@
 
 ${TARGETS}:	${TOOL} Makefile