chiark / gitweb /
[PATCH] move udev_selinux into extras/selinux
[elogind.git] / extras / selinux / Makefile
1 # Makefile for udev_selinux
2 #
3 # Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com>
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 # Set the following to control the use of syslog
11 # Set it to `false' to remove all logging
12 USE_LOG = true
13
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.
17 DEBUG = false
18
19 PROG = udev_selinux
20
21 DESTDIR =
22
23 # override this to make udev look in a different location for it's config files
24 prefix =
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/
33 srcdir = .
34
35 INSTALL = /usr/bin/install -c
36 INSTALL_PROGRAM = ${INSTALL}
37 INSTALL_DATA  = ${INSTALL} -m 644
38 INSTALL_SCRIPT = ${INSTALL_PROGRAM}
39
40 all: $(PROG)
41
42 OBJS = udev_selinux.o
43
44 override CFLAGS  += -DUSE_SELINUX
45 override LIB_OBJS += -lselinux
46
47 $(PROG): $(OBJS)
48         $(LD) $(LDFLAGS) -o $(PROG) $(CRT0) $(OBJS) ../../udev_lib.o $(LIB_OBJS) $(ARCH_LIB_OBJS)
49
50 clean:
51         rm -f $(PROG) $(OBJS)
52
53 spotless: clean
54
55
56 install: all
57
58 uninstall: 
59