Merge tag 'debian/1.8.5p2-1' into squeeze
[debian/sudo] / plugins / sample_group / Makefile.in
1 #
2 # Copyright (c) 2011 Todd C. Miller <Todd.Miller@courtesan.com>
3 #
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.
7 #
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.
16 #
17 # @configure_input@
18 #
19
20 #### Start of system configuration section. ####
21
22 srcdir = @srcdir@
23 devdir = @devdir@
24 top_builddir = @top_builddir@
25 top_srcdir = @top_srcdir@
26 incdir = $(top_srcdir)/include
27
28 # Compiler & tools to use
29 CC = @CC@
30 LIBTOOL = @LIBTOOL@ @LT_STATIC@
31
32 # Our install program supports extra flags...
33 INSTALL = $(SHELL) $(top_srcdir)/install-sh -c
34
35 # Libraries
36 LT_LIBS = $(LIBOBJDIR)libreplace.la
37 LIBS = $(LT_LIBS)
38
39 # C preprocessor flags
40 CPPFLAGS = -I$(incdir) -I$(top_builddir) -I$(top_srcdir) @CPPFLAGS@
41
42 # Usually -O and/or -g
43 CFLAGS = @CFLAGS@
44
45 # Flags to pass to the link stage
46 LDFLAGS = @LDFLAGS@
47 LTLDFLAGS = @LTLDFLAGS@
48
49 # Where to install things...
50 prefix = @prefix@
51 exec_prefix = @exec_prefix@
52 bindir = @bindir@
53 sbindir = @sbindir@
54 sysconfdir = @sysconfdir@
55 libexecdir = @libexecdir@
56 datarootdir = @datarootdir@
57 localstatedir = @localstatedir@
58 plugindir = @PLUGINDIR@
59 soext = @SOEXT@
60
61 # OS dependent defines
62 DEFS = @OSDEFS@
63
64 #### End of system configuration section. ####
65
66 SHELL = @SHELL@
67
68 OBJS =  sample_group.lo getgrent.lo
69
70 LIBOBJDIR = $(top_builddir)/@ac_config_libobj_dir@/
71
72 VERSION = @PACKAGE_VERSION@
73
74 all: sample_group.la
75
76 Makefile: $(srcdir)/Makefile.in
77         (cd $(top_builddir) && ./config.status --file plugins/sample_group/Makefile)
78
79 .SUFFIXES: .o .c .h .lo
80
81 .c.lo:
82         $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
83
84 sample_group.la: $(OBJS) $(LT_LIBS)
85         $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LTLDFLAGS) -o $@ $(OBJS) $(LIBS) -module -export-symbols $(srcdir)/sample_group.sym -avoid-version -rpath $(plugindir)
86
87 pre-install:
88
89 install: install-plugin
90
91 install-dirs:
92         $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(plugindir)
93
94 install-binaries:
95
96 install-includes:
97
98 install-doc:
99
100 install-plugin: install-dirs sample_group.la
101         $(INSTALL) -b~ -m 0755 .libs/sample_group$(soext) $(DESTDIR)$(plugindir)
102
103 uninstall:
104         -rm -f $(DESTDIR)$(plugindir)/sample_group$(soext)
105
106 check:
107
108 clean:
109         -$(LIBTOOL) --mode=clean rm -f *.lo *.o *.la *.a stamp-* core *.core core.*
110
111 mostlyclean: clean
112
113 distclean: clean
114         -rm -rf Makefile .libs
115
116 clobber: distclean
117
118 realclean: distclean
119         rm -f TAGS tags
120
121 cleandir: realclean
122
123 # Autogenerated dependencies, do not modify
124 getgrent.lo: $(srcdir)/getgrent.c $(top_builddir)/config.h $(incdir)/missing.h
125         $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getgrent.c
126 sample_group.lo: $(srcdir)/sample_group.c $(top_builddir)/config.h \
127                  $(top_srcdir)/compat/stdbool.h $(incdir)/sudo_plugin.h \
128                  $(incdir)/missing.h
129         $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sample_group.c