File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / sudo / compat / 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: # 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: # 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: # OS dependent defines
   61: DEFS = @OSDEFS@
   62: 
   63: # Set to non-empty for development mode
   64: DEVEL = @DEVEL@
   65: 
   66: #### End of system configuration section. ####
   67: 
   68: SHELL = @SHELL@
   69: 
   70: TEST_PROGS = @COMPAT_TEST_PROGS@
   71: 
   72: LIBOBJDIR =
   73: 
   74: LTLIBOBJS = @LTLIBOBJS@
   75: 
   76: all: libreplace.la
   77: 
   78: Makefile: $(srcdir)/Makefile.in
   79: 	(cd $(top_builddir) && ./config.status --file compat/Makefile)
   80: 
   81: .SUFFIXES: .o .c .h .lo
   82: 
   83: .c.o:
   84: 	$(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $<
   85: 
   86: .c.lo:
   87: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $<
   88: 
   89: libreplace.la: $(LTLIBOBJS)
   90: 	$(LIBTOOL) --mode=link $(CC) -o $@ $(LTLIBOBJS) -no-install
   91: 
   92: siglist.c: mksiglist
   93: 	./mksiglist > $@
   94: 
   95: signame.c: mksigname
   96: 	./mksigname > $@
   97: 
   98: mksiglist: $(srcdir)/mksiglist.c $(srcdir)/mksiglist.h $(incdir)/missing.h $(top_builddir)/config.h
   99: 	$(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@
  100: 
  101: mksigname: $(srcdir)/mksigname.c $(srcdir)/mksigname.h $(incdir)/missing.h $(top_builddir)/config.h
  102: 	$(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksigname.c -o $@
  103: 
  104: fnm_test: fnm_test.o libreplace.la
  105: 	$(LIBTOOL) --mode=link $(CC) -o $@ fnm_test.o libreplace.la $(PIE_LDFLAGS) $(SSP_LDFLAGS)
  106: 
  107: globtest: globtest.o libreplace.la
  108: 	$(LIBTOOL) --mode=link $(CC) -o $@ globtest.o libreplace.la $(PIE_LDFLAGS) $(SSP_LDFLAGS)
  109: 
  110: $(srcdir)/mksiglist.h: $(srcdir)/siglist.in
  111: 	@if [ -n "$(DEVEL)" ]; then \
  112: 	    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 > $@; \
  113: 	fi
  114: 
  115: $(srcdir)/mksigname.h: $(srcdir)/siglist.in
  116: 	@if [ -n "$(DEVEL)" ]; then \
  117: 	    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 > $@; \
  118: 	fi
  119: 
  120: pre-install:
  121: 
  122: install:
  123: 
  124: install-dirs:
  125: 
  126: install-binaries:
  127: 
  128: install-includes:
  129: 
  130: install-doc:
  131: 
  132: install-plugin:
  133: 
  134: uninstall:
  135: 
  136: cppcheck:
  137: 	cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
  138: 
  139: check: $(TEST_PROGS)
  140: 	@if test X"$(cross_compiling)" != X"yes"; then \
  141: 	    if test -f fnm_test; then \
  142: 		./fnm_test $(srcdir)/regress/fnmatch/fnm_test.in; \
  143: 	    fi; \
  144: 	    if test -f globtest; then \
  145: 		mkdir -p `sed 's@/[^/]*$$@@' $(srcdir)/regress/glob/files | sort -u`; \
  146: 		touch `cat $(srcdir)/regress/glob/files`; \
  147: 		chmod 0755 `grep '/r[^/]*$$' $(srcdir)/regress/glob/files`; \
  148: 		chmod 0444 `grep '/s[^/]*$$' $(srcdir)/regress/glob/files`; \
  149: 		chmod 0711 `grep '/t[^/]*$$' $(srcdir)/regress/glob/files`; \
  150: 		./globtest $(srcdir)/regress/glob/globtest.in; \
  151: 		rval=$$?; \
  152: 		rm -rf fake; \
  153: 		exit $$rval; \
  154: 	    fi; \
  155: 	fi
  156: 
  157: clean:
  158: 	-$(LIBTOOL) --mode=clean rm -f $(TEST_PROGS) mksiglist mksigname siglist.c signame.c *.lo *.o *.la *.a stamp-* core *.core core.*
  159: 
  160: mostlyclean: clean
  161: 
  162: distclean: clean
  163: 	-rm -rf Makefile .libs
  164: 
  165: clobber: distclean
  166: 
  167: realclean: distclean
  168: 	rm -f TAGS tags
  169: 
  170: cleandir: realclean
  171: 
  172: # Autogenerated dependencies, do not modify
  173: clock_gettime.lo: $(srcdir)/clock_gettime.c $(incdir)/missing.h \
  174:                   $(top_builddir)/config.h $(top_srcdir)/compat/timespec.h
  175: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/clock_gettime.c
  176: closefrom.lo: $(srcdir)/closefrom.c $(incdir)/missing.h $(top_builddir)/config.h
  177: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/closefrom.c
  178: fnm_test.o: $(srcdir)/regress/fnmatch/fnm_test.c $(incdir)/missing.h \
  179:             $(top_builddir)/config.h $(top_srcdir)/compat/fnmatch.h
  180: 	$(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/regress/fnmatch/fnm_test.c
  181: fnmatch.lo: $(srcdir)/fnmatch.c $(incdir)/missing.h $(top_builddir)/config.h \
  182:             $(top_srcdir)/compat/charclass.h $(top_srcdir)/compat/fnmatch.h
  183: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/fnmatch.c
  184: getaddrinfo.lo: $(srcdir)/getaddrinfo.c $(incdir)/missing.h \
  185:                 $(top_builddir)/config.h $(top_srcdir)/compat/getaddrinfo.h
  186: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/getaddrinfo.c
  187: getcwd.lo: $(srcdir)/getcwd.c $(incdir)/missing.h $(top_builddir)/config.h
  188: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/getcwd.c
  189: getgrouplist.lo: $(srcdir)/getgrouplist.c $(incdir)/missing.h \
  190:                  $(top_builddir)/config.h $(top_srcdir)/compat/nss_dbdefs.h
  191: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/getgrouplist.c
  192: getline.lo: $(srcdir)/getline.c $(incdir)/missing.h $(top_builddir)/config.h
  193: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/getline.c
  194: getopt_long.lo: $(srcdir)/getopt_long.c $(incdir)/fatal.h $(incdir)/missing.h \
  195:                 $(top_builddir)/config.h $(top_srcdir)/compat/getopt.h
  196: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/getopt_long.c
  197: glob.lo: $(srcdir)/glob.c $(incdir)/missing.h $(top_builddir)/config.h \
  198:          $(top_srcdir)/compat/charclass.h $(top_srcdir)/compat/glob.h
  199: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/glob.c
  200: globtest.o: $(srcdir)/regress/glob/globtest.c $(incdir)/missing.h \
  201:             $(top_builddir)/config.h $(top_srcdir)/compat/glob.h
  202: 	$(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/regress/glob/globtest.c
  203: isblank.lo: $(srcdir)/isblank.c $(incdir)/missing.h $(top_builddir)/config.h
  204: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/isblank.c
  205: memrchr.lo: $(srcdir)/memrchr.c $(incdir)/missing.h $(top_builddir)/config.h
  206: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/memrchr.c
  207: memset_s.lo: $(srcdir)/memset_s.c $(incdir)/missing.h $(top_builddir)/config.h
  208: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/memset_s.c
  209: mksiglist.lo: $(srcdir)/mksiglist.c $(incdir)/missing.h \
  210:               $(top_builddir)/config.h $(top_srcdir)/compat/mksiglist.h
  211: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksiglist.c
  212: mksigname.lo: $(srcdir)/mksigname.c $(incdir)/missing.h \
  213:               $(top_builddir)/config.h $(top_srcdir)/compat/mksigname.h
  214: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksigname.c
  215: mktemp.lo: $(srcdir)/mktemp.c $(incdir)/missing.h $(top_builddir)/config.h
  216: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mktemp.c
  217: pw_dup.lo: $(srcdir)/pw_dup.c $(top_builddir)/config.h
  218: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/pw_dup.c
  219: sig2str.lo: $(srcdir)/sig2str.c $(incdir)/missing.h $(top_builddir)/config.h
  220: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sig2str.c
  221: siglist.lo: siglist.c $(incdir)/missing.h $(top_builddir)/config.h
  222: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) siglist.c
  223: signame.lo: signame.c $(incdir)/missing.h $(top_builddir)/config.h
  224: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) signame.c
  225: snprintf.lo: $(srcdir)/snprintf.c $(incdir)/missing.h $(top_builddir)/config.h
  226: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/snprintf.c
  227: strlcat.lo: $(srcdir)/strlcat.c $(incdir)/missing.h $(top_builddir)/config.h
  228: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/strlcat.c
  229: strlcpy.lo: $(srcdir)/strlcpy.c $(incdir)/missing.h $(top_builddir)/config.h
  230: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/strlcpy.c
  231: strsignal.lo: $(srcdir)/strsignal.c $(incdir)/gettext.h $(incdir)/missing.h \
  232:               $(top_builddir)/config.h
  233: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/strsignal.c
  234: strtonum.lo: $(srcdir)/strtonum.c $(incdir)/gettext.h $(incdir)/missing.h \
  235:              $(top_builddir)/config.h
  236: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/strtonum.c
  237: utimes.lo: $(srcdir)/utimes.c $(incdir)/missing.h $(top_builddir)/config.h \
  238:            $(top_srcdir)/compat/utime.h
  239: 	$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/utimes.c

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