patches from Simon Ruderich that broaden use of hardening build flags
[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
28 # Compiler & tools to use
29 CC = @CC@
30 LIBTOOL = @LIBTOOL@
31
32 # C preprocessor flags
33 CPPFLAGS = -I$(incdir) -I$(top_builddir) -I$(top_srcdir) @CPPFLAGS@
34
35 # Usually -O and/or -g
36 CFLAGS = @CFLAGS@
37
38 # Linker flags
39 LDFLAGS = @LDFLAGS@
40
41 # OS dependent defines
42 DEFS = @OSDEFS@
43
44 #### End of system configuration section. ####
45
46 SHELL = @SHELL@
47
48 LTOBJS = alloc.lo atobool.lo fileops.lo fmt_string.lo \
49          lbuf.lo list.lo setgroups.lo term.lo zero_bytes.lo @COMMON_OBJS@
50
51 all: libcommon.la
52
53 Makefile: $(srcdir)/Makefile.in
54         (cd $(top_builddir) && ./config.status --file common/Makefile)
55
56 .SUFFIXES: .c .h .lo
57
58 .c.lo:
59         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
60
61 libcommon.la: $(LTOBJS)
62         $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(LTOBJS) -no-install
63
64 pre-install:
65
66 install:
67
68 install-dirs:
69
70 install-binaries:
71
72 install-includes:
73
74 install-doc:
75
76 install-plugin:
77
78 uninstall:
79
80 check:
81
82 clean:
83         -$(LIBTOOL) --mode=clean rm -f *.lo *.o *.la *.a stamp-* core *.core core.*
84
85 mostlyclean: clean
86
87 distclean: clean
88         -rm -rf Makefile .libs
89
90 clobber: distclean
91
92 realclean: distclean
93         rm -f TAGS tags
94
95 cleandir: realclean
96
97 # Autogenerated dependencies, do not modify
98 aix.lo: $(srcdir)/aix.c $(top_builddir)/config.h $(incdir)/missing.h \
99         $(incdir)/alloc.h $(incdir)/error.h $(incdir)/gettext.h
100         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/aix.c
101 alloc.lo: $(srcdir)/alloc.c $(top_builddir)/config.h $(incdir)/missing.h \
102           $(incdir)/alloc.h $(incdir)/error.h $(incdir)/gettext.h
103         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/alloc.c
104 atobool.lo: $(srcdir)/atobool.c $(top_builddir)/config.h $(incdir)/missing.h
105         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/atobool.c
106 fileops.lo: $(srcdir)/fileops.c $(top_builddir)/config.h \
107             $(top_srcdir)/compat/timespec.h $(incdir)/missing.h \
108             $(incdir)/fileops.h
109         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/fileops.c
110 fmt_string.lo: $(srcdir)/fmt_string.c $(top_builddir)/config.h \
111                $(incdir)/missing.h
112         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/fmt_string.c
113 lbuf.lo: $(srcdir)/lbuf.c $(top_builddir)/config.h $(incdir)/missing.h \
114          $(incdir)/alloc.h $(incdir)/error.h $(incdir)/lbuf.h
115         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/lbuf.c
116 list.lo: $(srcdir)/list.c $(top_builddir)/config.h $(incdir)/missing.h \
117          $(incdir)/list.h $(incdir)/error.h
118         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/list.c
119 setgroups.lo: $(srcdir)/setgroups.c $(top_builddir)/config.h $(incdir)/missing.h
120         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/setgroups.c
121 term.lo: $(srcdir)/term.c $(top_builddir)/config.h $(incdir)/missing.h
122         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/term.c
123 zero_bytes.lo: $(srcdir)/zero_bytes.c $(top_builddir)/config.h \
124                $(incdir)/missing.h
125         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/zero_bytes.c