Annotation of embedaddon/sudo/plugins/sample/Makefile.in, revision 1.1.1.3
1.1 misho 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
1.1.1.3 ! misho 27: cross_compiling = @CROSS_COMPILING@
1.1 misho 28:
29: # Compiler & tools to use
30: CC = @CC@
31: LIBTOOL = @LIBTOOL@ @LT_STATIC@
32:
33: # Our install program supports extra flags...
34: INSTALL = $(SHELL) $(top_srcdir)/install-sh -c
35:
36: # Libraries
37: LIBS = $(LIBOBJDIR)/libreplace.la
38:
39: # C preprocessor flags
1.1.1.2 misho 40: CPPFLAGS = -I$(incdir) -I$(top_builddir) -I$(top_srcdir) @CPPFLAGS@
1.1 misho 41:
42: # Usually -O and/or -g
43: CFLAGS = @CFLAGS@
44:
45: # Flags to pass to the link stage
46: LDFLAGS = @LDFLAGS@
1.1.1.3 ! misho 47: LT_LDFLAGS = @LT_LDFLAGS@ @LT_LDMAP@ @LT_LDOPT@ @LT_LDEXPORTS@
! 48:
! 49: # PIE flags
! 50: PIE_CFLAGS = @PIE_CFLAGS@
! 51: PIE_LDFLAGS = @PIE_LDFLAGS@
1.1 misho 52:
53: # Where to install things...
54: prefix = @prefix@
55: exec_prefix = @exec_prefix@
56: bindir = @bindir@
57: sbindir = @sbindir@
58: sysconfdir = @sysconfdir@
59: libexecdir = @libexecdir@
60: datarootdir = @datarootdir@
61: localstatedir = @localstatedir@
62: plugindir = @PLUGINDIR@
1.1.1.3 ! misho 63:
! 64: # File extension, mode and map file to use for shared libraries/objects
1.1 misho 65: soext = @SOEXT@
1.1.1.3 ! misho 66: shlib_mode = @SHLIB_MODE@
! 67: shlib_exp = $(srcdir)/sample_plugin.exp
! 68: shlib_map = sample_plugin.map
! 69: shlib_opt = sample_plugin.opt
1.1 misho 70:
71: # OS dependent defines
72: DEFS = @OSDEFS@
73:
74: #### End of system configuration section. ####
75:
76: SHELL = @SHELL@
77:
78: OBJS = sample_plugin.lo
79:
80: LIBOBJDIR = $(top_builddir)/@ac_config_libobj_dir@/
81:
82: VERSION = @PACKAGE_VERSION@
83:
84: all: sample_plugin.la
85:
86: Makefile: $(srcdir)/Makefile.in
87: (cd $(top_builddir) && ./config.status --file plugins/sample/Makefile)
88:
89: .SUFFIXES: .o .c .h .lo
90:
91: .c.lo:
1.1.1.3 ! misho 92: $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $<
! 93:
! 94: $(shlib_map): $(shlib_exp)
! 95: @awk 'BEGIN { print "{\n\tglobal:" } { print "\t\t"$$0";" } END { print "\tlocal:\n\t\t*;\n};" }' $(shlib_exp) > $@
! 96:
! 97: $(shlib_opt): $(shlib_exp)
! 98: @sed 's/^/+e /' $(shlib_exp) > $@
1.1 misho 99:
1.1.1.3 ! misho 100: sample_plugin.la: $(OBJS) @LT_LDDEP@
! 101: $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LT_LDFLAGS) -o $@ $(OBJS) $(LIBS) -module -avoid-version -rpath $(plugindir)
1.1 misho 102:
103: pre-install:
104:
1.1.1.2 misho 105: install: install-plugin
1.1 misho 106:
107: install-dirs:
108: $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(plugindir)
109:
110: install-binaries:
111:
112: install-includes:
113:
114: install-doc:
115:
116: install-plugin: install-dirs sample_plugin.la
1.1.1.3 ! misho 117: $(INSTALL) -b~ -m $(shlib_mode) .libs/sample_plugin$(soext) $(DESTDIR)$(plugindir)
1.1 misho 118:
119: uninstall:
120: -rm -f $(DESTDIR)$(plugindir)/sample_plugin$(soext)
121:
122: check:
123:
124: clean:
125: -$(LIBTOOL) --mode=clean rm -f *.lo *.o *.la *.a stamp-* core *.core core.*
126:
127: mostlyclean: clean
128:
129: distclean: clean
130: -rm -rf Makefile .libs
131:
132: clobber: distclean
133:
134: realclean: distclean
135: rm -f TAGS tags
136:
137: cleandir: realclean
138:
139: # Autogenerated dependencies, do not modify
140: sample_plugin.lo: $(srcdir)/sample_plugin.c $(top_builddir)/config.h \
1.1.1.2 misho 141: $(top_srcdir)/compat/stdbool.h $(top_builddir)/pathnames.h \
142: $(incdir)/sudo_plugin.h $(incdir)/missing.h
1.1.1.3 ! misho 143: $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/sample_plugin.c
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>