File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / sudo / plugins / sample_group / Makefile.in
Revision 1.1.1.3 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Oct 9 09:29:52 2012 UTC (11 years, 10 months ago) by misho
Branches: sudo, MAIN
CVS tags: HEAD
sudo

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

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