summaryrefslogtreecommitdiff
path: root/extras/scsi_id/Makefile
diff options
context:
space:
mode:
authorpatmans@us.ibm.com <patmans@us.ibm.com>2003-12-07 08:55:40 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:06 -0700
commit1bed1db4994aae37f4a11e90dabcd8b4e3592686 (patch)
tree00da2dc89dc42f58b74e7eb193015a94a6312b93 /extras/scsi_id/Makefile
parenta652254ddba3f77abf63f732c42c3a0136dc03d2 (diff)
[PATCH] update udev extras/scsi_id to version 0.2
This patch updates scsi_id under udev from version 0.1 to version 0.2.
Diffstat (limited to 'extras/scsi_id/Makefile')
-rw-r--r--extras/scsi_id/Makefile24
1 files changed, 18 insertions, 6 deletions
diff --git a/extras/scsi_id/Makefile b/extras/scsi_id/Makefile
index 5ad2bcf3e1..ead205682a 100644
--- a/extras/scsi_id/Makefile
+++ b/extras/scsi_id/Makefile
@@ -14,33 +14,45 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-VERSION=0.1
+SCSI_ID_VERSION=0.2
prefix =
sbindir = ${prefix}/sbin
+mandir = ${prefix}/usr/share/man
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
-CFLAGS=-DVERSION=\"$(VERSION)\" $(DEBUG) -Wall
+# Note some of the variables used here are set when built under udev, and
+# otherwise might not be set.
+
+override CFLAGS+=-DSCSI_ID_VERSION=\"$(SCSI_ID_VERSION)\" $(DEBUG) -Wall
PROG=scsi_id
+SYSFS=-lsysfs
-LIBSYSFS=-lsysfs
-STRIP=-s
-LDFLAGS=$(STRIP) --static
+#
+# Built static and stripped when built with udev.
+#
+# STRIP=-s
+# LDFLAGS=$(STRIP)
+LD=$(CC)
OBJS= scsi_id.o \
scsi_serial.o \
all: $(PROG)
+# XXX use a compressed man page?
+
install: all
$(INSTALL_PROGRAM) -D $(PROG) $(sbindir)/$(PROG)
+ $(INSTALL_DATA) -D scsi_id.8 $(DESTDIR)$(mandir)/man8/scsi_id.8
uninstall:
-rm $(sbindir)/$(PROG)
+ -rm $(mandir)/man8/scsi_id.8
$(OBJS): scsi_id.h scsi.h
@@ -48,4 +60,4 @@ clean:
rm -f $(PROG) $(OBJS)
$(PROG): $(OBJS)
- $(CC) $(OBJS) $(LDFLAGS) $(LIBSYSFS) -o $(PROG)
+ $(LD) $(LDFLAGS) -o $(PROG) $(CRT0) $(OBJS) $(SYSFS) $(LIB_OBJS) $(ARCH_LIB_OBJS)