Imported Upstream version 1.8.2
[debian/sudo] / plugins / sample / 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 LIBS = $(LIBOBJDIR)/libreplace.la
37
38 # C preprocessor flags
39 CPPFLAGS = -I$(incdir) -I$(top_builddir) @CPPFLAGS@
40
41 # Usually -O and/or -g
42 CFLAGS = @CFLAGS@
43
44 # Flags to pass to the link stage
45 LDFLAGS = @LDFLAGS@
46 LTLDFLAGS = @LTLDFLAGS@
47
48 # Where to install things...
49 prefix = @prefix@
50 exec_prefix = @exec_prefix@
51 bindir = @bindir@
52 sbindir = @sbindir@
53 sysconfdir = @sysconfdir@
54 libexecdir = @libexecdir@
55 datarootdir = @datarootdir@
56 localstatedir = @localstatedir@
57 plugindir = @PLUGINDIR@
58 soext = @SOEXT@
59
60 # OS dependent defines
61 DEFS = @OSDEFS@
62
63 #### End of system configuration section. ####
64
65 SHELL = @SHELL@
66
67 OBJS =  sample_plugin.lo
68
69 LIBOBJDIR = $(top_builddir)/@ac_config_libobj_dir@/
70
71 VERSION = @PACKAGE_VERSION@
72
73 all: sample_plugin.la
74
75 Makefile: $(srcdir)/Makefile.in
76         (cd $(top_builddir) && ./config.status --file plugins/sample/Makefile)
77
78 .SUFFIXES: .o .c .h .lo
79
80 .c.lo:
81         $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
82
83 sample_plugin.la: $(OBJS)
84         $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LTLDFLAGS) -o $@ $(OBJS) $(LIBS) -module -export-symbols $(srcdir)/sample_plugin.sym -avoid-version -rpath $(plugindir)
85
86 pre-install:
87
88 install: install-dirs install-plugin
89
90 install-dirs:
91         $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(plugindir)
92
93 install-binaries:
94
95 install-includes:
96
97 install-doc:
98
99 install-plugin: install-dirs sample_plugin.la
100         $(INSTALL) -b~ -M 0755 .libs/sample_plugin$(soext) $(DESTDIR)$(plugindir)
101
102 uninstall:
103         -rm -f $(DESTDIR)$(plugindir)/sample_plugin$(soext)
104
105 check:
106
107 clean:
108         -$(LIBTOOL) --mode=clean rm -f *.lo *.o *.la *.a stamp-* core *.core core.*
109
110 mostlyclean: clean
111
112 distclean: clean
113         -rm -rf Makefile .libs
114
115 clobber: distclean
116
117 realclean: distclean
118         rm -f TAGS tags
119
120 cleandir: realclean
121
122 # Autogenerated dependencies, do not modify
123 sample_plugin.lo: $(srcdir)/sample_plugin.c $(top_builddir)/config.h \
124                   $(top_builddir)/pathnames.h $(incdir)/sudo_plugin.h \
125                   $(incdir)/missing.h
126         $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sample_plugin.c