chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
volume_id: add OCFS (Oracle Cluster File System) support
[elogind.git]
/
extras
/
volume_id
/
Makefile
diff --git
a/extras/volume_id/Makefile
b/extras/volume_id/Makefile
index c419e8860fc7dd97722f18594ffcc23ef4a48878..014bf8713d79f72a18f9d76ef52c780a72ab11b2 100644
(file)
--- a/
extras/volume_id/Makefile
+++ b/
extras/volume_id/Makefile
@@
-1,13
+1,13
@@
-# Makefile for
udev_
volume_id
+# Makefile for volume_id
#
#
-# Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org>
+# Copyright (C) 2004
, 2005
Kay Sievers <kay.sievers@vrfy.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
-PROG =
udev_volume
_id
+PROG =
vol
_id
all: $(PROG)
all: $(PROG)
@@
-28,23
+28,14
@@
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
-override CFLAGS+=-Wall -fno-builtin -Wchar-subscripts \
- -Wpointer-arith -Wcast-align -Wsign-compare
-
override CFLAGS+=-D_FILE_OFFSET_BITS=64
override CFLAGS+=-D_FILE_OFFSET_BITS=64
-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
-
+VOLUME_ID_BASE=volume_id
+include $(VOLUME_ID_BASE)/Makefile.inc
-
-OBJS = volume_id.o udev_volume_id.o dasdlabel.o $(SYSFS)
-HEADERS =
volume_id.h dasdlabel.h
+OBJS = vol_id.o $(VOLUME_ID_OBJS)
+LIB_OBJS=../../udev.a
+HEADERS =
$(VOLUME_ID_HEADERS)
$(OBJS): $(HEADERS)
$(OBJS): $(HEADERS)
@@
-52,7
+43,7
@@
$(OBJS): $(HEADERS)
$(QUIET) $(CC) $(CFLAGS) -c -o $@ $<
$(PROG): $(OBJS) $(HEADERS)
$(QUIET) $(CC) $(CFLAGS) -c -o $@ $<
$(PROG): $(OBJS) $(HEADERS)
- $(QUIET) $(LD) $(LDFLAGS) -o $(PROG) $(
CRT0) $(OBJS) $(LIB_OBJS) $(ARCH_
LIB_OBJS)
+ $(QUIET) $(LD) $(LDFLAGS) -o $(PROG) $(
OBJS) $(
LIB_OBJS)
clean:
rm -f $(PROG) $(OBJS)
clean:
rm -f $(PROG) $(OBJS)
@@
-60,8
+51,7
@@
clean:
spotless: clean
install: all
spotless: clean
install: all
- $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(
usr
sbindir)/$(PROG)
+ $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
uninstall:
uninstall:
- - rm $(DESTDIR)$(usrsbindir)/$(PROG)
-
+ - rm $(DESTDIR)$(sbindir)/$(PROG)