# 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.3
+SCSI_ID_VERSION=0.9
prefix =
etcdir = ${prefix}/etc
# 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.
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)
+