diff gsm-fw/services/ffs/Makefile @ 217:30a173257f4a

gsm-fw/services/ffs: ffs_target.c generation and compilation
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 06 Jan 2014 08:07:36 +0000
parents 0eb85790c0ed
children 2beb88a3d528
line wrap: on
line diff
--- a/gsm-fw/services/ffs/Makefile	Mon Jan 06 07:23:36 2014 +0000
+++ b/gsm-fw/services/ffs/Makefile	Mon Jan 06 08:07:36 2014 +0000
@@ -2,7 +2,8 @@
 CFLAGS=	-O2 -fno-builtin -mthumb-interwork -mthumb
 LD=	arm-elf-ld
 
-OBJS=	cfgffs.o core.o drv.o ffs_env.o ffstrace.o fsck.o reclaim.o task.o
+OBJS=	cfgffs.o core.o drv.o ffs_env.o ffs_target.o ffstrace.o fsck.o \
+	reclaim.o task.o
 
 HDRS=	core.h drv.h ffs.h ffs_api.h ffs_env.h ffs_pool_size.h ffstrace.h \
 	intctl.h ramffs.h task.h tmffs.h
@@ -11,8 +12,11 @@
 
 ${OBJS}:	${HDRS}
 
+ffs_target.c:	ffs.c mktarget.pl
+	./mktarget.pl
+
 xipcode.o:	${OBJS}
 	${LD} -r -o $@ ${OBJS}
 
 clean:
-	rm -f *.[oa] *errs
+	rm -f *.[oa] *errs ffs_target.c