File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / sudo / plugins / sample / Makefile.in
Revision 1.1.1.6 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Sun Jun 15 16:12:54 2014 UTC (10 years, 1 month ago) by misho
Branches: sudo, MAIN
CVS tags: v1_8_10p3_0, v1_8_10p3, HEAD
sudo v 1.8.10p3

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

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