1 # Makefile for udev_selinux
3 # Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com>
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.
10 # Set the following to control the use of syslog
11 # Set it to `false' to remove all logging
14 # Set the following to `true' to log the debug
15 # and make a unstripped, unoptimized binary.
16 # Leave this set to `false' for production use.
23 # override this to make udev look in a different location for it's config files
25 exec_prefix = ${prefix}
26 etcdir = ${prefix}/etc
27 sbindir = ${exec_prefix}/sbin
28 usrbindir = ${exec_prefix}/usr/bin
29 mandir = ${prefix}/usr/share/man
30 hotplugdir = ${etcdir}/hotplug.d/default
31 configdir = ${etcdir}/udev/
32 initdir = ${etcdir}/init.d/
35 INSTALL = /usr/bin/install -c
36 INSTALL_PROGRAM = ${INSTALL}
37 INSTALL_DATA = ${INSTALL} -m 644
38 INSTALL_SCRIPT = ${INSTALL_PROGRAM}
44 override CFLAGS += -DUSE_SELINUX
45 override LIB_OBJS += -lselinux
48 $(LD) $(LDFLAGS) -o $(PROG) $(CRT0) $(OBJS) ../../udev_lib.o $(LIB_OBJS) $(ARCH_LIB_OBJS)