From 05697ec1e26eadc2f814d9f84f8c783fff5b98b5 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 19 May 2006 06:56:06 +0000 Subject: Make homehost information appear in superblock. When an array is created, if the homehost is know, the superblock gets it, either in the uuid, (via sha1) or in the name field. Signed-off-by: Neil Brown --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8ddb9976..dd710fd0 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,7 @@ TCC = tcc UCLIBC_GCC = $(shell for nm in i386-uclibc-linux-gcc i386-uclibc-gcc; do which $$nm > /dev/null && { echo $$nm ; exit; } ; done; echo false No uclibc found ) DIET_GCC = diet gcc +LDLIBS=-lssl KLIBC=/home/src/klibc/klibc-0.77 @@ -84,11 +85,11 @@ everything: all mdadm.static mdadm.uclibc swap_super test_stripe mdassemble mda # mdadm.tcc doesn't work.. mdadm : rmconf $(OBJS) - $(CC) $(LDFLAGS) -o mdadm $(OBJS) + $(CC) $(LDFLAGS) -o mdadm $(OBJS) $(LDLIBS) mdadm.static : STATIC=-DSTATIC mdadm.static : rmconf $(OBJS) - $(CC) $(LDFLAGS) -DSTATIC -static -o mdadm.static $(OBJS) + $(CC) $(LDFLAGS) -DSTATIC -static -o mdadm.static $(OBJS) SHA1.o sha1.o rmconf: rm -f config.o @@ -136,6 +137,11 @@ mdassemble.man : mdassemble.8 $(OBJS) : mdadm.h bitmap.h +sha1.o : sha1.c sha1.h md5.h + $(CC) $(CFLAGS) -DHAVE_STDINT_H -o sha1.o -c sha1.c +SHA1.o : SHA1.c + $(CC) $(CFLAGS) -DHAVE_STDINT_H -o SHA1.o -c SHA1.c + install : mdadm mdadm.8 md.4 mdadm.conf.5 $(INSTALL) -D $(STRIP) -m 755 mdadm $(DESTDIR)$(BINDIR)/mdadm $(INSTALL) -D -m 644 mdadm.8 $(DESTDIR)$(MAN8DIR)/mdadm.8 -- cgit v1.2.3