2 # Copyright (c) 2011 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 LIBS = $(LIBOBJDIR)/libreplace.la
38 # C preprocessor flags
39 CPPFLAGS = -I$(incdir) -I$(top_builddir) @CPPFLAGS@
41 # Usually -O and/or -g
44 # Flags to pass to the link stage
46 LTLDFLAGS = @LTLDFLAGS@
48 # Where to install things...
50 exec_prefix = @exec_prefix@
53 sysconfdir = @sysconfdir@
54 libexecdir = @libexecdir@
55 datarootdir = @datarootdir@
56 localstatedir = @localstatedir@
57 plugindir = @PLUGINDIR@
60 # OS dependent defines
63 #### End of system configuration section. ####
67 OBJS = sample_group.lo getgrent.lo
69 LIBOBJDIR = $(top_builddir)/@ac_config_libobj_dir@/
71 VERSION = @PACKAGE_VERSION@
75 Makefile: $(srcdir)/Makefile.in
76 (cd $(top_builddir) && ./config.status --file plugins/sample_group/Makefile)
78 .SUFFIXES: .o .c .h .lo
81 $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
83 sample_group.la: $(OBJS)
84 $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LTLDFLAGS) -o $@ $(OBJS) $(LIBS) -module -export-symbols $(srcdir)/sample_group.sym -avoid-version -rpath $(plugindir)
88 install: install-dirs install-plugin
91 $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(plugindir)
99 install-plugin: install-dirs sample_group.la
100 $(INSTALL) -b~ -M 0755 .libs/sample_group$(soext) $(DESTDIR)$(plugindir)
103 -rm -f $(DESTDIR)$(plugindir)/sample_group$(soext)
108 -$(LIBTOOL) --mode=clean rm -f *.lo *.o *.la *.a stamp-* core *.core core.*
113 -rm -rf Makefile .libs
122 # Autogenerated dependencies, do not modify
123 getgrent.lo: $(srcdir)/getgrent.c $(top_builddir)/config.h $(incdir)/missing.h
124 $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getgrent.c
125 sample_group.lo: $(srcdir)/sample_group.c $(top_builddir)/config.h \
126 $(incdir)/sudo_plugin.h $(incdir)/missing.h
127 $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sample_group.c