1 # Makefile for run_directory
3 # Copyright (C) 2005 Kay Sievers <kay.sievers@vrfy.org>
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.
11 HOTPLUGD = udev_run_hotplugd
13 all: $(DEVD) $(HOTPLUGD)
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 = ../../udev.a ../../libsysfs/sysfs.a
35 $(QUIET) $(CC) $(CFLAGS) -c -o $@ $<
37 $(DEVD): $(HEADERS) $(DEVD).o run_directory.o
38 $(QUIET) $(LD) $(LDFLAGS) -o $(DEVD) $(DEVD).o run_directory.o $(OBJS)
40 $(HOTPLUGD): $(HEADERS) $(HOTPLUGD).o run_directory.o
41 $(QUIET) $(LD) $(LDFLAGS) -o $(HOTPLUGD) $(HOTPLUGD).o run_directory.o $(OBJS)
44 rm -f $(DEVD) $(HOTPLUGD) run_directory.o
49 $(INSTALL_PROGRAM) $(DEVD) $(DESTDIR)$(sbindir)/$(DEVD)
50 $(INSTALL_PROGRAM) $(HOTPLUGD) $(DESTDIR)$(sbindir)/$(HOTPLUGD)
53 - rm $(DESTDIR)$(sbindir)/$(DEVD)