Imported Upstream version 1.8.6p8
[debian/sudo] / common / Makefile.in
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 # Stack smashing protection flags
54 SSP_CFLAGS = @SSP_CFLAGS@
55 SSP_LDFLAGS = @SSP_LDFLAGS@
56
57 # OS dependent defines
58 DEFS = @OSDEFS@ -D_PATH_SUDO_CONF=\"$(sysconfdir)/sudo.conf\"
59
60 #### End of system configuration section. ####
61
62 SHELL = @SHELL@
63
64 LTOBJS = alloc.lo atobool.lo fileops.lo fmt_string.lo lbuf.lo list.lo \
65          secure_path.lo setgroups.lo sudo_conf.lo sudo_debug.lo term.lo \
66          ttysize.lo zero_bytes.lo @COMMON_OBJS@
67
68 all: libcommon.la
69
70 Makefile: $(srcdir)/Makefile.in
71         (cd $(top_builddir) && ./config.status --file common/Makefile)
72
73 .SUFFIXES: .c .h .lo
74
75 .c.lo:
76         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $<
77
78 libcommon.la: $(LTOBJS)
79         $(LIBTOOL) --mode=link $(CC) -o $@ $(LTOBJS) -no-install
80
81 pre-install:
82
83 install:
84
85 install-dirs:
86
87 install-binaries:
88
89 install-includes:
90
91 install-doc:
92
93 install-plugin:
94
95 uninstall:
96
97 check:
98
99 clean:
100         -$(LIBTOOL) --mode=clean rm -f *.lo *.o *.la *.a stamp-* core *.core core.*
101
102 mostlyclean: clean
103
104 distclean: clean
105         -rm -rf Makefile .libs
106
107 clobber: distclean
108
109 realclean: distclean
110         rm -f TAGS tags
111
112 cleandir: realclean
113
114 # Autogenerated dependencies, do not modify
115 aix.lo: $(srcdir)/aix.c $(top_builddir)/config.h $(incdir)/missing.h \
116         $(incdir)/alloc.h $(incdir)/error.h $(incdir)/sudo_debug.h \
117         $(incdir)/gettext.h
118         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/aix.c
119 alloc.lo: $(srcdir)/alloc.c $(top_builddir)/config.h $(incdir)/missing.h \
120           $(incdir)/alloc.h $(incdir)/error.h $(incdir)/gettext.h
121         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/alloc.c
122 atobool.lo: $(srcdir)/atobool.c $(top_builddir)/config.h $(incdir)/missing.h \
123             $(incdir)/sudo_debug.h
124         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/atobool.c
125 fileops.lo: $(srcdir)/fileops.c $(top_builddir)/config.h \
126             $(top_srcdir)/compat/stdbool.h $(top_srcdir)/compat/timespec.h \
127             $(incdir)/missing.h $(incdir)/fileops.h $(incdir)/sudo_debug.h
128         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/fileops.c
129 fmt_string.lo: $(srcdir)/fmt_string.c $(top_builddir)/config.h \
130                $(incdir)/missing.h $(incdir)/sudo_debug.h
131         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/fmt_string.c
132 lbuf.lo: $(srcdir)/lbuf.c $(top_builddir)/config.h $(incdir)/missing.h \
133          $(incdir)/alloc.h $(incdir)/error.h $(incdir)/lbuf.h \
134          $(incdir)/sudo_debug.h
135         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/lbuf.c
136 list.lo: $(srcdir)/list.c $(top_builddir)/config.h $(incdir)/missing.h \
137          $(incdir)/list.h $(incdir)/error.h
138         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/list.c
139 secure_path.lo: $(srcdir)/secure_path.c $(top_builddir)/config.h \
140                 $(incdir)/missing.h $(incdir)/sudo_debug.h \
141                 $(incdir)/secure_path.h
142         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/secure_path.c
143 setgroups.lo: $(srcdir)/setgroups.c $(top_builddir)/config.h \
144               $(incdir)/missing.h $(incdir)/sudo_debug.h
145         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/setgroups.c
146 sudo_conf.lo: $(srcdir)/sudo_conf.c $(top_builddir)/config.h \
147               $(top_srcdir)/compat/stdbool.h $(incdir)/missing.h \
148               $(incdir)/alloc.h $(incdir)/error.h $(incdir)/fileops.h \
149               $(top_builddir)/pathnames.h $(incdir)/sudo_plugin.h \
150               $(incdir)/sudo_conf.h $(incdir)/list.h $(incdir)/sudo_debug.h \
151               $(incdir)/secure_path.h $(incdir)/gettext.h
152         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sudo_conf.c
153 sudo_debug.lo: $(srcdir)/sudo_debug.c $(top_builddir)/config.h \
154                $(top_srcdir)/compat/stdbool.h $(incdir)/missing.h \
155                $(incdir)/alloc.h $(incdir)/error.h $(incdir)/gettext.h \
156                $(incdir)/sudo_plugin.h $(incdir)/sudo_debug.h
157         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sudo_debug.c
158 term.lo: $(srcdir)/term.c $(top_builddir)/config.h $(incdir)/missing.h \
159          $(incdir)/sudo_debug.h
160         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/term.c
161 ttysize.lo: $(srcdir)/ttysize.c $(top_builddir)/config.h $(incdir)/missing.h \
162             $(incdir)/sudo_debug.h
163         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/ttysize.c
164 zero_bytes.lo: $(srcdir)/zero_bytes.c $(top_builddir)/config.h \
165                $(incdir)/missing.h
166         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/zero_bytes.c