~ubuntu-branches/ubuntu/saucy/sudo/saucy

« back to all changes in this revision

Viewing changes to .pc/actually-use-buildflags.diff/compat/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-11-16 09:31:32 UTC
  • mfrom: (1.4.13)
  • Revision ID: package-import@ubuntu.com-20121116093132-ptext55adlzbrq6y
Tags: 1.8.6p3-0ubuntu1
* New upstream release (1.8.6p3).
* Add patch to fix building with sssd when ldap is disabled.
* Drop sudo.manpages and sudo-ldap.manpages as the upstream build system
  now does the right thing here.
* Build the main sudo package with support for sssd, this doesn't add any
  additional build time or runtime dependency. sudo will dynamically load
  the sssd library if 'sss' is listed for the 'sudoers' nss service.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
top_builddir = @top_builddir@
25
25
top_srcdir = @top_srcdir@
26
26
incdir = $(top_srcdir)/include
 
27
cross_compiling = @CROSS_COMPILING@
27
28
 
28
29
# Where to install things...
29
30
prefix = @prefix@
45
46
# Usually -O and/or -g
46
47
CFLAGS = @CFLAGS@
47
48
 
 
49
# PIE flags
 
50
PIE_CFLAGS = @PIE_CFLAGS@
 
51
PIE_LDFLAGS = @PIE_LDFLAGS@
 
52
 
48
53
# OS dependent defines
49
54
DEFS = @OSDEFS@
50
55
 
57
62
 
58
63
TEST_PROGS = @COMPAT_TEST_PROGS@
59
64
 
60
 
LIBOBJDIR = 
 
65
LIBOBJDIR =
61
66
 
62
67
LTLIBOBJS = @LTLIBOBJS@
63
68
 
69
74
.SUFFIXES: .o .c .h .lo
70
75
 
71
76
.c.o:
72
 
        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
 
77
        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $<
73
78
 
74
79
.c.lo:
75
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
 
80
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $<
76
81
 
77
82
libreplace.la: $(LTLIBOBJS)
78
83
        $(LIBTOOL) --mode=link $(CC) -o $@ $(LTLIBOBJS) -no-install
80
85
siglist.c: mksiglist
81
86
        ./mksiglist > $@
82
87
 
 
88
signame.c: mksigname
 
89
        ./mksigname > $@
 
90
 
83
91
mksiglist: $(srcdir)/mksiglist.c $(srcdir)/mksiglist.h $(incdir)/missing.h $(top_builddir)/config.h
84
 
        $(CC) $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@
 
92
        $(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@
 
93
 
 
94
mksigname: $(srcdir)/mksigname.c $(srcdir)/mksigname.h $(incdir)/missing.h $(top_builddir)/config.h
 
95
        $(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/mksigname.c -o $@
85
96
 
86
97
fnm_test: fnm_test.o libreplace.la
87
98
        $(LIBTOOL) --mode=link $(CC) -o $@ fnm_test.o libreplace.la
90
101
        $(LIBTOOL) --mode=link $(CC) -o $@ globtest.o libreplace.la
91
102
 
92
103
$(srcdir)/mksiglist.h: $(srcdir)/siglist.in
93
 
        if [ -n "$(DEVEL)" ]; then \
94
 
            awk 'BEGIN {print "/* public domain */\n"} /^    [A-Z]/ {printf("#ifdef SIG%s\n    if (my_sys_siglist[SIG%s] == NULL)\n\tmy_sys_siglist[SIG%s] = \"%s\";\n#endif\n", $$1, $$1, $$1, substr($$0, 13))}' < $(srcdir)/siglist.in > $@; \
 
104
        @if [ -n "$(DEVEL)" ]; then \
 
105
            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 > $@; \
 
106
        fi
 
107
 
 
108
$(srcdir)/mksigname.h: $(srcdir)/siglist.in
 
109
        @if [ -n "$(DEVEL)" ]; then \
 
110
            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 > $@; \
95
111
        fi
96
112
 
97
113
pre-install:
111
127
uninstall:
112
128
 
113
129
check: $(TEST_PROGS)
114
 
        @if [ -f fnm_test ]; then \
115
 
            ./fnm_test $(srcdir)/regress/fnmatch/fnm_test.in; \
116
 
        fi
117
 
        @if [ -f globtest ]; then \
118
 
            mkdir -p `sed 's@/[^/]*$$@@' $(srcdir)/regress/glob/files | sort -u`; \
119
 
            touch `cat $(srcdir)/regress/glob/files`; \
120
 
            chmod 0755 `grep '/r[^/]*$$' $(srcdir)/regress/glob/files`; \
121
 
            chmod 0444 `grep '/s[^/]*$$' $(srcdir)/regress/glob/files`; \
122
 
            chmod 0711 `grep '/t[^/]*$$' $(srcdir)/regress/glob/files`; \
123
 
            ./globtest $(srcdir)/regress/glob/globtest.in; \
124
 
            rval=$$?; \
125
 
            rm -rf fake; \
126
 
            exit $$rval; \
 
130
        @if test X"$(cross_compiling)" != X"yes"; then \
 
131
            if test -f fnm_test; then \
 
132
                ./fnm_test $(srcdir)/regress/fnmatch/fnm_test.in; \
 
133
            fi; \
 
134
            if test -f globtest; then \
 
135
                mkdir -p `sed 's@/[^/]*$$@@' $(srcdir)/regress/glob/files | sort -u`; \
 
136
                touch `cat $(srcdir)/regress/glob/files`; \
 
137
                chmod 0755 `grep '/r[^/]*$$' $(srcdir)/regress/glob/files`; \
 
138
                chmod 0444 `grep '/s[^/]*$$' $(srcdir)/regress/glob/files`; \
 
139
                chmod 0711 `grep '/t[^/]*$$' $(srcdir)/regress/glob/files`; \
 
140
                ./globtest $(srcdir)/regress/glob/globtest.in; \
 
141
                rval=$$?; \
 
142
                rm -rf fake; \
 
143
                exit $$rval; \
 
144
            fi; \
127
145
        fi
128
146
 
129
147
clean:
130
 
        -$(LIBTOOL) --mode=clean rm -f $(TEST_PROGS) mksiglist siglist.c *.lo *.o *.la *.a stamp-* core *.core core.*
 
148
        -$(LIBTOOL) --mode=clean rm -f $(TEST_PROGS) mksiglist mksigname siglist.c signame.c *.lo *.o *.la *.a stamp-* core *.core core.*
131
149
 
132
150
mostlyclean: clean
133
151
 
143
161
 
144
162
# Autogenerated dependencies, do not modify
145
163
closefrom.lo: $(srcdir)/closefrom.c $(top_builddir)/config.h $(incdir)/missing.h
146
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/closefrom.c
 
164
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/closefrom.c
147
165
dlopen.lo: $(srcdir)/dlopen.c $(top_builddir)/config.h \
148
166
           $(top_srcdir)/compat/dlfcn.h $(incdir)/missing.h
149
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/dlopen.c
 
167
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/dlopen.c
150
168
fnm_test.o: $(srcdir)/regress/fnmatch/fnm_test.c $(top_builddir)/config.h \
151
169
            $(top_srcdir)/compat/fnmatch.h
152
 
        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/regress/fnmatch/fnm_test.c
 
170
        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/regress/fnmatch/fnm_test.c
153
171
fnmatch.lo: $(srcdir)/fnmatch.c $(top_builddir)/config.h $(incdir)/missing.h \
154
172
            $(top_srcdir)/compat/charclass.h $(top_srcdir)/compat/fnmatch.h
155
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/fnmatch.c
 
173
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/fnmatch.c
156
174
getcwd.lo: $(srcdir)/getcwd.c $(top_builddir)/config.h $(incdir)/missing.h
157
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getcwd.c
 
175
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/getcwd.c
158
176
getgrouplist.lo: $(srcdir)/getgrouplist.c $(top_builddir)/config.h \
159
177
                 $(incdir)/missing.h
160
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getgrouplist.c
 
178
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/getgrouplist.c
161
179
getline.lo: $(srcdir)/getline.c $(top_builddir)/config.h $(incdir)/missing.h
162
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getline.c
 
180
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/getline.c
163
181
getprogname.lo: $(srcdir)/getprogname.c $(top_builddir)/config.h \
164
182
                $(incdir)/missing.h
165
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getprogname.c
 
183
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/getprogname.c
166
184
glob.lo: $(srcdir)/glob.c $(top_builddir)/config.h $(incdir)/missing.h \
167
185
         $(top_srcdir)/compat/glob.h $(top_srcdir)/compat/charclass.h
168
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/glob.c
 
186
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/glob.c
169
187
globtest.o: $(srcdir)/regress/glob/globtest.c $(top_builddir)/config.h \
170
188
            $(top_srcdir)/compat/glob.h $(incdir)/missing.h
171
 
        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/regress/glob/globtest.c
 
189
        $(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/regress/glob/globtest.c
172
190
isblank.lo: $(srcdir)/isblank.c $(top_builddir)/config.h $(incdir)/missing.h
173
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/isblank.c
 
191
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/isblank.c
174
192
memrchr.lo: $(srcdir)/memrchr.c $(top_builddir)/config.h $(incdir)/missing.h
175
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/memrchr.c
 
193
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/memrchr.c
176
194
mksiglist.lo: $(srcdir)/mksiglist.c $(top_builddir)/config.h \
177
195
              $(incdir)/missing.h $(top_srcdir)/compat/mksiglist.h
178
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/mksiglist.c
 
196
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/mksiglist.c
 
197
mksigname.lo: $(srcdir)/mksigname.c $(top_builddir)/config.h \
 
198
              $(incdir)/missing.h $(top_srcdir)/compat/mksigname.h
 
199
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/mksigname.c
179
200
mktemp.lo: $(srcdir)/mktemp.c $(top_builddir)/config.h $(incdir)/missing.h
180
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/mktemp.c
 
201
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/mktemp.c
181
202
nanosleep.lo: $(srcdir)/nanosleep.c $(top_builddir)/config.h \
182
203
              $(top_srcdir)/compat/timespec.h $(incdir)/missing.h
183
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/nanosleep.c
 
204
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/nanosleep.c
184
205
pw_dup.lo: $(srcdir)/pw_dup.c $(top_builddir)/config.h
185
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/pw_dup.c
 
206
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/pw_dup.c
 
207
sig2str.lo: $(srcdir)/sig2str.c $(top_builddir)/config.h $(incdir)/missing.h
 
208
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/sig2str.c
186
209
siglist.lo: siglist.c $(top_builddir)/config.h $(incdir)/missing.h
187
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) siglist.c
 
210
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) siglist.c
 
211
signame.lo: signame.c $(top_builddir)/config.h $(incdir)/missing.h
 
212
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) signame.c
188
213
snprintf.lo: $(srcdir)/snprintf.c $(top_builddir)/config.h $(incdir)/missing.h
189
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/snprintf.c
 
214
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/snprintf.c
190
215
strlcat.lo: $(srcdir)/strlcat.c $(top_builddir)/config.h $(incdir)/missing.h
191
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/strlcat.c
 
216
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/strlcat.c
192
217
strlcpy.lo: $(srcdir)/strlcpy.c $(top_builddir)/config.h $(incdir)/missing.h
193
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/strlcpy.c
 
218
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/strlcpy.c
194
219
strsignal.lo: $(srcdir)/strsignal.c $(top_builddir)/config.h \
195
220
              $(incdir)/missing.h $(incdir)/gettext.h
196
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/strsignal.c
 
221
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/strsignal.c
197
222
utimes.lo: $(srcdir)/utimes.c $(top_builddir)/config.h \
198
223
           $(top_srcdir)/compat/utime.h $(incdir)/missing.h
199
 
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/utimes.c
 
224
        $(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(DEFS) $(srcdir)/utimes.c