File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / sudo / compat / 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, 9 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: # Where to install things...
   30: prefix = @prefix@
   31: exec_prefix = @exec_prefix@
   32: bindir = @bindir@
   33: sbindir = @sbindir@
   34: sysconfdir = @sysconfdir@
   35: libexecdir = @libexecdir@
   36: datarootdir = @datarootdir@
   37: localstatedir = @localstatedir@
   38: 
   39: # Compiler & tools to use
   40: CC = @CC@
   41: LIBTOOL = @LIBTOOL@
   42: 
   43: # C preprocessor flags
   44: CPPFLAGS = -I$(incdir) -I$(top_builddir) -I$(top_srcdir) @CPPFLAGS@
   45: 
   46: # Usually -O and/or -g
   47: CFLAGS = @CFLAGS@
   48: 
   49: # PIE flags
   50: PIE_CFLAGS = @PIE_CFLAGS@
   51: PIE_LDFLAGS = @PIE_LDFLAGS@
   52: 
   53: # OS dependent defines
   54: DEFS = @OSDEFS@
   55: 
   56: # Set to non-empty for development mode
   57: DEVEL = @DEVEL@
   58: 
   59: #### End of system configuration section. ####
   60: 
   61: SHELL = @SHELL@
   62: 
   63: TEST_PROGS = @COMPAT_TEST_PROGS@
   64: 
   65: LIBOBJDIR =
   66: 
   67: LTLIBOBJS = @LTLIBOBJS@
   68: 
   69: all: libreplace.la
   70: 
   71: Makefile: $(srcdir)/Makefile.in
   72: 	(cd $(top_builddir) && ./config.status --file compat/Makefile)
   73: 
   74: .SUFFIXES: .o .c .h .lo
   75: 
   76: .c.o:
   77: 	$(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $<
   78: 
   79: .c.lo:
   80: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $<
   81: 
   82: libreplace.la: $(LTLIBOBJS)
   83: 	$(LIBTOOL) --mode=link $(CC) -o $@ $(LTLIBOBJS) -no-install
   84: 
   85: siglist.c: mksiglist
   86: 	./mksiglist > $@
   87: 
   88: signame.c: mksigname
   89: 	./mksigname > $@
   90: 
   91: mksiglist: $(srcdir)/mksiglist.c $(srcdir)/mksiglist.h $(incdir)/missing.h $(top_builddir)/config.h
   92: 	$(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@
   93: 
   94: mksigname: $(srcdir)/mksigname.c $(srcdir)/mksigname.h $(incdir)/missing.h $(top_builddir)/config.h
   95: 	$(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/mksigname.c -o $@
   96: 
   97: fnm_test: fnm_test.o libreplace.la
   98: 	$(LIBTOOL) --mode=link $(CC) -o $@ fnm_test.o libreplace.la
   99: 
  100: globtest: globtest.o libreplace.la
  101: 	$(LIBTOOL) --mode=link $(CC) -o $@ globtest.o libreplace.la
  102: 
  103: $(srcdir)/mksiglist.h: $(srcdir)/siglist.in
  104: 	@if [ -n "$(DEVEL)" ]; then \
  105: 	    awk 'BEGIN {print "/* public domain */\n"} /^    [A-Z]/ {printf("#ifdef SIG%s\n    if (sudo_sys_siglist[SIG%s] == NULL)\n\tsudo_sys_siglist[SIG%s] = \"%s\";\n#endif\n", $$1, $$1, $$1, substr($$0, 13))}' < $(srcdir)/siglist.in > $@; \
  106: 	fi
  107: 
  108: $(srcdir)/mksigname.h: $(srcdir)/siglist.in
  109: 	@if [ -n "$(DEVEL)" ]; then \
  110: 	    awk 'BEGIN {print "/* public domain */\n"} /^    [A-Z]/ {printf("#ifdef SIG%s\n    if (sudo_sys_signame[SIG%s] == NULL)\n\tsudo_sys_signame[SIG%s] = \"%s\";\n#endif\n", $$1, $$1, $$1, $$1)}' < $(srcdir)/siglist.in > $@; \
  111: 	fi
  112: 
  113: pre-install:
  114: 
  115: install:
  116: 
  117: install-dirs:
  118: 
  119: install-binaries:
  120: 
  121: install-includes:
  122: 
  123: install-doc:
  124: 
  125: install-plugin:
  126: 
  127: uninstall:
  128: 
  129: check: $(TEST_PROGS)
  130: 	@if test X"$(cross_compiling)" != X"yes"; then \
  131: 	    if test -f fnm_test; then \
  132: 		./fnm_test $(srcdir)/regress/fnmatch/fnm_test.in; \
  133: 	    fi; \
  134: 	    if test -f globtest; then \
  135: 		mkdir -p `sed 's@/[^/]*$$@@' $(srcdir)/regress/glob/files | sort -u`; \
  136: 		touch `cat $(srcdir)/regress/glob/files`; \
  137: 		chmod 0755 `grep '/r[^/]*$$' $(srcdir)/regress/glob/files`; \
  138: 		chmod 0444 `grep '/s[^/]*$$' $(srcdir)/regress/glob/files`; \
  139: 		chmod 0711 `grep '/t[^/]*$$' $(srcdir)/regress/glob/files`; \
  140: 		./globtest $(srcdir)/regress/glob/globtest.in; \
  141: 		rval=$$?; \
  142: 		rm -rf fake; \
  143: 		exit $$rval; \
  144: 	    fi; \
  145: 	fi
  146: 
  147: clean:
  148: 	-$(LIBTOOL) --mode=clean rm -f $(TEST_PROGS) mksiglist mksigname siglist.c signame.c *.lo *.o *.la *.a stamp-* core *.core core.*
  149: 
  150: mostlyclean: clean
  151: 
  152: distclean: clean
  153: 	-rm -rf Makefile .libs
  154: 
  155: clobber: distclean
  156: 
  157: realclean: distclean
  158: 	rm -f TAGS tags
  159: 
  160: cleandir: realclean
  161: 
  162: # Autogenerated dependencies, do not modify
  163: closefrom.lo: $(srcdir)/closefrom.c $(top_builddir)/config.h $(incdir)/missing.h
  164: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/closefrom.c
  165: dlopen.lo: $(srcdir)/dlopen.c $(top_builddir)/config.h \
  166:            $(top_srcdir)/compat/dlfcn.h $(incdir)/missing.h
  167: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/dlopen.c
  168: fnm_test.o: $(srcdir)/regress/fnmatch/fnm_test.c $(top_builddir)/config.h \
  169:             $(top_srcdir)/compat/fnmatch.h
  170: 	$(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/regress/fnmatch/fnm_test.c
  171: fnmatch.lo: $(srcdir)/fnmatch.c $(top_builddir)/config.h $(incdir)/missing.h \
  172:             $(top_srcdir)/compat/charclass.h $(top_srcdir)/compat/fnmatch.h
  173: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/fnmatch.c
  174: getcwd.lo: $(srcdir)/getcwd.c $(top_builddir)/config.h $(incdir)/missing.h
  175: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/getcwd.c
  176: getgrouplist.lo: $(srcdir)/getgrouplist.c $(top_builddir)/config.h \
  177:                  $(incdir)/missing.h
  178: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/getgrouplist.c
  179: getline.lo: $(srcdir)/getline.c $(top_builddir)/config.h $(incdir)/missing.h
  180: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/getline.c
  181: getprogname.lo: $(srcdir)/getprogname.c $(top_builddir)/config.h \
  182:                 $(incdir)/missing.h
  183: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/getprogname.c
  184: glob.lo: $(srcdir)/glob.c $(top_builddir)/config.h $(incdir)/missing.h \
  185:          $(top_srcdir)/compat/glob.h $(top_srcdir)/compat/charclass.h
  186: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/glob.c
  187: globtest.o: $(srcdir)/regress/glob/globtest.c $(top_builddir)/config.h \
  188:             $(top_srcdir)/compat/glob.h $(incdir)/missing.h
  189: 	$(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/regress/glob/globtest.c
  190: isblank.lo: $(srcdir)/isblank.c $(top_builddir)/config.h $(incdir)/missing.h
  191: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/isblank.c
  192: memrchr.lo: $(srcdir)/memrchr.c $(top_builddir)/config.h $(incdir)/missing.h
  193: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/memrchr.c
  194: mksiglist.lo: $(srcdir)/mksiglist.c $(top_builddir)/config.h \
  195:               $(incdir)/missing.h $(top_srcdir)/compat/mksiglist.h
  196: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/mksiglist.c
  197: mksigname.lo: $(srcdir)/mksigname.c $(top_builddir)/config.h \
  198:               $(incdir)/missing.h $(top_srcdir)/compat/mksigname.h
  199: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/mksigname.c
  200: mktemp.lo: $(srcdir)/mktemp.c $(top_builddir)/config.h $(incdir)/missing.h
  201: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/mktemp.c
  202: nanosleep.lo: $(srcdir)/nanosleep.c $(top_builddir)/config.h \
  203:               $(top_srcdir)/compat/timespec.h $(incdir)/missing.h
  204: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/nanosleep.c
  205: pw_dup.lo: $(srcdir)/pw_dup.c $(top_builddir)/config.h
  206: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/pw_dup.c
  207: sig2str.lo: $(srcdir)/sig2str.c $(top_builddir)/config.h $(incdir)/missing.h
  208: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/sig2str.c
  209: siglist.lo: siglist.c $(top_builddir)/config.h $(incdir)/missing.h
  210: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) siglist.c
  211: signame.lo: signame.c $(top_builddir)/config.h $(incdir)/missing.h
  212: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) signame.c
  213: snprintf.lo: $(srcdir)/snprintf.c $(top_builddir)/config.h $(incdir)/missing.h
  214: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/snprintf.c
  215: strlcat.lo: $(srcdir)/strlcat.c $(top_builddir)/config.h $(incdir)/missing.h
  216: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/strlcat.c
  217: strlcpy.lo: $(srcdir)/strlcpy.c $(top_builddir)/config.h $(incdir)/missing.h
  218: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/strlcpy.c
  219: strsignal.lo: $(srcdir)/strsignal.c $(top_builddir)/config.h \
  220:               $(incdir)/missing.h $(incdir)/gettext.h
  221: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/strsignal.c
  222: utimes.lo: $(srcdir)/utimes.c $(top_builddir)/config.h \
  223:            $(top_srcdir)/compat/utime.h $(incdir)/missing.h
  224: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/utimes.c

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