[4e24f1]: Makefile.in  Maximize  Restore  History

Download this file

294 lines (226 with data), 8.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
# 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, Keith Marshall
#
# Written by Keith Marshall <keithmarshall@users.sourceforge.net>
# Last modification: 20-Jun-2007
#
#
# 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@
includedir = @includedir@
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 = COPYING ChangeLog mkinstalldirs install-sh $(MISC_SOURCES)
MISC_SOURCES = $(CONFIG_HEADERS) $(CONFIG_SOURCES) $(INSTALL_PROGS)
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/$$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@
INSTALL_PROGS = gendefs.awk
# 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) $< $@
all-dll = @MAKE_DLL@
all: all-libs $(all-dll) all-bin all-doc
all-bin: $(BUILD_PROGS)
all-dll: $(BUILD_DLLS)
all-libs: $(BUILD_LIBS)
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:
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)
## ============== ##
## Installation ##
## ============== ##
mkinstalldirs = ${srcdir}/mkinstalldirs
tool_prefix = @target_alias@`test -n "@target_alias@" && echo "-"`
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
DLL_IMPORT_LIBNAME = lib`echo "$$dll" | sed 's?$(DLLVERSION).dll?.dll.a?'`
install: install-headers install-progs install-libs
install-progs: all
$(mkinstalldirs) --require ${exec_prefix} ${bindir} ${libdir}
for prog in $(BUILD_PROGS); do \
$(INSTALL_PROGRAM) $$prog ${bindir}/$(tool_prefix)$$prog; \
done
for prog in $(INSTALL_PROGS); do \
$(INSTALL_PROGRAM) ${srcdir}/$$prog ${bindir}/$(tool_prefix)$$prog; \
done
install-libs: all-libs $(all-dll)
test -z "$(all-dll)" || for dll in $(BUILD_DLLS); do \
$(INSTALL_DATA) $$dll ${bindir}; \
$(INSTALL_DATA) $(DLL_IMPORT_LIBNAME) ${libdir}; \
done
for lib in $(BUILD_LIBS); do \
$(INSTALL_DATA) $$lib ${libdir}; \
done
install-headers: $(REPLACEMENT_HEADERS)
$(mkinstalldirs) ${includedir}
test -z "$^" || for hdr in $^; do \
$(INSTALL_DATA) $$hdr ${includedir}; \
done
install-doc: install-man install-info install-htmldoc install-pdf install-ps
install-man: $(subst .man,.n,$(MANPAGE_SOURCES))
for file in $^; do \
pagename=`echo $$file | sed 's/\.n//'`; \
section=`sed $(mansect) ${srcdir}/$$pagename.man`; \
echo $(INSTALL_DATA) $$file $(manpage); \
done
install-info:
install-htmldoc:
install-pdf:
install-ps:
## ============== ##
## Distribution ##
## ============== ##
dist: srcdist bindist
dist_srcdir = @abs_top_srcdir@
DISTDIRS = include m4 repl repl/include man
DISTFILES = $(GENCAT_SOURCES) $(CATGETS_SOURCES) $(OTHER_SOURCES)
DISTNAME = $(PACKAGE)-$(VERSION)
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: all
rm -rf tmp; mkdir tmp
$(MAKE) prefix=`pwd`/tmp install-progs install-libs install-doc
cd tmp && tar chf - * | $(ZIP) > ../$(DISTNAME)-bin.$(ZIPTYPE)
rm -rf tmp
## ========== ##
## Clean Up ##
## ========== ##
clean:
rm -f nlspath.h $(LOCAL_HEADERS) $(REPLACEMENT_HEADERS)
rm -f *.$(OBJEXT) *~ gencat$(EXEEXT) *.n *.a *.dll
distclean: clean
rm -rf Makefile config.h config.[ls]* autom4te.cache
# $RCSfile$Revision: 1.2 $: end of file

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks