summaryrefslogtreecommitdiff
path: root/package/mtd/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/mtd/src/Makefile')
-rw-r--r--package/mtd/src/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/mtd/src/Makefile b/package/mtd/src/Makefile
index 5ab7d7b..68a632d 100644
--- a/package/mtd/src/Makefile
+++ b/package/mtd/src/Makefile
@@ -1,6 +1,10 @@
CC = gcc
CFLAGS += -Wall
-mtd: mtd.o jffs2.o crc32.o
+obj = mtd.o jffs2.o crc32.o
+obj.brcm = trx.o
+obj.brcm47xx = $(obj.brcm)
+
+mtd: $(obj) $(obj.$(TARGET))
clean:
rm -f *.o jffs2