summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-07-18 22:43:45 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:01:39 -0700
commit28972fe8a9a314761aacd16bf19f89dbaf5a9282 (patch)
treeff38bfcef96d5e505f0a2593236adf25ce2780c1 /Makefile
parent070f54223f66490e9d25719c495e074f77da8985 (diff)
[PATCH] added libsysfs to the build.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0013d06793..7cca002c99 100644
--- a/Makefile
+++ b/Makefile
@@ -104,6 +104,8 @@ else
LDFLAGS = --static
endif
+LIB=libsysfs
+
all: $(LIBC) $(ROOT)
$(ARCH_LIB_OBJS) :
@@ -113,6 +115,10 @@ OBJS = udev.o \
logging.o \
namedev.o
+LIBSYSFS = libsysfs/libsysfs.a
+
+libsysfs/libsysfs.a:
+ $(MAKE) -C libsysfs
# header files automatically generated
GEN_HEADERS = udev_version.h
@@ -122,8 +128,9 @@ udev_version.h:
@echo \#define UDEV_VERSION \"$(VERSION)\" > $@
-$(ROOT): $(GEN_HEADERS) $(OBJS)
- $(CC) $(LDFLAGS) -o $(ROOT) $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS)
+$(ROOT): $(GEN_HEADERS) $(OBJS) $(LIBSYSFS)
+ $(MAKE) -C libsysfs
+ $(CC) $(LDFLAGS) -o $(ROOT) $(OBJS) -lsysfs $(LIB_OBJS) -L$(LIB) $(ARCH_LIB_OBJS)
$(STRIPCMD) $(ROOT)
clean:
@@ -131,6 +138,7 @@ clean:
| xargs rm -f
-rm -f core $(ROOT) $(GEN_HEADERS)
$(MAKE) -C klibc clean
+ $(MAKE) -C libsysfs clean
DISTFILES = $(shell find . \( -not -name '.' \) -print | grep -v CVS | grep -v "\.tar\.gz" | grep -v "\/\." | grep -v releases | grep -v BitKeeper | grep -v SCCS )
DISTDIR := $(RELEASE_NAME)