mtd: add logic for TP-Link ramips recovery magic
[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.wrg = wrg.o md5.o
8 obj.wrgg = wrgg.o md5.o
9 obj.tpl = tpl_ramips_recoveryflag.o
10 obj.ar71xx = trx.o $(obj.seama) $(obj.wrgg)
11 obj.brcm = trx.o
12 obj.brcm47xx = $(obj.brcm)
13 obj.bcm53xx = $(obj.brcm) $(obj.seama)
14 obj.brcm63xx = imagetag.o
15 obj.ramips = $(obj.seama) $(obj.tpl) $(obj.wrg)
16 obj.mvebu = linksys_bootcount.o
17 obj.kirkwood = linksys_bootcount.o
18 obj.ipq806x = linksys_bootcount.o
19 obj.ipq40xx = linksys_bootcount_fix.o
20
21 ifdef FIS_SUPPORT
22 obj += fis.o
23 endif
24
25 mtd: $(obj) $(obj.$(TARGET))
26 clean:
27 rm -f *.o jffs2