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
|
2013-09-19 22:36:40 +00:00
|
|
|
obj.ar71xx = trx.o $(obj.seama)
|
2008-09-23 09:23:58 +00:00
|
|
|
obj.brcm = trx.o
|
|
|
|
obj.brcm47xx = $(obj.brcm)
|
2014-09-21 21:56:31 +00:00
|
|
|
obj.bcm53xx = $(obj.brcm)
|
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
|
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
|