projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ar71xx] defconfig: move defaults from /etc/config/defaults/ to /etc/defconfig/,...
[openwrt-10.03/.git]
/
package
/
mtd
/
src
/
Makefile
diff --git
a/package/mtd/src/Makefile
b/package/mtd/src/Makefile
index 99e3ad7920bac87b117ba09fd2a0f312a4907810..68a632d5ac73fd980f9f08a0e610256065205957 100644
(file)
--- a/
package/mtd/src/Makefile
+++ b/
package/mtd/src/Makefile
@@
-1,12
+1,10
@@
-# $Id$
+CC = gcc
+CFLAGS += -Wall
-all: mtd
-
-%.o: %.c
- $(CC) -I. $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $^
-
-mtd: mtd.o
- $(CC) -o $@ $^
+obj = mtd.o jffs2.o crc32.o
+obj.brcm = trx.o
+obj.brcm47xx = $(obj.brcm)
+mtd: $(obj) $(obj.$(TARGET))
clean:
clean:
- rm -f *.o
mtd
+ rm -f *.o
jffs2