chiark / gitweb /
[PATCH] fix up error in building extras and libsysfs
[elogind.git] / extras / scsi_id / Makefile
index 6af4d7f18e7cd56e506b3ea62ca429cfe896c549..6a73e33785545ff0cfec30c4718b880fd0e5d345 100644 (file)
@@ -14,7 +14,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
-SCSI_ID_VERSION=0.4
+SCSI_ID_VERSION=0.6
 
 prefix =
 etcdir =        ${prefix}/etc
@@ -31,8 +31,14 @@ INSTALL_DATA  = ${INSTALL} -m 644
 override CFLAGS+=-Wall -fno-builtin
 
 PROG=scsi_id
-SYSFS=-lsysfs
 
+SYSFS =        ../../libsysfs/sysfs_bus.o      \
+       ../../libsysfs/sysfs_class.o    \
+       ../../libsysfs/sysfs_device.o   \
+       ../../libsysfs/sysfs_dir.o      \
+       ../../libsysfs/sysfs_driver.o   \
+       ../../libsysfs/sysfs_utils.o    \
+       ../../libsysfs/dlist.o
 #
 # Built static and stripped when built with udev.
 #
@@ -71,5 +77,6 @@ clean:
        rm -f $(PROG) $(OBJS) $(GEN_HEADER)
 
 spotless: clean
+
 $(PROG):       $(OBJS)
        $(LD) $(LDFLAGS) -o $(PROG) $(CRT0) $(OBJS) $(SYSFS) $(LIB_OBJS) $(ARCH_LIB_OBJS)