2 # Copyright (c) 2011-2012 Todd C. Miller <Todd.Miller@courtesan.com>
4 # Permission to use, copy, modify, and distribute this software for any
5 # purpose with or without fee is hereby granted, provided that the above
6 # copyright notice and this permission notice appear in all copies.
8 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
20 #### Start of system configuration section. ####
24 top_builddir = @top_builddir@
25 top_srcdir = @top_srcdir@
26 incdir = $(top_srcdir)/include
28 # Compiler & tools to use
30 LIBTOOL = @LIBTOOL@ @LT_STATIC@
32 # Our install program supports extra flags...
33 INSTALL = $(SHELL) $(top_srcdir)/install-sh -c
36 LT_LIBS = $(LIBOBJDIR)libreplace.la
39 # C preprocessor flags
40 CPPFLAGS = -I$(incdir) -I$(top_builddir) -I$(top_srcdir) @CPPFLAGS@
42 # Usually -O and/or -g
45 # Flags to pass to the link stage
47 LTLDFLAGS = @LTLDFLAGS@
49 # Where to install things...
51 exec_prefix = @exec_prefix@
54 sysconfdir = @sysconfdir@
55 libexecdir = @libexecdir@
56 datarootdir = @datarootdir@
57 localstatedir = @localstatedir@
58 plugindir = @PLUGINDIR@
61 # OS dependent defines
64 #### End of system configuration section. ####
68 OBJS = system_group.lo
70 LIBOBJDIR = $(top_builddir)/@ac_config_libobj_dir@/
72 VERSION = @PACKAGE_VERSION@
76 Makefile: $(srcdir)/Makefile.in
77 (cd $(top_builddir) && ./config.status --file plugins/system_group/Makefile)
79 .SUFFIXES: .o .c .h .lo
82 $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
84 system_group.la: $(OBJS) $(LT_LIBS)
85 $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LTLDFLAGS) -o $@ $(OBJS) $(LIBS) -module -export-symbols $(srcdir)/system_group.sym -avoid-version -rpath $(plugindir)
89 install: install-plugin
92 $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(plugindir)
100 install-plugin: install-dirs system_group.la
101 $(INSTALL) -b~ -m 0755 .libs/system_group$(soext) $(DESTDIR)$(plugindir)
104 -rm -f $(DESTDIR)$(plugindir)/system_group$(soext)
109 -$(LIBTOOL) --mode=clean rm -f *.lo *.o *.la *.a stamp-* core *.core core.*
114 -rm -rf Makefile .libs
123 # Autogenerated dependencies, do not modify
124 system_group.lo: $(srcdir)/system_group.c $(top_builddir)/config.h \
125 $(top_srcdir)/compat/stdbool.h $(top_srcdir)/compat/dlfcn.h \
126 $(incdir)/sudo_plugin.h $(incdir)/missing.h
127 $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/system_group.c