[e8a4ca]: Makefile.in Maximize Restore History

Download this file

Makefile.in    379 lines (299 with data), 11.4 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
# Makefile.in for MinGW implementation of catgets.
# Process this file with autoconf, to generate Makefile.
PACKAGE = @PACKAGE_TARNAME@
VERSION = @PACKAGE_VERSION@
# $Id$
#
# Copyright (C) 2006, 2007, 2008, Keith Marshall
#
# Written by Keith Marshall <keithmarshall@users.sourceforge.net>
# Last modification: 15-Feb-2008
#
#
# This is free software. It is provided AS IS, in the hope that it may
# be useful, but WITHOUT WARRANTY OF ANY KIND, not even an IMPLIED WARRANTY
# of MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.
#
# Permission is granted to redistribute this software, either "as is" or
# in modified form, under the terms of the GNU General Public License, as
# published by the Free Software Foundation; either version 2, or (at your
# option) any later version.
#
# You should have received a copy of the GNU General Public License
# along with this software; see the file COPYING. If not, write to the
# Free Software Foundation, 51 Franklin St - Fifth Floor, Boston,
# MA 02110-1301, USA.
srcdir = @srcdir@
VPATH = ${srcdir}:${srcdir}/include:${srcdir}/repl:${srcdir}/man
prefix = @prefix@
exec_prefix = @exec_prefix@
canonical_prefix = @canonical_prefix@
bindir = @bindir@
libdir = @libdir@
scriptdir = @datadir@/$(PACKAGE)/scripts
includedir = @includedir@
docdir = @datadir@/doc/$(PACKAGE)
mandir = @mandir@
CC = @CC@
CFLAGS = @CFLAGS@
INCLUDES = -I. -I${srcdir}/include @INCICONV@
# LOCAL_HEADERS and REPLACEMENT_HEADERS specify compiler include
# files which we normally expect to be available as system headers,
# but for which we have, and prefer, a local replacement.
#
# Any LOCAL_HEADERS specified will remain local to the build tree;
# we include `nl_types.h' in this list, to ensure that we build
# with our local version, but we don't want to install it, if the
# system already provides a header with this name.
#
LOCAL_HEADERS = nl_types.h @LOCAL_HEADERS@
# REPLACEMENT_HEADERS, on the other hand, will be copied into the
# specified `${includedir}', when we do a `make install', and will
# replace any existing headers of the same name.
#
# We might find `nl_types.h' here too, if the system doesn't have
# one; in this case ours will be installed as a new system header
# when we do a `make install'.
#
includedir = @includedir@
REPLACEMENT_HEADERS = @REPLACEMENT_HEADERS@
DEFS = @DEFS@
OBJEXT = @OBJEXT@
EXEEXT = @EXEEXT@
AR = @AR@
ARFLAGS = rcs
LN_S = @LN_S@
LIBS = -lcatgets @LIBS@
LIBICONV = @LIBICONV@
LDFLAGS = -L. @LDFLAGS@
PATH_SEPARATOR_INTERNAL = @HOST_PATH_SEPARATOR@
CONFIG_HEADERS = config.h.in nlspath.h.in
CONFIG_SOURCES = aclocal.m4 configure.ac configure Makefile.in
CATGETS_HEADERS = mctab.h msgcat.h
CATGETS_SOURCES = catopen.c catgets.c catclose.c mctab.c mcref.c mcfree.c
CATGETS_OBJECTS = $(subst .c,.$(OBJEXT),$(CATGETS_SOURCES))
GENCAT_HEADERS = gencat.h gcmsgs.h mcutfsig.h
GENCAT_SOURCES = gencat.c mcload.c mcsource.c mciconv.c mcmerge.c mcutfsig.c
GENCAT_OBJECTS = @GENCAT_OBJECTS@
OTHER_SOURCES = $(DISTDOC_SOURCES) mkinstalldirs install-sh $(MISC_SOURCES)
MISC_SOURCES = $(CONFIG_HEADERS) $(CONFIG_SOURCES) $(DISTDEV_SCRIPTS)
DISTDOC_SOURCES = ChangeLog COPYING FDL README
MANPAGE_SOURCES = catopen.man catgets.man catclose.man gencat.man
# MANSECTS specifies the set of *standard* man section identifiers, to
# which this collection of man pages will be distributed, or to which
# references are made in any man page in the collection.
#
MANSECTS = 1 2 3
# The set of MAN<n>EXT macros allows us to define local aliases for each
# of the standard man section identifiers; these will be used instead of
# the standard identifiers, as extensions for the installed man page
# directories and file names.
#
MAN1EXT = 1
MAN2EXT = 2
MAN3EXT = 3
# The following set of macros facilitate identification of the man
# section to which each generated `page.n' file belongs; this requires
# the `TH' record in each corresponding `page.man' source file to
# identify the appropriate section with a `@MAN<n>EXT@' tag.
#
mansect_lookup = '/^\.TH/{s/.*\(@MAN[0-9][^@]*EXT@\).*/\1/'
mansect_transform = $(foreach s,$(MANSECTS),-e s/@MAN$sEXT@/$(MAN$sEXT)/g)
mansect = -e $(mansect_lookup) $(mansect_transform) -e q -e \} -e d
manpage = ${mandir}/man$$section/$(man_prefix)$$pagename.$$section
# Generic rule to create `page.n' from `page.man'...
#
%.n: %.man; sed $(mansect_transform) $< > $@
BUILD_PROGS = gencat$(EXEEXT)
BUILD_LIBS = libcatgets.a
BUILD_DLLS = catgets$(DLLVERSION).dll
DLLVERSION = @DLLVERSION@
DISTDEV_SCRIPTS = gendefs.awk
# DISTDEV_SCRIPTS may not be directly runnable...
# EXECDEV_SCRIPTS derives from them, creating variants with appropriate
# shebang entries, making them directly executable from a command line.
#
EXECDEV_SCRIPTS = gendefs
# Generic rule, replacing the built-in default, to create an object file
# from a C source file...
#
%.$(OBJEXT): %.c
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFS) $(LDFLAGS) $<
# Generic rule to create a local header from a template...
#
%.h: %.h.in Makefile
sed $(HEADER_TRANSFORM_SCRIPT) $< > $@
HEADER_TRANSFORM_SCRIPT = \
-e 's,@HOST_PREFIX@,${canonical_prefix},g' \
-e 's,@PATH_SEPARATOR_INTERNAL@,$(PATH_SEPARATOR_INTERNAL),g' \
-e 's,$(subst .,\.,$@)\.in$$,$@ -- $(AUTOGENERATED),'
AUTOGENERATED = Automatically generated from $<; do not edit!
# Generic rule to make a replacement header available for use...
#
%.h: repl/include/%.h
$(LN_S) $< $@
# Generic rule to make a runnable (shebanged) script,
# from a non-runnable awk program script.
#
%: %.awk
sed '1s,!.*,! @AWK_INTERPRETER@ -f,' $< > $@
chmod 755 $@
all-dll = @MAKE_DLL@
all-targets = @MAKE_TARGETS@
all: $(all-targets)
all-native: all-libs $(all-dll) all-bin all-scripts all-doc
all-cross-hosted: all-native cross-build
all-bin: $(BUILD_PROGS)
all-dll: $(BUILD_DLLS)
all-libs: $(BUILD_LIBS)
all-scripts: $(EXECDEV_SCRIPTS)
all-doc: all-man all-info all-htmldoc all-pdf all-ps
all-man: $(subst .man,.n,$(MANPAGE_SOURCES))
all-info:
all-htmldoc:
all-pdf:
all-ps:
all-cross-hosted-libs: all-libs $(all-dll)
gencat$(EXEEXT): $(GENCAT_OBJECTS)
$(CC) -o $@ $(CFLAGS) $(LDFLAGS) $^ $(LIBICONV) $(LIBS)
libcatgets.a: $(CATGETS_OBJECTS)
$(AR) $(ARFLAGS) $@ $?
$(CATGETS_OBJECTS): $(CATGETS_HEADERS) $(LOCAL_HEADERS) $(REPLACEMENT_HEADERS)
catopen.$(OBJEXT): nlspath.h
catgets$(DLLVERSION).dll libcatgets.dll.a: $(CATGETS_OBJECTS)
$(CC) -o $@ -shared $(CFLAGS) $^ -Wl,--out-implib=libcatgets.dll.a
$(GENCAT_OBJECTS): $(GENCAT_HEADERS) $(CATGETS_OBJECTS)
FORCE:
cross-build: FORCE; cd $@ && $(MAKE) all-cross-hosted-libs
## ============== ##
## Installation ##
## ============== ##
mkinstalldirs = ${srcdir}/mkinstalldirs
tool_prefix = @target_alias@`test -n "@target_alias@" && echo "-"`
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DATA = @INSTALL_DATA@
DLL_IMPORT_LIBNAME = lib`echo "$$dll" | sed 's?$(DLLVERSION).dll?.dll.a?'`
install: install-$(all-targets)
install-all-native: install-progs install-headers install-libs
install-all-cross-hosted: install-progs
cd cross-build; $(MAKE) install-headers install-libs
install-progs: install-bin-progs install-scripts
install-bin-progs: $(BUILD_PROGS)
$(mkinstalldirs) --require ${exec_prefix} ${bindir}
for prog in $^; do \
progname=`IFS='\\/'; set x $$prog; eval echo '$$'$$#`; \
echo $(INSTALL_PROGRAM) $$prog ${bindir}/$(tool_prefix)$$progname; \
$(INSTALL_PROGRAM) $$prog ${bindir}/$(tool_prefix)$$progname; \
done
install-scripts: $(EXECDEV_SCRIPTS)
$(mkinstalldirs) --require ${prefix} ${scriptdir}
for script in $^; do \
prog=`IFS='\\/'; set x $$script; eval echo '$$'$$#`; \
echo $(INSTALL_SCRIPT) $$script ${scriptdir}/$(tool_prefix)$$prog; \
$(INSTALL_SCRIPT) $$script ${scriptdir}/$(tool_prefix)$$prog; \
done
install-dll: $(all-dll)
$(mkinstalldirs) --require ${exec_prefix} ${bindir}
test -z "$(all-dll)" || for dll in $(BUILD_DLLS); do \
echo $(INSTALL_DATA) $$dll ${bindir}; \
$(INSTALL_DATA) $$dll ${bindir}; \
done
install-libs: all-libs $(all-dll)
$(mkinstalldirs) --require ${exec_prefix} ${bindir} ${libdir}
test -z "$(all-dll)" || for dll in $(BUILD_DLLS); do \
echo $(INSTALL_DATA) $(DLL_IMPORT_LIBNAME) ${libdir}; \
$(INSTALL_DATA) $(DLL_IMPORT_LIBNAME) ${libdir}; \
done
for lib in $(BUILD_LIBS); do \
echo $(INSTALL_DATA) $$lib ${libdir}; \
$(INSTALL_DATA) $$lib ${libdir}; \
done
install-headers: $(REPLACEMENT_HEADERS)
$(mkinstalldirs) ${includedir}
test -z "$^" || for hdr in $^; do \
echo $(INSTALL_DATA) $$hdr ${includedir}; \
$(INSTALL_DATA) $$hdr ${includedir}; \
done
install-doc: install-man install-info install-htmldoc install-pdf install-ps
install-man: $(subst .man,.n,$(MANPAGE_SOURCES))
if test "${mandir}" = "${prefix}/man" \
|| test "${mandir}" = "${prefix}/share/man"; then \
$(mkinstalldirs) --require ${prefix} ${mandir}; \
fi
for file in $^; do \
pagename=`echo $$file | sed 's/\.n//'`; \
section=`sed $(mansect) ${srcdir}/man/$$pagename.man`; \
$(mkinstalldirs) --require ${mandir} ${mandir}/man$$section; \
echo $(INSTALL_DATA) $$file $(manpage); \
$(INSTALL_DATA) $$file $(manpage); \
done
install-info:
install-htmldoc:
install-pdf:
install-ps:
## ============== ##
## Distribution ##
## ============== ##
dist: srcdist bindist devdist
dist_srcdir = @abs_top_srcdir@
DISTDIRS = include m4 repl repl/include man
DISTFILES = $(GENCAT_SOURCES) $(CATGETS_SOURCES) $(OTHER_SOURCES)
DISTNAME = $(PACKAGE)-$(VERSION)$(SNAPSHOT)
bindist-tag = bin
devdist-tag = dev
ZIP = gzip -c
ZIPTYPE = tar.gz
srcdist:
rm -rf $(DISTNAME); mkdir $(DISTNAME)
curdir=`pwd`; \
for dir in $(DISTDIRS); do \
mkdir $(DISTNAME)/$$dir; \
cd $(DISTNAME)/$$dir; \
for file in ${dist_srcdir}/$$dir/*; do \
test -f $$file && $(LN_S) $$file .; \
done; \
cd $$curdir; \
done
for f in $(DISTFILES); do $(LN_S) ${dist_srcdir}/$$f $(DISTNAME)/$$f; done
tar chf - $(DISTNAME) | $(ZIP) > $(DISTNAME)-src.$(ZIPTYPE)
rm -rf $(DISTNAME)
bindist devdist: all
rm -rf tmp; mkdir tmp
$(MAKE) prefix=`pwd`/tmp $@-install
cd tmp && tar chf - * | $(ZIP) > ../$(DISTNAME)-$($@-tag).$(ZIPTYPE)
rm -rf tmp
bindist-install: bindist-docs-install install-dll
devdist-install: devdist-docs-install devdist-headers-install
devdist-install: install-progs install-libs install-doc
bindist-docs-install: README COPYING
$(mkinstalldirs) ${docdir}
for file in $^; do \
echo $(INSTALL_DATA) $$file ${docdir}; \
$(INSTALL_DATA) $$file ${docdir}; \
done
devdist-docs-install: bindist-docs-install devdist-extra-docs-install
devdist-extra-docs-install: FDL
for file in $^; do \
echo $(INSTALL_DATA) $$file ${docdir}; \
$(INSTALL_DATA) $$file ${docdir}; \
done
devdist-headers-install: nl_types.h langinfo.h
$(mkinstalldirs) ${includedir}
for file in $^; do \
echo $(INSTALL_DATA) $$file ${includedir}; \
$(INSTALL_DATA) $$file ${includedir}; \
done
## ========== ##
## Clean Up ##
## ========== ##
clean: FORCE
if test -d cross-build; then cd cross-build; $(MAKE) $@; fi
rm -f nlspath.h $(LOCAL_HEADERS) $(REPLACEMENT_HEADERS)
rm -f *.$(OBJEXT) *~ gencat$(EXEEXT) $(EXECDEV_SCRIPTS) *.n *.a *.dll
distclean: distclean-cross-hosted clean
rm -rf Makefile config.h config.[ls]* autom4te.cache
distclean-cross-hosted: FORCE
rm -rf cross-build
# $RCSfile$Revision: 1.7 $: end of file