comparison services/ffs/Makefile @ 0:75a11d740a02

initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 00:02:41 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:75a11d740a02
1 CC= arm-elf-gcc
2 CFLAGS= -O2 -fno-builtin -mthumb-interwork
3 LD= arm-elf-ld
4
5 sinclude ../../include/config.mk
6
7 OBJS= cfgffs.o core.o drv.o ffs_env.o ffs_target.o ffstrace.o fsck.o rand.o \
8 reclaim.o task.o tmffs.o
9
10 HDRS= core.h drv.h ffs.h ffs_api.h ffs_env.h ffs_pool_size.h ffstrace.h \
11 intctl.h ramffs.h task.h tmffs.h
12
13 TARGETS=xipcode.o
14 ifeq (${FLASH_IS_INTEL_ONEBANK},1)
15 TARGETS+=intelsbdrv.o
16 endif
17
18 all: ${TARGETS}
19
20 ${OBJS}: %.o : %.c ${HDRS}
21 ${CC} ${CFLAGS} -mthumb -c $<
22
23 ffs_target.c: ffs.c mktarget.pl
24 ./mktarget.pl
25
26 xipcode.o: ${OBJS}
27 ${LD} -r -o $@ ${OBJS}
28
29 intelsbdrv.o: intelsbdrv.c ${HDRS}
30 ${CC} ${CFLAGS} -c intelsbdrv.c
31
32 clean:
33 rm -f *.[oa] *errs ffs_target.c