chiark / gitweb /
scsi_id: rename SYSFS to LIBSYSFS
[elogind.git] / extras / scsi_id / Makefile
index 6af4d7f18e7cd56e506b3ea62ca429cfe896c549..3c38d6171e65b913038cf2bd09ed1a763094cd17 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.9
 
 prefix =
 etcdir =        ${prefix}/etc
@@ -28,10 +28,10 @@ INSTALL_DATA  = ${INSTALL} -m 644
 # Note some of the variables used here are set when built under udev, and
 # otherwise might not be set.
 
-override CFLAGS+=-Wall -fno-builtin
+CFLAGS+=-Wall -fno-builtin
 
 PROG=scsi_id
-SYSFS=-lsysfs
+LIBSYSFS=-lsysfs
 
 #
 # Built static and stripped when built with udev.
@@ -71,5 +71,10 @@ clean:
        rm -f $(PROG) $(OBJS) $(GEN_HEADER)
 
 spotless: clean
+
+.c.o:
+       $(QUIET) $(CC) $(CFLAGS) -c -o $@ $<
+
 $(PROG):       $(OBJS)
-       $(LD) $(LDFLAGS) -o $(PROG) $(CRT0) $(OBJS) $(SYSFS) $(LIB_OBJS) $(ARCH_LIB_OBJS)
+       $(QUIET) $(LD) $(LDFLAGS) -o $(PROG) $(CRT0) $(OBJS) $(LIBSYSFS) $(LIB_OBJS) $(ARCH_LIB_OBJS)
+