1 # Makefile for cdrom_id
3 # Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org>
4 # Copyright (C) 2005 Greg Kroah-Hartman <gregkh@suse.de>
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; version 2 of the License.
16 exec_prefix = ${prefix}
17 etcdir = ${prefix}/etc
18 sbindir = ${exec_prefix}/sbin
19 usrbindir = ${exec_prefix}/usr/bin
20 usrsbindir = ${exec_prefix}/usr/sbin
21 mandir = ${prefix}/usr/share/man
22 devddir = ${etcdir}/dev.d/default
23 configdir = ${etcdir}/udev/
24 initdir = ${etcdir}/init.d/
27 INSTALL = /usr/bin/install -c
28 INSTALL_PROGRAM = ${INSTALL}
29 INSTALL_DATA = ${INSTALL} -m 644
30 INSTALL_SCRIPT = ${INSTALL_PROGRAM}
32 OBJS = cdrom_id.o ../../udev.a
37 $(QUIET) $(CC) $(CFLAGS) -c -o $@ $<
39 $(PROG): $(OBJS) $(HEADERS)
40 $(QUIET) $(LD) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIB_OBJS)
48 $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
51 - rm $(DESTDIR)$(sbindir)/$(PROG)