2007-08-20 16:12:24 +00:00
|
|
|
CC = gcc
|
|
|
|
CFLAGS += -Wall
|
2013-11-19 20:56:23 +00:00
|
|
|
LDFLAGS += -lubox
|
2006-06-18 18:03:31 +00:00
|
|
|
|
2013-11-19 20:56:23 +00:00
|
|
|
obj = mtd.o jffs2.o crc32.o md5.o
|
2012-10-18 07:22:59 +00:00
|
|
|
obj.seama = seama.o md5.o
|
2016-08-07 16:51:12 +00:00
|
|
|
obj.wrgg = wrgg.o md5.o
|
|
|
|
obj.ar71xx = trx.o $(obj.seama) $(obj.wrgg)
|
2008-09-23 09:23:58 +00:00
|
|
|
obj.brcm = trx.o
|
|
|
|
obj.brcm47xx = $(obj.brcm)
|
2016-01-28 08:51:52 +00:00
|
|
|
obj.bcm53xx = $(obj.brcm) $(obj.seama)
|
2010-12-26 04:18:01 +00:00
|
|
|
obj.brcm63xx = imagetag.o
|
2012-10-18 07:22:59 +00:00
|
|
|
obj.ramips = $(obj.seama)
|
2015-08-19 08:31:23 +00:00
|
|
|
obj.mvebu = linksys_bootcount.o
|
2015-11-10 00:16:37 +00:00
|
|
|
obj.kirkwood = linksys_bootcount.o
|
2016-05-19 14:45:38 +00:00
|
|
|
obj.ipq806x = linksys_bootcount.o
|
2008-09-23 09:23:58 +00:00
|
|
|
|
2009-09-21 09:58:41 +00:00
|
|
|
ifdef FIS_SUPPORT
|
|
|
|
obj += fis.o
|
|
|
|
endif
|
|
|
|
|
2008-09-23 09:23:58 +00:00
|
|
|
mtd: $(obj) $(obj.$(TARGET))
|
2006-06-18 18:03:31 +00:00
|
|
|
clean:
|
2012-10-18 07:22:59 +00:00
|
|
|
rm -f *.o jffs2
|