update control to reflect move of primary repo to collab-maint
[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 # Where to install things...
29 prefix = @prefix@
30 exec_prefix = @exec_prefix@
31 bindir = @bindir@
32 sbindir = @sbindir@
33 sysconfdir = @sysconfdir@
34 libexecdir = @libexecdir@
35 datarootdir = @datarootdir@
36 localstatedir = @localstatedir@
37
38 # Compiler & tools to use
39 CC = @CC@
40 LIBTOOL = @LIBTOOL@
41
42 # C preprocessor flags
43 CPPFLAGS = -I$(incdir) -I$(top_builddir) -I$(top_srcdir) @CPPFLAGS@
44
45 # Usually -O and/or -g
46 CFLAGS = @CFLAGS@
47
48 # OS dependent defines
49 DEFS = @OSDEFS@ -D_PATH_SUDO_CONF=\"$(sysconfdir)/sudo.conf\"
50
51 #### End of system configuration section. ####
52
53 SHELL = @SHELL@
54
55 LTOBJS = alloc.lo atobool.lo fileops.lo fmt_string.lo lbuf.lo list.lo \
56          secure_path.lo setgroups.lo sudo_conf.lo sudo_debug.lo term.lo \
57          ttysize.lo zero_bytes.lo @COMMON_OBJS@
58
59 all: libcommon.la
60
61 Makefile: $(srcdir)/Makefile.in
62         (cd $(top_builddir) && ./config.status --file common/Makefile)
63
64 .SUFFIXES: .c .h .lo
65
66 .c.lo:
67         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
68
69 libcommon.la: $(LTOBJS)
70         $(LIBTOOL) --mode=link $(CC) -o $@ $(LTOBJS) -no-install
71
72 pre-install:
73
74 install:
75
76 install-dirs:
77
78 install-binaries:
79
80 install-includes:
81
82 install-doc:
83
84 install-plugin:
85
86 uninstall:
87
88 check:
89
90 clean:
91         -$(LIBTOOL) --mode=clean rm -f *.lo *.o *.la *.a stamp-* core *.core core.*
92
93 mostlyclean: clean
94
95 distclean: clean
96         -rm -rf Makefile .libs
97
98 clobber: distclean
99
100 realclean: distclean
101         rm -f TAGS tags
102
103 cleandir: realclean
104
105 # Autogenerated dependencies, do not modify
106 aix.lo: $(srcdir)/aix.c $(top_builddir)/config.h $(incdir)/missing.h \
107         $(incdir)/alloc.h $(incdir)/error.h $(incdir)/sudo_debug.h \
108         $(incdir)/gettext.h
109         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/aix.c
110 alloc.lo: $(srcdir)/alloc.c $(top_builddir)/config.h $(incdir)/missing.h \
111           $(incdir)/alloc.h $(incdir)/error.h $(incdir)/gettext.h
112         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/alloc.c
113 atobool.lo: $(srcdir)/atobool.c $(top_builddir)/config.h $(incdir)/missing.h \
114             $(incdir)/sudo_debug.h
115         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/atobool.c
116 fileops.lo: $(srcdir)/fileops.c $(top_builddir)/config.h \
117             $(top_srcdir)/compat/stdbool.h $(top_srcdir)/compat/timespec.h \
118             $(incdir)/missing.h $(incdir)/fileops.h $(incdir)/sudo_debug.h
119         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/fileops.c
120 fmt_string.lo: $(srcdir)/fmt_string.c $(top_builddir)/config.h \
121                $(incdir)/missing.h $(incdir)/sudo_debug.h
122         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/fmt_string.c
123 lbuf.lo: $(srcdir)/lbuf.c $(top_builddir)/config.h $(incdir)/missing.h \
124          $(incdir)/alloc.h $(incdir)/error.h $(incdir)/lbuf.h \
125          $(incdir)/sudo_debug.h
126         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/lbuf.c
127 list.lo: $(srcdir)/list.c $(top_builddir)/config.h $(incdir)/missing.h \
128          $(incdir)/list.h $(incdir)/error.h
129         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/list.c
130 secure_path.lo: $(srcdir)/secure_path.c $(top_builddir)/config.h \
131                 $(incdir)/missing.h $(incdir)/sudo_debug.h \
132                 $(incdir)/secure_path.h
133         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/secure_path.c
134 setgroups.lo: $(srcdir)/setgroups.c $(top_builddir)/config.h \
135               $(incdir)/missing.h $(incdir)/sudo_debug.h
136         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/setgroups.c
137 sudo_conf.lo: $(srcdir)/sudo_conf.c $(top_builddir)/config.h \
138               $(top_srcdir)/compat/stdbool.h $(incdir)/missing.h \
139               $(incdir)/alloc.h $(incdir)/error.h $(incdir)/fileops.h \
140               $(top_builddir)/pathnames.h $(incdir)/sudo_plugin.h \
141               $(incdir)/sudo_conf.h $(incdir)/list.h $(incdir)/sudo_debug.h \
142               $(incdir)/secure_path.h $(incdir)/gettext.h
143         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudo_conf.c
144 sudo_debug.lo: $(srcdir)/sudo_debug.c $(top_builddir)/config.h \
145                $(top_srcdir)/compat/stdbool.h $(incdir)/missing.h \
146                $(incdir)/alloc.h $(incdir)/error.h $(incdir)/gettext.h \
147                $(incdir)/sudo_plugin.h $(incdir)/sudo_debug.h
148         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudo_debug.c
149 term.lo: $(srcdir)/term.c $(top_builddir)/config.h $(incdir)/missing.h \
150          $(incdir)/sudo_debug.h
151         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/term.c
152 ttysize.lo: $(srcdir)/ttysize.c $(top_builddir)/config.h $(incdir)/missing.h \
153             $(incdir)/sudo_debug.h
154         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/ttysize.c
155 zero_bytes.lo: $(srcdir)/zero_bytes.c $(top_builddir)/config.h \
156                $(incdir)/missing.h
157         $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/zero_bytes.c