summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2003-03-02 23:11:38 +0000
committerNeil Brown <neilb@suse.de>2003-03-02 23:11:38 +0000
commitd013a55e9422f251ce92decfbf39336064fd6c27 (patch)
treeb616a43f27f2a021f02d0474742c80191ba94a95 /Makefile
parent5787fa490612387a43c1897eb807b0c5612b5cd2 (diff)
downloadmdadm-d013a55e9422f251ce92decfbf39336064fd6c27.tar.gz
mdadm-d013a55e9422f251ce92decfbf39336064fd6c27.tar.xz
mdadm-d013a55e9422f251ce92decfbf39336064fd6c27.zip
mdadm-1.1.0mdadm-1.1.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 82efc4c..9fb83ed 100644
--- 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