Try to handle "function declaration isn't a prototype" warnings.
[gnutls.git] / gl / gnulib.mk
blobc3bca9757497400938d6963c8ec400aca1413e47
1 ## DO NOT EDIT! GENERATED AUTOMATICALLY!
2 ## Process this file with automake to produce Makefile.in.
3 # Copyright (C) 2004-2007 Free Software Foundation, Inc.
5 # This file is free software, distributed under the terms of the GNU
6 # General Public License. As a special exception to the GNU General
7 # Public License, this file may be distributed as part of a program
8 # that contains a configuration script generated by Autoconf, under
9 # the same distribution terms as the rest of that program.
11 # Generated by gnulib-tool.
12 # Reproduce by: gnulib-tool --import --dir=. --local-dir=gl/override --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --aux-dir=build-aux --avoid=snprintf --avoid=vasnprintf --makefile-name=gnulib.mk --libtool --macro-prefix=gl arpa_inet error fdl gendocs getaddrinfo getline gpl inet_ntop inet_pton lgpl maintainer-makefile progname readline version-etc-fsf
15 MOSTLYCLEANFILES += core *.stackdump
17 noinst_LTLIBRARIES += libgnu.la
19 libgnu_la_SOURCES =
20 libgnu_la_LIBADD = $(gl_LTLIBOBJS)
21 libgnu_la_DEPENDENCIES = $(gl_LTLIBOBJS)
22 EXTRA_libgnu_la_SOURCES =
23 libgnu_la_LDFLAGS = $(AM_LDFLAGS)
25 ## begin gnulib module absolute-header
27 # Use this preprocessor expression to decide whether #include_next works.
28 # Do not rely on a 'configure'-time test for this, since the expression
29 # might appear in an installed header, which is used by some other compiler.
30 HAVE_INCLUDE_NEXT = (__GNUC__ || 60000000 <= __DECC_VER)
32 ## end gnulib module absolute-header
34 ## begin gnulib module arpa_inet
36 BUILT_SOURCES += $(ARPA_INET_H)
38 # We need the following in order to create <arpa/inet.h> when the system
39 # doesn't have one.
40 arpa/inet.h:
41 @MKDIR_P@ arpa
42 rm -f $@-t $@
43 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
44 echo '#include <sys/socket.h>'; \
45 } > $@-t
46 mv $@-t $@
47 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
48 MOSTLYCLEANDIRS += arpa
50 ## end gnulib module arpa_inet
52 ## begin gnulib module error
55 EXTRA_DIST += error.c error.h
57 EXTRA_libgnu_la_SOURCES += error.c
59 ## end gnulib module error
61 ## begin gnulib module getaddrinfo
64 EXTRA_DIST += gai_strerror.c getaddrinfo.c getaddrinfo.h
66 EXTRA_libgnu_la_SOURCES += gai_strerror.c getaddrinfo.c
68 ## end gnulib module getaddrinfo
70 ## begin gnulib module getdelim
73 EXTRA_DIST += getdelim.c getdelim.h
75 EXTRA_libgnu_la_SOURCES += getdelim.c
77 ## end gnulib module getdelim
79 ## begin gnulib module getline
82 EXTRA_DIST += getline.c getline.h
84 EXTRA_libgnu_la_SOURCES += getline.c
86 ## end gnulib module getline
88 ## begin gnulib module gettext-h
90 libgnu_la_SOURCES += gettext.h
92 ## end gnulib module gettext-h
94 ## begin gnulib module inet_ntop
97 EXTRA_DIST += inet_ntop.c inet_ntop.h
99 EXTRA_libgnu_la_SOURCES += inet_ntop.c
101 ## end gnulib module inet_ntop
103 ## begin gnulib module inet_pton
106 EXTRA_DIST += inet_pton.c inet_pton.h
108 EXTRA_libgnu_la_SOURCES += inet_pton.c
110 ## end gnulib module inet_pton
112 ## begin gnulib module link-warning
114 LINK_WARNING_H=$(top_srcdir)/build-aux/link-warning.h
116 ## end gnulib module link-warning
118 ## begin gnulib module netinet_in
120 BUILT_SOURCES += $(NETINET_IN_H)
122 # We need the following in order to create <netinet/in.h> when the system
123 # doesn't have one.
124 netinet/in.h:
125 @MKDIR_P@ netinet
126 rm -f $@-t $@
127 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
128 sed -e 's|@''ABSOLUTE_NETINET_IN_H''@|$(ABSOLUTE_NETINET_IN_H)|g' \
129 -e 's/@''HAVE_INCLUDE_NEXT''@/$(HAVE_INCLUDE_NEXT)/g' \
130 -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \
131 < $(srcdir)/netinet_in_.h; \
132 } > $@-t
133 mv $@-t $@
134 MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
135 MOSTLYCLEANDIRS += netinet
137 EXTRA_DIST += netinet_in_.h
139 ## end gnulib module netinet_in
141 ## begin gnulib module progname
143 libgnu_la_SOURCES += progname.h progname.c
145 ## end gnulib module progname
147 ## begin gnulib module readline
150 EXTRA_DIST += readline.c readline.h
152 EXTRA_libgnu_la_SOURCES += readline.c
154 ## end gnulib module readline
156 ## begin gnulib module stdbool
158 BUILT_SOURCES += $(STDBOOL_H)
160 # We need the following in order to create <stdbool.h> when the system
161 # doesn't have one that works.
162 stdbool.h: stdbool_.h
163 rm -f $@-t $@
164 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
165 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h; \
166 } > $@-t
167 mv $@-t $@
168 MOSTLYCLEANFILES += stdbool.h stdbool.h-t
170 EXTRA_DIST += stdbool_.h
172 ## end gnulib module stdbool
174 ## begin gnulib module strdup
177 EXTRA_DIST += strdup.c
179 EXTRA_libgnu_la_SOURCES += strdup.c
181 ## end gnulib module strdup
183 ## begin gnulib module string
185 BUILT_SOURCES += string.h
187 # We need the following in order to create <string.h> when the system
188 # doesn't have one that works with the given compiler.
189 string.h: string_.h
190 rm -f $@-t $@
191 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
192 sed -e 's|@''ABSOLUTE_STRING_H''@|$(ABSOLUTE_STRING_H)|g' \
193 -e 's/@''HAVE_INCLUDE_NEXT''@/$(HAVE_INCLUDE_NEXT)/g' \
194 -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \
195 -e 's|@''GNULIB_MBSCHR''@|$(GNULIB_MBSCHR)|g' \
196 -e 's|@''GNULIB_MBSRCHR''@|$(GNULIB_MBSRCHR)|g' \
197 -e 's|@''GNULIB_MBSSTR''@|$(GNULIB_MBSSTR)|g' \
198 -e 's|@''GNULIB_MBSCASECMP''@|$(GNULIB_MBSCASECMP)|g' \
199 -e 's|@''GNULIB_MBSNCASECMP''@|$(GNULIB_MBSNCASECMP)|g' \
200 -e 's|@''GNULIB_MBSPCASECMP''@|$(GNULIB_MBSPCASECMP)|g' \
201 -e 's|@''GNULIB_MBSCASESTR''@|$(GNULIB_MBSCASESTR)|g' \
202 -e 's|@''GNULIB_MBSCSPN''@|$(GNULIB_MBSCSPN)|g' \
203 -e 's|@''GNULIB_MBSPBRK''@|$(GNULIB_MBSPBRK)|g' \
204 -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \
205 -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \
206 -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \
207 -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \
208 -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \
209 -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \
210 -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \
211 -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \
212 -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \
213 -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \
214 -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \
215 -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \
216 -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \
217 -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \
218 -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \
219 -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \
220 -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
221 -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
222 -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
223 -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \
224 -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
225 -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
226 -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
227 -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \
228 -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \
229 -e 's|@''HAVE_STRNDUP''@|$(HAVE_STRNDUP)|g' \
230 -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \
231 -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \
232 -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \
233 -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \
234 -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \
235 -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
236 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
237 < $(srcdir)/string_.h; \
238 } > $@-t
239 mv $@-t $@
240 MOSTLYCLEANFILES += string.h string.h-t
242 EXTRA_DIST += string_.h
244 ## end gnulib module string
246 ## begin gnulib module sys_socket
248 BUILT_SOURCES += $(SYS_SOCKET_H)
250 # We need the following in order to create <sys/socket.h> when the system
251 # doesn't have one that works with the given compiler.
252 sys/socket.h: sys_socket_.h
253 @MKDIR_P@ sys
254 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
255 sed -e 's|@''ABSOLUTE_SYS_SOCKET_H''@|$(ABSOLUTE_SYS_SOCKET_H)|g' \
256 -e 's/@''HAVE_INCLUDE_NEXT''@/$(HAVE_INCLUDE_NEXT)/g' \
257 -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
258 -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
259 -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
260 < $(srcdir)/sys_socket_.h; \
261 } > $@-t
262 mv -f $@-t $@
263 MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
264 MOSTLYCLEANDIRS += sys
266 EXTRA_DIST += sys_socket_.h
268 ## end gnulib module sys_socket
270 ## begin gnulib module version-etc
272 libgnu_la_SOURCES += version-etc.h version-etc.c
274 ## end gnulib module version-etc
276 ## begin gnulib module version-etc-fsf
278 libgnu_la_SOURCES += version-etc-fsf.c
280 ## end gnulib module version-etc-fsf
283 mostlyclean-local: mostlyclean-generic
284 @for dir in '' $(MOSTLYCLEANDIRS); do \
285 if test -n "$$dir" && test -d $$dir; then \
286 echo "rmdir $$dir"; rmdir $$dir; \
287 fi; \
288 done