Link to -lws2_32 if needed.
[gnutls.git] / gl / gnulib.mk
blob0a4ed429fda0ad471fe1fe42b986740a94340a12
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 error fdl gendocs getaddrinfo getline getpass 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 echo '#include <sys/socket.h>'; \
36 } > $@-t
37 mv $@-t $@
38 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
39 MOSTLYCLEANDIRS += arpa
41 ## end gnulib module arpa_inet
43 ## begin gnulib module error
46 EXTRA_DIST += error.c error.h
48 EXTRA_libgnu_la_SOURCES += error.c
50 ## end gnulib module error
52 ## begin gnulib module gendocs
55 EXTRA_DIST += $(top_srcdir)/build-aux/gendocs.sh
57 ## end gnulib module gendocs
59 ## begin gnulib module getaddrinfo
62 EXTRA_DIST += gai_strerror.c getaddrinfo.c getaddrinfo.h
64 EXTRA_libgnu_la_SOURCES += gai_strerror.c getaddrinfo.c
66 ## end gnulib module getaddrinfo
68 ## begin gnulib module getdelim
71 EXTRA_DIST += getdelim.c
73 EXTRA_libgnu_la_SOURCES += getdelim.c
75 ## end gnulib module getdelim
77 ## begin gnulib module getline
80 EXTRA_DIST += getline.c
82 EXTRA_libgnu_la_SOURCES += getline.c
84 ## end gnulib module getline
86 ## begin gnulib module getpass
89 EXTRA_DIST += getpass.c getpass.h
91 EXTRA_libgnu_la_SOURCES += getpass.c
93 ## end gnulib module getpass
95 ## begin gnulib module gnumakefile
97 distclean-local: clean-GNUmakefile
98 clean-GNUmakefile:
99 test x'$(VPATH)' != x && rm -f $(top_builddir)/GNUmakefile || :
101 EXTRA_DIST += $(top_srcdir)/GNUmakefile
103 ## end gnulib module gnumakefile
105 ## begin gnulib module gnupload
108 EXTRA_DIST += $(top_srcdir)/build-aux/gnupload
110 ## end gnulib module gnupload
112 ## begin gnulib module havelib
115 EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath
117 ## end gnulib module havelib
119 ## begin gnulib module inet_ntop
122 EXTRA_DIST += inet_ntop.c inet_ntop.h
124 EXTRA_libgnu_la_SOURCES += inet_ntop.c
126 ## end gnulib module inet_ntop
128 ## begin gnulib module inet_pton
131 EXTRA_DIST += inet_pton.c inet_pton.h
133 EXTRA_libgnu_la_SOURCES += inet_pton.c
135 ## end gnulib module inet_pton
137 ## begin gnulib module intprops
140 EXTRA_DIST += intprops.h
142 ## end gnulib module intprops
144 ## begin gnulib module maintainer-makefile
146 EXTRA_DIST += $(top_srcdir)/maint.mk
148 ## end gnulib module maintainer-makefile
150 ## begin gnulib module netinet_in
152 BUILT_SOURCES += $(NETINET_IN_H)
154 # We need the following in order to create <netinet/in.h> when the system
155 # doesn't have one.
156 netinet/in.h: netinet_in.in.h
157 @MKDIR_P@ netinet
158 rm -f $@-t $@
159 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
160 sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
161 -e 's|@''NEXT_NETINET_IN_H''@|$(NEXT_NETINET_IN_H)|g' \
162 -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \
163 < $(srcdir)/netinet_in.in.h; \
164 } > $@-t
165 mv $@-t $@
166 MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
167 MOSTLYCLEANDIRS += netinet
169 EXTRA_DIST += netinet_in.in.h
171 ## end gnulib module netinet_in
173 ## begin gnulib module progname
175 libgnu_la_SOURCES += progname.h progname.c
177 ## end gnulib module progname
179 ## begin gnulib module readline
182 EXTRA_DIST += readline.c readline.h
184 EXTRA_libgnu_la_SOURCES += readline.c
186 ## end gnulib module readline
188 ## begin gnulib module stdarg
190 BUILT_SOURCES += $(STDARG_H)
192 # We need the following in order to create <stdarg.h> when the system
193 # doesn't have one that works with the given compiler.
194 stdarg.h: stdarg.in.h
195 rm -f $@-t $@
196 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
197 sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
198 -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \
199 < $(srcdir)/stdarg.in.h; \
200 } > $@-t
201 mv $@-t $@
202 MOSTLYCLEANFILES += stdarg.h stdarg.h-t
204 EXTRA_DIST += stdarg.in.h
206 ## end gnulib module stdarg
208 ## begin gnulib module strdup
211 EXTRA_DIST += strdup.c
213 EXTRA_libgnu_la_SOURCES += strdup.c
215 ## end gnulib module strdup
217 ## begin gnulib module strerror
220 EXTRA_DIST += strerror.c
222 EXTRA_libgnu_la_SOURCES += strerror.c
224 ## end gnulib module strerror
226 ## begin gnulib module version-etc
228 libgnu_la_SOURCES += version-etc.h version-etc.c
230 ## end gnulib module version-etc
232 ## begin gnulib module version-etc-fsf
234 libgnu_la_SOURCES += version-etc-fsf.c
236 ## end gnulib module version-etc-fsf
239 mostlyclean-local: mostlyclean-generic
240 @for dir in '' $(MOSTLYCLEANDIRS); do \
241 if test -n "$$dir" && test -d $$dir; then \
242 echo "rmdir $$dir"; rmdir $$dir; \
243 fi; \
244 done; \