Use gnulib's getopt-gnu module.
[bpt/emacs.git] / lib / gnulib.mk
CommitLineData
743c80a7
PE
1## DO NOT EDIT! GENERATED AUTOMATICALLY!
2## Process this file with automake to produce Makefile.in.
3# Copyright (C) 2002-2011 Free Software Foundation, Inc.
4#
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.
10#
11# Generated by gnulib-tool.
1fd182f0 12# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --makefile-name=gnulib.mk --no-libtool --macro-prefix=gl --no-vc-files ftoastr mktime
743c80a7
PE
13
14
15MOSTLYCLEANFILES += core *.stackdump
16
17noinst_LIBRARIES += libgnu.a
18
19libgnu_a_SOURCES =
20libgnu_a_LIBADD = $(gl_LIBOBJS)
21libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
22EXTRA_libgnu_a_SOURCES =
23
1fd182f0
PE
24## begin gnulib module arg-nonnull
25
26# The BUILT_SOURCES created by this Makefile snippet are not used via #include
27# statements but through direct file reference. Therefore this snippet must be
28# present in all Makefile.am that need it. This is ensured by the applicability
29# 'all' defined above.
30
31BUILT_SOURCES += arg-nonnull.h
32# The arg-nonnull.h that gets inserted into generated .h files is the same as
33# build-aux/arg-nonnull.h, except that it has the copyright header cut off.
34arg-nonnull.h: $(top_srcdir)/./arg-nonnull.h
35 $(AM_V_GEN)rm -f $@-t $@ && \
36 sed -n -e '/GL_ARG_NONNULL/,$$p' \
37 < $(top_srcdir)/./arg-nonnull.h \
38 > $@-t && \
39 mv $@-t $@
40MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
41
42ARG_NONNULL_H=arg-nonnull.h
43
44EXTRA_DIST += $(top_srcdir)/./arg-nonnull.h
45
46## end gnulib module arg-nonnull
47
48## begin gnulib module c++defs
49
50# The BUILT_SOURCES created by this Makefile snippet are not used via #include
51# statements but through direct file reference. Therefore this snippet must be
52# present in all Makefile.am that need it. This is ensured by the applicability
53# 'all' defined above.
54
55BUILT_SOURCES += c++defs.h
56# The c++defs.h that gets inserted into generated .h files is the same as
57# build-aux/c++defs.h, except that it has the copyright header cut off.
58c++defs.h: $(top_srcdir)/./c++defs.h
59 $(AM_V_GEN)rm -f $@-t $@ && \
60 sed -n -e '/_GL_CXXDEFS/,$$p' \
61 < $(top_srcdir)/./c++defs.h \
62 > $@-t && \
63 mv $@-t $@
64MOSTLYCLEANFILES += c++defs.h c++defs.h-t
65
66CXXDEFS_H=c++defs.h
67
68EXTRA_DIST += $(top_srcdir)/./c++defs.h
69
70## end gnulib module c++defs
71
a451f14b 72## begin gnulib module ftoastr
743c80a7 73
a451f14b 74libgnu_a_SOURCES += ftoastr.h ftoastr.c dtoastr.c ldtoastr.c
743c80a7 75
a451f14b
PE
76## end gnulib module ftoastr
77
78## begin gnulib module intprops
79
80
81EXTRA_DIST += intprops.h
82
83## end gnulib module intprops
743c80a7 84
1fd182f0
PE
85## begin gnulib module mktime
86
87
88EXTRA_DIST += mktime-internal.h mktime.c
89
90EXTRA_libgnu_a_SOURCES += mktime.c
91
92## end gnulib module mktime
93
94## begin gnulib module stddef
95
96BUILT_SOURCES += $(STDDEF_H)
97
98# We need the following in order to create <stddef.h> when the system
99# doesn't have one that works with the given compiler.
100stddef.h: stddef.in.h
101 $(AM_V_GEN)rm -f $@-t $@ && \
102 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
103 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
104 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
105 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
106 -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
107 -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
108 -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
109 < $(srcdir)/stddef.in.h; \
110 } > $@-t && \
111 mv $@-t $@
112MOSTLYCLEANFILES += stddef.h stddef.h-t
113
114EXTRA_DIST += stddef.in.h
115
116## end gnulib module stddef
117
118## begin gnulib module time
119
120BUILT_SOURCES += time.h
121
122# We need the following in order to create <time.h> when the system
123# doesn't have one that works with the given compiler.
124time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
125 $(AM_V_GEN)rm -f $@-t $@ && \
126 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
127 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
128 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
129 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
130 -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
131 -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \
132 -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \
133 -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \
134 -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \
135 -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \
136 -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \
137 -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \
138 -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
139 -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \
140 -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
141 -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
142 -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
143 -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
144 -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \
145 -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
146 -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
147 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
148 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
149 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
150 < $(srcdir)/time.in.h; \
151 } > $@-t && \
152 mv $@-t $@
153MOSTLYCLEANFILES += time.h time.h-t
154
155EXTRA_DIST += time.in.h
156
157## end gnulib module time
158
159## begin gnulib module time_r
160
161
162EXTRA_DIST += time_r.c
163
164EXTRA_libgnu_a_SOURCES += time_r.c
165
166## end gnulib module time_r
167
168## begin gnulib module warn-on-use
169
170BUILT_SOURCES += warn-on-use.h
171# The warn-on-use.h that gets inserted into generated .h files is the same as
172# build-aux/warn-on-use.h, except that it has the copyright header cut off.
173warn-on-use.h: $(top_srcdir)/./warn-on-use.h
174 $(AM_V_GEN)rm -f $@-t $@ && \
175 sed -n -e '/^.ifndef/,$$p' \
176 < $(top_srcdir)/./warn-on-use.h \
177 > $@-t && \
178 mv $@-t $@
179MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
180
181WARN_ON_USE_H=warn-on-use.h
182
183EXTRA_DIST += $(top_srcdir)/./warn-on-use.h
184
185## end gnulib module warn-on-use
186
743c80a7
PE
187
188mostlyclean-local: mostlyclean-generic
189 @for dir in '' $(MOSTLYCLEANDIRS); do \
190 if test -n "$$dir" && test -d $$dir; then \
191 echo "rmdir $$dir"; rmdir $$dir; \
192 fi; \
193 done; \
194 :