developer | fc05f9d | 2022-05-06 13:09:53 +0800 | [diff] [blame] | 1 | #SPDX-License-Identifier: GPL-2.0 |
| 2 | |
| 3 | #CC = gcc |
| 4 | #CFLAGS += -Wall |
| 5 | #LDFLAGS += -lubox |
| 6 | |
| 7 | obj = mtd.o jffs2.o crc32.o md5.o |
| 8 | obj.seama = seama.o md5.o |
| 9 | obj.wrg = wrg.o md5.o |
| 10 | obj.wrgg = wrgg.o md5.o |
| 11 | obj.tpl = tpl_ramips_recoveryflag.o |
| 12 | obj.ath79 = $(obj.seama) $(obj.wrgg) |
| 13 | obj.gemini = $(obj.wrgg) |
| 14 | obj.brcm = trx.o |
| 15 | obj.bcm47xx = $(obj.brcm) |
| 16 | obj.bcm53xx = $(obj.brcm) $(obj.seama) |
| 17 | obj.bcm63xx = imagetag.o |
| 18 | obj.ramips = $(obj.seama) $(obj.tpl) $(obj.wrg) linksys_bootcount.o |
| 19 | obj.mvebu = linksys_bootcount.o |
| 20 | obj.kirkwood = linksys_bootcount.o |
| 21 | obj.ipq806x = linksys_bootcount.o |
| 22 | obj.ipq40xx = linksys_bootcount.o |
| 23 | |
| 24 | ifdef FIS_SUPPORT |
| 25 | obj += fis.o |
| 26 | endif |
| 27 | |
| 28 | mtd: $(obj) $(obj.$(TARGET)) |
| 29 | clean: |
| 30 | rm -f *.o jffs2 |