summaryrefslogtreecommitdiff
path: root/extras/multipath/Makefile
diff options
context:
space:
mode:
authorchristophe.varoqui@free.fr <christophe.varoqui@free.fr>2003-12-02 00:16:32 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:04 -0700
commit359618cd6ed05adcad97380f51790198ff653f87 (patch)
treea7f5f734c91bcf20af664c83cb3117d30070952c /extras/multipath/Makefile
parent871ea775c7f47776c34f4d33d7f40074e4e39d39 (diff)
[PATCH] udev-007/extras/multipath update
here is a clean-up patch : * removes sg_err.[ch] deps * makes sure the core code play nice with klibc * port the sysfs calls to dlist helpers * links against udev's sysfs (need libsysfs.a & dlist.a) * finally define DM_TARGET as "multipath" as Joe posted the code today (not tested yet) * push version forward (do you want it in sync with udev version?) libdevmapper doesn't play well with klibc, so I wasn't able to produce a static binary yet. Help needed here ... as I don't want to fall back to merge libdevmapper code in the core. It compiles here and doesn't segfault.
Diffstat (limited to 'extras/multipath/Makefile')
-rw-r--r--extras/multipath/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/extras/multipath/Makefile b/extras/multipath/Makefile
index 0835d7a2c6..9e0ce124c6 100644
--- a/extras/multipath/Makefile
+++ b/extras/multipath/Makefile
@@ -9,10 +9,10 @@ exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
CC = gcc
-CFLAGS = -g -O2 -Wall -Wunused -Wstrict-prototypes
-LDFLAGS = -lsysfs -ldevmapper
+CFLAGS = -pipe -g -O2 -Wall -Wunused -Wstrict-prototypes -nostdinc -I../../klibc/klibc/include -I../../klibc/klibc/include/bits32 -I/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.1/include -I../../klibc/linux/include -I../../libsysfs -I.
+LDFLAGS = -lsysfs -ldevmapper -ldlist
-OBJS = main.o sg_err.o
+OBJS = main.o
all: $(EXEC)
strip $(EXEC)
@@ -20,7 +20,7 @@ all: $(EXEC)
@echo "Make complete"
$(EXEC): $(OBJS)
- $(CC) $(OBJS) -o $(EXEC) $(LDFLAGS)
+ $(CC) $(OBJS) -o $(EXEC) $(LDFLAGS) $(CFLAGS)
clean:
rm -f core *.o $(EXEC)
@@ -30,5 +30,4 @@ install:
install -m 755 $(EXEC) $(bindir)/
# Code dependencies
-main.o: main.c main.h sg_err.h sg_include.h
-sg_err.o: sg_err.c sg_err.h sg_include.h
+main.o: main.c main.h sg_include.h