]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Makefile
mdadm-1.1.0
[thirdparty/mdadm.git] / Makefile
index 82efc4cb336c0516ae09d49cf5a2faa0617b381b..9fb83ed946e1d4b54362376d1a6c768b995ba132 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -50,6 +50,9 @@ MAN4DIR = $(MANDIR)/man4
 MAN5DIR = $(MANDIR)/man5
 MAN8DIR = $(MANDIR)/man8
 
+
+KLIBC=/home/src/klibc/klibc-0.77
+
 OBJS =  mdadm.o config.o mdstat.o  ReadMe.o util.o Manage.o Assemble.o Build.o Create.o Detail.o Examine.o Monitor.o dlink.o Kill.o Query.o
 SRCS =  mdadm.c config.c mdstat.c  ReadMe.c util.c Manage.c Assemble.c Build.c Create.c Detail.c Examine.c Monitor.c dlink.c Kill.c Query.c
 
@@ -69,6 +72,10 @@ mdadm.tcc : $(SRCS) mdadm.h
 mdadm.uclibc : $(SRCS) mdadm.h
        $(UCLIBC_GCC) -DUCLIBC -o mdadm.uclibc $(SRCS)
 
+mdadm.klibc : $(SRCS) mdadm.h
+       rm -f $(OBJS) 
+       gcc -nostdinc -iwithprefix include -I$(KLIBC)/klibc/include -I$(KLIBC)/linux/include -I$(KLIBC)/klibc/arch/i386/include -I$(KLIBC)/klibc/include/bits32 $(CFLAGS) $(SRCS)
+
 mdadm.man : mdadm.8
        nroff -man mdadm.8 > mdadm.man
 
@@ -87,7 +94,7 @@ install : mdadm mdadm.8 md.4 mdadm.conf.5
        $(INSTALL) -D -m 644 mdadm.conf.5 $(DESTDIR)$(MAN5DIR)/mdadm.conf.5
 
 clean : 
-       rm -f mdadm $(OBJS) core *.man mdadm.tcc mdadm.uclibc
+       rm -f mdadm $(OBJS) core *.man mdadm.tcc mdadm.uclibc mdadm.static
 
 dist : clean
        ./makedist