Annotation of embedaddon/sudo/plugins/sample/Makefile.in, revision 1.1.1.4

1.1       misho       1: #
1.1.1.4 ! misho       2: # Copyright (c) 2011-2013 Todd C. Miller <Todd.Miller@courtesan.com>
1.1       misho       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: 
1.1.1.4 ! misho      53: # Stack smashing protection flags
        !            54: SSP_CFLAGS = @SSP_CFLAGS@
        !            55: SSP_LDFLAGS = @SSP_LDFLAGS@
        !            56: 
1.1       misho      57: # Where to install things...
                     58: prefix = @prefix@
                     59: exec_prefix = @exec_prefix@
                     60: bindir = @bindir@
                     61: sbindir = @sbindir@
                     62: sysconfdir = @sysconfdir@
                     63: libexecdir = @libexecdir@
                     64: datarootdir = @datarootdir@
                     65: localstatedir = @localstatedir@
                     66: plugindir = @PLUGINDIR@
1.1.1.3   misho      67: 
                     68: # File extension, mode and map file to use for shared libraries/objects
1.1       misho      69: soext = @SOEXT@
1.1.1.3   misho      70: shlib_mode = @SHLIB_MODE@
                     71: shlib_exp = $(srcdir)/sample_plugin.exp
                     72: shlib_map = sample_plugin.map
                     73: shlib_opt = sample_plugin.opt
1.1       misho      74: 
                     75: # OS dependent defines
                     76: DEFS = @OSDEFS@
                     77: 
                     78: #### End of system configuration section. ####
                     79: 
                     80: SHELL = @SHELL@
                     81: 
                     82: OBJS = sample_plugin.lo
                     83: 
                     84: LIBOBJDIR = $(top_builddir)/@ac_config_libobj_dir@/
                     85: 
                     86: VERSION = @PACKAGE_VERSION@
                     87: 
                     88: all: sample_plugin.la
                     89: 
                     90: Makefile: $(srcdir)/Makefile.in
                     91:        (cd $(top_builddir) && ./config.status --file plugins/sample/Makefile)
                     92: 
                     93: .SUFFIXES: .o .c .h .lo
                     94: 
                     95: .c.lo:
1.1.1.4 ! misho      96:        $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $<
1.1.1.3   misho      97: 
                     98: $(shlib_map): $(shlib_exp)
                     99:        @awk 'BEGIN { print "{\n\tglobal:" } { print "\t\t"$$0";" } END { print "\tlocal:\n\t\t*;\n};" }' $(shlib_exp) > $@
                    100: 
                    101: $(shlib_opt): $(shlib_exp)
                    102:        @sed 's/^/+e /' $(shlib_exp) > $@
1.1       misho     103: 
1.1.1.3   misho     104: sample_plugin.la: $(OBJS) @LT_LDDEP@
                    105:        $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LT_LDFLAGS) -o $@ $(OBJS) $(LIBS) -module -avoid-version -rpath $(plugindir)
1.1       misho     106: 
                    107: pre-install:
                    108: 
1.1.1.2   misho     109: install: install-plugin
1.1       misho     110: 
                    111: install-dirs:
                    112:        $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(plugindir)
                    113: 
                    114: install-binaries:
                    115: 
                    116: install-includes:
                    117: 
                    118: install-doc:
                    119: 
                    120: install-plugin: install-dirs sample_plugin.la
1.1.1.4 ! misho     121:        $(INSTALL) -b~ -m $(shlib_mode) .libs/sample_plugin$(soext) $(DESTDIR)$(plugindir)/sample_plugin.so
1.1       misho     122: 
                    123: uninstall:
1.1.1.4 ! misho     124:        -rm -f $(DESTDIR)$(plugindir)/sample_plugin.so
1.1       misho     125: 
                    126: check:
                    127: 
                    128: clean:
                    129:        -$(LIBTOOL) --mode=clean rm -f *.lo *.o *.la *.a stamp-* core *.core core.*
                    130: 
                    131: mostlyclean: clean
                    132: 
                    133: distclean: clean
                    134:        -rm -rf Makefile .libs
                    135: 
                    136: clobber: distclean
                    137: 
                    138: realclean: distclean
                    139:        rm -f TAGS tags
                    140: 
                    141: cleandir: realclean
                    142: 
                    143: # Autogenerated dependencies, do not modify
                    144: sample_plugin.lo: $(srcdir)/sample_plugin.c $(top_builddir)/config.h \
1.1.1.2   misho     145:                   $(top_srcdir)/compat/stdbool.h $(top_builddir)/pathnames.h \
                    146:                   $(incdir)/sudo_plugin.h $(incdir)/missing.h
1.1.1.4 ! misho     147:        $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sample_plugin.c

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>