Import autobuild from gnulib.
[gnutls.git] / gl / gnulib.mk
blob68f1bd5190ff3de53ad7ed8bb0727b1cde18d7ad
1 ## DO NOT EDIT! GENERATED AUTOMATICALLY!
2 ## Process this file with automake to produce Makefile.in.
3 # Copyright (C) 2002-2008 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=fseeko --avoid=gettext-h --avoid=malloc-posix --avoid=realloc-posix --avoid=snprintf --avoid=stdbool --avoid=stdio --avoid=string --avoid=sys_socket --avoid=unistd --avoid=vasnprintf --makefile-name=gnulib.mk --libtool --macro-prefix=gl --no-vc-files arpa_inet autobuild error fdl gendocs getaddrinfo getline getpass-gnu gnupload gpl-3.0 inet_ntop inet_pton lgpl-2.1 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 arpa_inet
27 BUILT_SOURCES += $(ARPA_INET_H)
29 # We need the following in order to create <arpa/inet.h> when the system
30 # doesn't have one.
31 arpa/inet.h:
32 @MKDIR_P@ arpa
33 rm -f $@-t $@
34 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
35 sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
36 -e 's|@''NEXT_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \
37 -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \
38 -e 's|@''GNULIB_INET_NTOP''@|$(GNULIB_INET_NTOP)|g' \
39 -e 's|@''GNULIB_INET_PTON''@|$(GNULIB_INET_PTON)|g' \
40 -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \
41 -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \
42 < $(srcdir)/arpa_inet.in.h; \
43 } > $@-t
44 mv $@-t $@
45 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
46 MOSTLYCLEANDIRS += arpa
48 EXTRA_DIST += arpa_inet.in.h
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 gendocs
64 EXTRA_DIST += $(top_srcdir)/build-aux/gendocs.sh
66 ## end gnulib module gendocs
68 ## begin gnulib module getaddrinfo
71 EXTRA_DIST += gai_strerror.c getaddrinfo.c getaddrinfo.h
73 EXTRA_libgnu_la_SOURCES += gai_strerror.c getaddrinfo.c
75 ## end gnulib module getaddrinfo
77 ## begin gnulib module getdelim
80 EXTRA_DIST += getdelim.c
82 EXTRA_libgnu_la_SOURCES += getdelim.c
84 ## end gnulib module getdelim
86 ## begin gnulib module getline
89 EXTRA_DIST += getline.c
91 EXTRA_libgnu_la_SOURCES += getline.c
93 ## end gnulib module getline
95 ## begin gnulib module getpass-gnu
98 EXTRA_DIST += getpass.c getpass.h
100 EXTRA_libgnu_la_SOURCES += getpass.c
102 ## end gnulib module getpass-gnu
104 ## begin gnulib module gnumakefile
106 distclean-local: clean-GNUmakefile
107 clean-GNUmakefile:
108 test x'$(VPATH)' != x && rm -f $(top_builddir)/GNUmakefile || :
110 EXTRA_DIST += $(top_srcdir)/GNUmakefile
112 ## end gnulib module gnumakefile
114 ## begin gnulib module gnupload
117 EXTRA_DIST += $(top_srcdir)/build-aux/gnupload
119 ## end gnulib module gnupload
121 ## begin gnulib module havelib
124 EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath
126 ## end gnulib module havelib
128 ## begin gnulib module inet_ntop
131 EXTRA_DIST += inet_ntop.c
133 EXTRA_libgnu_la_SOURCES += inet_ntop.c
135 ## end gnulib module inet_ntop
137 ## begin gnulib module inet_pton
140 EXTRA_DIST += inet_pton.c
142 EXTRA_libgnu_la_SOURCES += inet_pton.c
144 ## end gnulib module inet_pton
146 ## begin gnulib module intprops
149 EXTRA_DIST += intprops.h
151 ## end gnulib module intprops
153 ## begin gnulib module maintainer-makefile
155 EXTRA_DIST += $(top_srcdir)/maint.mk
157 ## end gnulib module maintainer-makefile
159 ## begin gnulib module netinet_in
161 BUILT_SOURCES += $(NETINET_IN_H)
163 # We need the following in order to create <netinet/in.h> when the system
164 # doesn't have one.
165 netinet/in.h: netinet_in.in.h
166 @MKDIR_P@ netinet
167 rm -f $@-t $@
168 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
169 sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
170 -e 's|@''NEXT_NETINET_IN_H''@|$(NEXT_NETINET_IN_H)|g' \
171 -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \
172 < $(srcdir)/netinet_in.in.h; \
173 } > $@-t
174 mv $@-t $@
175 MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
176 MOSTLYCLEANDIRS += netinet
178 EXTRA_DIST += netinet_in.in.h
180 ## end gnulib module netinet_in
182 ## begin gnulib module progname
184 libgnu_la_SOURCES += progname.h progname.c
186 ## end gnulib module progname
188 ## begin gnulib module readline
191 EXTRA_DIST += readline.c readline.h
193 EXTRA_libgnu_la_SOURCES += readline.c
195 ## end gnulib module readline
197 ## begin gnulib module stdarg
199 BUILT_SOURCES += $(STDARG_H)
201 # We need the following in order to create <stdarg.h> when the system
202 # doesn't have one that works with the given compiler.
203 stdarg.h: stdarg.in.h
204 rm -f $@-t $@
205 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
206 sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
207 -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \
208 < $(srcdir)/stdarg.in.h; \
209 } > $@-t
210 mv $@-t $@
211 MOSTLYCLEANFILES += stdarg.h stdarg.h-t
213 EXTRA_DIST += stdarg.in.h
215 ## end gnulib module stdarg
217 ## begin gnulib module strdup
220 EXTRA_DIST += strdup.c
222 EXTRA_libgnu_la_SOURCES += strdup.c
224 ## end gnulib module strdup
226 ## begin gnulib module strerror
229 EXTRA_DIST += strerror.c
231 EXTRA_libgnu_la_SOURCES += strerror.c
233 ## end gnulib module strerror
235 ## begin gnulib module version-etc
237 libgnu_la_SOURCES += version-etc.h version-etc.c
239 ## end gnulib module version-etc
241 ## begin gnulib module version-etc-fsf
243 libgnu_la_SOURCES += version-etc-fsf.c
245 ## end gnulib module version-etc-fsf
248 mostlyclean-local: mostlyclean-generic
249 @for dir in '' $(MOSTLYCLEANDIRS); do \
250 if test -n "$$dir" && test -d $$dir; then \
251 echo "rmdir $$dir"; rmdir $$dir; \
252 fi; \
253 done; \