70c61e58ae1f17150a901a3b677accc21276c059
[openwrt/openwrt.git] / package / system / mtd / src / Makefile
1 CC = gcc
2 CFLAGS += -Wall
3 LDFLAGS += -lubox
4
5 obj = mtd.o jffs2.o crc32.o md5.o
6 obj.seama = seama.o md5.o
7 obj.ar71xx = trx.o $(obj.seama)
8 obj.brcm = trx.o
9 obj.brcm47xx = $(obj.brcm)
10 obj.bcm53xx = $(obj.brcm) $(obj.seama)
11 obj.brcm63xx = imagetag.o
12 obj.ramips = $(obj.seama)
13 obj.mvebu = linksys_bootcount.o
14 obj.kirkwood = linksys_bootcount.o
15 obj.ipq806x = linksys_bootcount.o
16
17 ifdef FIS_SUPPORT
18 obj += fis.o
19 endif
20
21 mtd: $(obj) $(obj.$(TARGET))
22 clean:
23 rm -f *.o jffs2