summaryrefslogtreecommitdiff
path: root/drivers/nand/Makefile
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2005-08-17 12:55:25 +0200
committerWolfgang Denk <wd@pollux.denx.de>2005-08-17 12:55:25 +0200
commit932394ac43e2e778e664eeb6e456fecd0fae6e59 (patch)
tree170e594a6818d35081c9184f5b7dc06eaf0497af /drivers/nand/Makefile
parent024447b186cca55c2d803ab96b4c8f8674363b86 (diff)
Rewrite of NAND code based on what is in 2.6.12 Linux kernel
Patch by Ladislav Michl, 29 Jun 2005
Diffstat (limited to 'drivers/nand/Makefile')
-rw-r--r--drivers/nand/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/nand/Makefile b/drivers/nand/Makefile
new file mode 100644
index 0000000000..3906bf951d
--- /dev/null
+++ b/drivers/nand/Makefile
@@ -0,0 +1,17 @@
+include $(TOPDIR)/config.mk
+
+LIB := libnand.a
+
+OBJS := nand.o nand_base.o nand_ids.o nand_ecc.o nand_bbt.o
+all: $(LIB)
+
+$(LIB): $(OBJS)
+ $(AR) crv $@ $(OBJS)
+
+#########################################################################
+
+.depend: Makefile $(OBJS:.o=.c)
+ $(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@
+
+sinclude .depend
+