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