]> git.ipfire.org Git - thirdparty/systemd.git/blame - extras/volume_id/Makefile
[PATCH] The following patch fixes some warnings when compiling volume_id
[thirdparty/systemd.git] / extras / volume_id / Makefile
CommitLineData
3611d582
KS
1# Makefile for udev_volume_id
2#
cde5a756 3# Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org>
3611d582
KS
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; version 2 of the License.
8#
9
10PROG = udev_volume_id
11
12all: $(PROG)
13
14prefix =
15exec_prefix = ${prefix}
16etcdir = ${prefix}/etc
17sbindir = ${exec_prefix}/sbin
18usrbindir = ${exec_prefix}/usr/bin
19usrsbindir = ${exec_prefix}/usr/sbin
20mandir = ${prefix}/usr/share/man
21devddir = ${etcdir}/dev.d/default
22configdir = ${etcdir}/udev/
23initdir = ${etcdir}/init.d/
24srcdir = .
25
26INSTALL = /usr/bin/install -c
27INSTALL_PROGRAM = ${INSTALL}
28INSTALL_DATA = ${INSTALL} -m 644
29INSTALL_SCRIPT = ${INSTALL_PROGRAM}
30
9066c16a 31override CFLAGS+=-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
cde5a756 32
9d4791b6
KS
33VOLUME_ID_BASE=volume_id
34include $(VOLUME_ID_BASE)/Makefile.inc
c033fd9f
KS
35
36OBJS = udev_volume_id.o $(VOLUME_ID_OBJS) $(SYSFS)
37HEADERS = $(VOLUME_ID_HEADERS)
3611d582
KS
38
39$(OBJS): $(HEADERS)
40
396bb4c3
GKH
41.c.o:
42 $(QUIET) $(CC) $(CFLAGS) -c -o $@ $<
43
3611d582 44$(PROG): $(OBJS) $(HEADERS)
396bb4c3 45 $(QUIET) $(LD) $(LDFLAGS) -o $(PROG) $(CRT0) $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS)
3611d582
KS
46
47clean:
48 rm -f $(PROG) $(OBJS)
49
50spotless: clean
51
52install: all
a9ce6041 53 $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
3611d582
KS
54
55uninstall:
a9ce6041 56 - rm $(DESTDIR)$(sbindir)/$(PROG)