oops, be consistent about patch application in checked out tree
[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 # OS dependent defines
39 DEFS = @OSDEFS@
40
41 #### End of system configuration section. ####
42
43 SHELL = @SHELL@
44
45 LTOBJS = alloc.lo atobool.lo fileops.lo fmt_string.lo \
46          lbuf.lo list.lo setgroups.lo term.lo zero_bytes.lo @COMMON_OBJS@
47
48 all: libcommon.la
49
50 Makefile: $(srcdir)/Makefile.in
51         (cd $(top_builddir) && ./config.status --file common/Makefile)
52
53 .SUFFIXES: .c .h .lo
54
55 .c.lo:
56         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
57
58 libcommon.la: $(LTOBJS)
59         $(LIBTOOL) --mode=link $(CC) -o $@ $(LTOBJS) -no-install
60
61 pre-install:
62
63 install:
64
65 install-dirs:
66
67 install-binaries:
68
69 install-includes:
70
71 install-doc:
72
73 install-plugin:
74
75 uninstall:
76
77 check:
78
79 clean:
80         -$(LIBTOOL) --mode=clean rm -f *.lo *.o *.la *.a stamp-* core *.core core.*
81
82 mostlyclean: clean
83
84 distclean: clean
85         -rm -rf Makefile .libs
86
87 clobber: distclean
88
89 realclean: distclean
90         rm -f TAGS tags
91
92 cleandir: realclean
93
94 # Autogenerated dependencies, do not modify
95 aix.lo: $(srcdir)/aix.c $(top_builddir)/config.h $(incdir)/missing.h \
96         $(incdir)/alloc.h $(incdir)/error.h $(incdir)/gettext.h
97         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/aix.c
98 alloc.lo: $(srcdir)/alloc.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)/alloc.c
101 atobool.lo: $(srcdir)/atobool.c $(top_builddir)/config.h $(incdir)/missing.h
102         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/atobool.c
103 fileops.lo: $(srcdir)/fileops.c $(top_builddir)/config.h \
104             $(top_srcdir)/compat/timespec.h $(incdir)/missing.h \
105             $(incdir)/fileops.h
106         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/fileops.c
107 fmt_string.lo: $(srcdir)/fmt_string.c $(top_builddir)/config.h \
108                $(incdir)/missing.h
109         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/fmt_string.c
110 lbuf.lo: $(srcdir)/lbuf.c $(top_builddir)/config.h $(incdir)/missing.h \
111          $(incdir)/alloc.h $(incdir)/error.h $(incdir)/lbuf.h
112         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/lbuf.c
113 list.lo: $(srcdir)/list.c $(top_builddir)/config.h $(incdir)/missing.h \
114          $(incdir)/list.h $(incdir)/error.h
115         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/list.c
116 setgroups.lo: $(srcdir)/setgroups.c $(top_builddir)/config.h $(incdir)/missing.h
117         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/setgroups.c
118 term.lo: $(srcdir)/term.c $(top_builddir)/config.h $(incdir)/missing.h
119         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/term.c
120 zero_bytes.lo: $(srcdir)/zero_bytes.c $(top_builddir)/config.h \
121                $(incdir)/missing.h
122         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/zero_bytes.c