Help save net neutrality! Learn more.
Close

Diff of /Makefile.in [b7a978] .. [2866fb]  Maximize  Restore

Switch to unified view

a/Makefile.in b/Makefile.in
...
...
4
PACKAGE = @PACKAGE_TARNAME@
4
PACKAGE = @PACKAGE_TARNAME@
5
VERSION = @PACKAGE_VERSION@
5
VERSION = @PACKAGE_VERSION@
6
6
7
# $Id$
7
# $Id$
8
#
8
#
9
# Copyright (C) 2006, Keith Marshall
9
# Copyright (C) 2006, 2007, Keith Marshall
10
#
10
#
11
# Written by Keith Marshall  <keithmarshall@users.sourceforge.net>
11
# Written by Keith Marshall  <keithmarshall@users.sourceforge.net>
12
# Last modification: 30-Dec-2006
12
# Last modification: 20-Jun-2007
13
#
13
#
14
#
14
#
15
# This is free software.  It is provided AS IS, in the hope that it may
15
# This is free software.  It is provided AS IS, in the hope that it may
16
# be useful, but WITHOUT WARRANTY OF ANY KIND, not even an IMPLIED WARRANTY
16
# be useful, but WITHOUT WARRANTY OF ANY KIND, not even an IMPLIED WARRANTY
17
# of MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.
17
# of MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.
...
...
25
# along with this software; see the file COPYING.  If not, write to the
25
# along with this software; see the file COPYING.  If not, write to the
26
# Free Software Foundation, 51 Franklin St - Fifth Floor, Boston,
26
# Free Software Foundation, 51 Franklin St - Fifth Floor, Boston,
27
# MA 02110-1301, USA.
27
# MA 02110-1301, USA.
28
28
29
srcdir = @srcdir@
29
srcdir = @srcdir@
30
VPATH = ${srcdir}:${srcdir}/include:${srcdir}/repl
30
VPATH = ${srcdir}:${srcdir}/include:${srcdir}/repl:${srcdir}/man
31
31
32
prefix = @prefix@
32
prefix = @prefix@
33
exec_prefix = @exec_prefix@
33
exec_prefix = @exec_prefix@
34
34
35
canonical_prefix = @canonical_prefix@
35
canonical_prefix = @canonical_prefix@
...
...
92
GENCAT_OBJECTS  = @GENCAT_OBJECTS@
92
GENCAT_OBJECTS  = @GENCAT_OBJECTS@
93
93
94
OTHER_SOURCES   = COPYING ChangeLog mkinstalldirs install-sh $(MISC_SOURCES)
94
OTHER_SOURCES   = COPYING ChangeLog mkinstalldirs install-sh $(MISC_SOURCES)
95
MISC_SOURCES    = $(CONFIG_HEADERS) $(CONFIG_SOURCES) $(INSTALL_PROGS)
95
MISC_SOURCES    = $(CONFIG_HEADERS) $(CONFIG_SOURCES) $(INSTALL_PROGS)
96
96
97
MANPAGE_SOURCES   = catopen.man catgets.man catclose.man gencat.man
98
99
# MANSECTS specifies the set of *standard* man section identifiers, to
100
# which this collection of man pages will be distributed, or to which
101
# references are made in any man page in the collection.
102
#
103
MANSECTS = 1 2 3
104
105
# The set of MAN<n>EXT macros allows us to define local aliases for each
106
# of the standard man section identifiers; these will be used instead of
107
# the standard identifiers, as extensions for the installed man page
108
# directories and file names.
109
#
110
MAN1EXT = 1
111
MAN2EXT = 2
112
MAN3EXT = 3
113
114
# The following set of macros facilitate identification of the man
115
# section to which each generated `page.n' file belongs; this requires
116
# the `TH' record in each corresponding `page.man' source file to
117
# identify the appropriate section with a `@MAN<n>EXT@' tag.
118
#
119
mansect_lookup = '/^\.TH/{s/.*\(@MAN[0-9][^@]*EXT@\).*/\1/'
120
mansect_transform = $(foreach s,$(MANSECTS),-e s/@MAN$sEXT@/$(MAN$sEXT)/g)
121
mansect = -e $(mansect_lookup) $(mansect_transform) -e q -e \} -e d
122
manpage = ${mandir}/man$$section/$$pagename.$$section
123
124
# Generic rule to create `page.n' from `page.man'...
125
#
126
%.n: %.man; sed $(mansect_transform) $< > $@
97
127
98
BUILD_PROGS = gencat$(EXEEXT)
128
BUILD_PROGS = gencat$(EXEEXT)
99
BUILD_LIBS  = libcatgets.a
129
BUILD_LIBS  = libcatgets.a
100
BUILD_DLLS  = catgets$(DLLVERSION).dll
130
BUILD_DLLS  = catgets$(DLLVERSION).dll
101
DLLVERSION  = @DLLVERSION@
131
DLLVERSION  = @DLLVERSION@
102
132
103
INSTALL_PROGS   = gendefs.awk
133
INSTALL_PROGS   = gendefs.awk
104
134
135
# Generic rule, replacing the built-in default, to create an object file
136
# from a C source file...
137
#
105
%.$(OBJEXT): %.c
138
%.$(OBJEXT): %.c
106
    $(CC) -c $(CFLAGS) $(INCLUDES) $(DEFS) $(LDFLAGS) $<
139
    $(CC) -c $(CFLAGS) $(INCLUDES) $(DEFS) $(LDFLAGS) $<
107
140
141
# Generic rule to create a local header from a template...
142
#
108
%.h: %.h.in Makefile
143
%.h: %.h.in Makefile
109
    sed $(HEADER_TRANSFORM_SCRIPT) $< > $@
144
    sed $(HEADER_TRANSFORM_SCRIPT) $< > $@
110
111
%.h: repl/include/%.h
112
  $(LN_S) $< $@
113
145
114
HEADER_TRANSFORM_SCRIPT = \
146
HEADER_TRANSFORM_SCRIPT = \
115
  -e 's,@HOST_PREFIX@,${canonical_prefix},g' \
147
  -e 's,@HOST_PREFIX@,${canonical_prefix},g' \
116
  -e 's,@PATH_SEPARATOR_INTERNAL@,$(PATH_SEPARATOR_INTERNAL),g' \
148
  -e 's,@PATH_SEPARATOR_INTERNAL@,$(PATH_SEPARATOR_INTERNAL),g' \
117
  -e 's,$(subst .,\.,$@)\.in$$,$@ -- $(AUTOGENERATED),'
149
  -e 's,$(subst .,\.,$@)\.in$$,$@ -- $(AUTOGENERATED),'
118
150
119
AUTOGENERATED = Automatically generated from $<; do not edit!
151
AUTOGENERATED = Automatically generated from $<; do not edit!
120
152
153
# Generic rule to make a replacement header available for use...
154
#
155
%.h: repl/include/%.h
156
  $(LN_S) $< $@
157
121
all-dll = @MAKE_DLL@
158
all-dll = @MAKE_DLL@
122
159
123
all: all-libs $(all-dll) all-bin
160
all: all-libs $(all-dll) all-bin all-doc
124
161
125
all-bin: $(BUILD_PROGS)
162
all-bin: $(BUILD_PROGS)
126
163
127
all-dll: $(BUILD_DLLS)
164
all-dll: $(BUILD_DLLS)
128
165
129
all-libs: $(BUILD_LIBS)
166
all-libs: $(BUILD_LIBS)
167
168
all-doc: all-man all-info all-htmldoc all-pdf all-ps
169
170
all-man: $(subst .man,.n,$(MANPAGE_SOURCES))
171
172
all-info:
173
all-htmldoc:
174
all-pdf:
175
all-ps:
130
176
131
gencat$(EXEEXT): $(GENCAT_OBJECTS)
177
gencat$(EXEEXT): $(GENCAT_OBJECTS)
132
    $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $^ $(LIBICONV) $(LIBS)
178
    $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $^ $(LIBICONV) $(LIBS)
133
179
134
libcatgets.a: $(CATGETS_OBJECTS)
180
libcatgets.a: $(CATGETS_OBJECTS)
...
...
182
      $(INSTALL_DATA) $$hdr ${includedir}; \
228
      $(INSTALL_DATA) $$hdr ${includedir}; \
183
    done
229
    done
184
230
185
install-doc: install-man install-info install-htmldoc install-pdf install-ps
231
install-doc: install-man install-info install-htmldoc install-pdf install-ps
186
232
187
install-man:
233
install-man: $(subst .man,.n,$(MANPAGE_SOURCES))
234
  for file in $^; do \
235
    pagename=`echo $$file | sed 's/\.n//'`; \
236
    section=`sed $(mansect) ${srcdir}/$$pagename.man`; \
237
    echo $(INSTALL_DATA) $$file $(manpage); \
238
  done
239
188
install-info:
240
install-info:
189
install-htmldoc:
241
install-htmldoc:
190
install-pdf:
242
install-pdf:
191
install-ps:
243
install-ps:
192
244
...
...
196
## ============== ##
248
## ============== ##
197
249
198
dist: srcdist bindist
250
dist: srcdist bindist
199
dist_srcdir = @abs_top_srcdir@
251
dist_srcdir = @abs_top_srcdir@
200
252
201
DISTDIRS = include m4 repl repl/include
253
DISTDIRS = include m4 repl repl/include man
202
DISTFILES = $(GENCAT_SOURCES) $(CATGETS_SOURCES) $(OTHER_SOURCES)
254
DISTFILES = $(GENCAT_SOURCES) $(CATGETS_SOURCES) $(OTHER_SOURCES)
203
DISTNAME = $(PACKAGE)-$(VERSION)
255
DISTNAME = $(PACKAGE)-$(VERSION)
204
256
205
ZIP = gzip -c
257
ZIP = gzip -c
206
ZIPTYPE = tar.gz
258
ZIPTYPE = tar.gz
...
...
231
##  Clean Up  ##
283
##  Clean Up  ##
232
## ========== ##
284
## ========== ##
233
285
234
clean:
286
clean:
235
    rm -f nlspath.h $(LOCAL_HEADERS) $(REPLACEMENT_HEADERS)
287
    rm -f nlspath.h $(LOCAL_HEADERS) $(REPLACEMENT_HEADERS)
236
    rm -f *.$(OBJEXT) *~ gencat$(EXEEXT)
288
    rm -f *.$(OBJEXT) *~ gencat$(EXEEXT) *.n *.a *.dll
237
289
238
distclean: clean
290
distclean: clean
239
    rm -rf Makefile config.h config.[ls]* autom4te.cache
291
    rm -rf Makefile config.h config.[ls]* autom4te.cache
240
292
241
# $RCSfile$Revision: 1.1.1.1 $: end of file
293
# $RCSfile$Revision: 1.2 $: end of file