chiark / gitweb /
create_floppy_devices: add tool to create floppy nodes based on sysfs info
[elogind.git] / extras / floppy / Makefile
1 # Makefile for create_floppy_devices
2 #
3 # Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org>
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
10 PROG = create_floppy_devices
11
12 all:    $(PROG)
13
14 prefix =
15 exec_prefix =   ${prefix}
16 etcdir =        ${prefix}/etc
17 sbindir =       ${exec_prefix}/sbin
18 usrbindir =     ${exec_prefix}/usr/bin
19 usrsbindir =    ${exec_prefix}/usr/sbin
20 mandir =        ${prefix}/usr/share/man
21 devddir =       ${etcdir}/dev.d/default
22 configdir =     ${etcdir}/udev/
23 initdir =       ${etcdir}/init.d/
24 srcdir = .
25
26 INSTALL = /usr/bin/install -c
27 INSTALL_PROGRAM = ${INSTALL}
28 INSTALL_DATA  = ${INSTALL} -m 644
29 INSTALL_SCRIPT = ${INSTALL_PROGRAM}
30
31 CFLAGS+=-D_FILE_OFFSET_BITS=64
32
33 OBJS = $(PROG).o ../../udev.a
34
35 $(OBJS): $(HEADERS)
36
37 .c.o:
38         $(QUIET) $(CC) $(CFLAGS) -c -o $@ $<
39
40 $(PROG): $(OBJS) $(HEADERS)
41         $(QUIET) $(LD) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIB_OBJS)
42
43 clean:
44         rm -f $(PROG) $(OBJS)
45
46 spotless: clean
47
48 install: all
49         $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG)
50
51 uninstall:
52         - rm $(DESTDIR)$(sbindir)/$(PROG)