Neil Brown: Include sysfs.c in mdassemble.auto

Martin F. Krafft madduck at alioth.debian.org
Tue Jun 24 22:02:16 UTC 2008


Module: mdadm
Branch: master
Commit: 7702a58b90c08fc831601090ea37b863b825d765
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=7702a58b90c08fc831601090ea37b863b825d765

Author: Neil Brown <neilb at suse.de>
Date:   Mon May 19 12:07:47 2008 +1000

Include sysfs.c in mdassemble.auto

and tidy up Makefile a bit.

---

 Makefile |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index f59498a..2b3c84c 100644
--- a/Makefile
+++ b/Makefile
@@ -80,10 +80,12 @@ SRCS =  mdadm.c config.c mdstat.c  ReadMe.c util.c Manage.c Assemble.c Build.c \
 STATICSRC = pwgr.c
 STATICOBJS = pwgr.o
 
-ASSEMBLE_SRCS := mdassemble.c Assemble.c Manage.c config.c dlink.c util.c super0.c super1.c sha1.c
+ASSEMBLE_SRCS := mdassemble.c Assemble.c Manage.c config.c dlink.c util.c \
+	super0.c super1.c sha1.c
+ASSEMBLE_AUTO_SRCS := mdopen.c mdstat.c sysfs.c
 ASSEMBLE_FLAGS:= $(CFLAGS) -DMDASSEMBLE
 ifdef MDASSEMBLE_AUTO
-ASSEMBLE_SRCS += mdopen.c mdstat.c
+ASSEMBLE_SRCS += $(ASSEMBLE_AUTO_SRCS)
 ASSEMBLE_FLAGS += -DMDASSEMBLE_AUTO
 endif
 
@@ -128,7 +130,7 @@ mdassemble.static : $(ASSEMBLE_SRCS) mdadm.h
 	rm -f $(OBJS)
 	$(CC) $(LDFLAGS) $(ASSEMBLE_FLAGS) -static -DHAVE_STDINT_H -o mdassemble.static $(ASSEMBLE_SRCS) $(STATICSRC)
 
-mdassemble.auto : $(ASSEMBLE_SRCS) mdadm.h mdopen.c mdstat.c
+mdassemble.auto : $(ASSEMBLE_SRCS) mdadm.h $(ASSEMBLE_AUTO_SRCS)
 	rm -f mdassemble.static
 	$(MAKE) MDASSEMBLE_AUTO=1 mdassemble.static
 	mv mdassemble.static mdassemble.auto




More information about the pkg-mdadm-commits mailing list