chiark / gitweb /
[PATCH] yet more extras/multipath
[elogind.git] / Makefile
index 6c8b311f4eeedda400a6ffa55b23ca0c1ef0be1e..c6f322c8808b8ec75d09f62d705a6c4f40894f6b 100644 (file)
--- a/Makefile
+++ b/Makefile
 
 # Set the following to `true' to make a debuggable build.
 # Leave this set to `false' for production use.
-DEBUG = true
+DEBUG = false
 
 
 ROOT =         udev
-VERSION =      007_bk
+VERSION =      008_bk
 INSTALL_DIR =  /usr/local/bin
 RELEASE_NAME = $(ROOT)-$(VERSION)
 
@@ -64,7 +64,7 @@ export CROSS CC AR STRIP RANLIB
 
 # code taken from uClibc to determine the current arch
 ARCH := ${shell $(CC) -dumpmachine | sed -e s'/-.*//' -e 's/i.86/i386/' -e 's/sparc.*/sparc/' \
-       -e 's/arm.*/arm/g' -e 's/m68k.*/m68k/' -e 's/ppc/powerpc/g'}
+       -e 's/arm.*/arm/g' -e 's/m68k.*/m68k/' -e 's/powerpc/ppc/g'}
 
 # code taken from uClibc to determine the gcc include dir
 GCCINCDIR := ${shell $(CC) -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp"}
@@ -124,7 +124,7 @@ ifeq ($(strip $(KLIBC)),true)
                -I$(INCLUDE_DIR)/bits$(BITSIZE) -I$(GCCINCDIR) -Iklibc/linux/include \
                -D__KLIBC__
        LIB_OBJS =
-       LDFLAGS = --static --nostdlib -nostartfiles
+       LDFLAGS = --static --nostdlib -nostartfiles -nodefaultlibs
 else
        CRT0 =
        LIBC = 
@@ -154,11 +154,13 @@ SYSFS =   libsysfs/sysfs_bus.o    \
        libsysfs/dlist.o
 
 OBJS = udev.o          \
+       udev_config.o   \
        udev-add.o      \
        udev-remove.o   \
        udevdb.o        \
        logging.o       \
        namedev.o       \
+       namedev_parse.o \
        $(SYSFS)        \
        $(TDB)
 
@@ -172,8 +174,12 @@ GEN_HEADERS =      udev_version.h
 # Rules on how to create the generated header files
 udev_version.h:
        @echo \#define UDEV_VERSION     \"$(VERSION)\" > $@
-       @echo \#define UDEV_CONFIG_DIR  \"$(configdir)\" >> $@
        @echo \#define UDEV_ROOT        \"$(udevdir)\" >> $@
+       @echo \#define UDEV_DB          \"$(udevdir)\.udev.tdb\" >> $@
+       @echo \#define UDEV_CONFIG_DIR  \"$(configdir)\" >> $@
+       @echo \#define UDEV_CONFIG_FILE \"$(configdir)\udev.conf\" >> $@
+       @echo \#define UDEV_RULES_FILE  \"$(configdir)\udev.rules\" >> $@
+       @echo \#define UDEV_PERMISSION_FILE     \"$(configdir)\udev.permissions\" >> $@
 
 $(OBJS): $(GEN_HEADERS)
 
@@ -225,7 +231,8 @@ install: all
        $(INSTALL) -d $(DESTDIR)$(hotplugdir)
        $(INSTALL_PROGRAM) -D $(ROOT) $(DESTDIR)$(sbindir)/$(ROOT)
        $(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
-       $(INSTALL_DATA) udev.config $(DESTDIR)$(configdir)
+       $(INSTALL_DATA) udev.conf $(DESTDIR)$(configdir)
+       $(INSTALL_DATA) udev.rules $(DESTDIR)$(configdir)
        $(INSTALL_DATA) udev.permissions $(DESTDIR)$(configdir)
        - rm -f $(DESTDIR)$(hotplugdir)/udev.hotplug
        - ln -s $(sbindir)/$(ROOT) $(DESTDIR)$(hotplugdir)/udev.hotplug
@@ -233,7 +240,8 @@ install: all
 uninstall:
        - rm $(hotplugdir)/udev.hotplug
        - rm $(configdir)/udev.permissions
-       - rm $(configdir)/udev.config
+       - rm $(configdir)/udev.rules
+       - rm $(configdir)/udev.conf
        - rm $(mandir)/man8/udev.8
        - rm $(sbindir)/$(ROOT)
        - rmdir $(hotplugdir)