-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
125 lines (101 loc) · 3.69 KB
/
Makefile.in
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
# Makefile.in for MinGW port of GNU libc 'regex' functions.
# Processed by 'configure' script, to generate 'Makefile'.
#
PACKAGE = @PACKAGE_TARNAME@
VERSION = @PACKAGE_VERSION@
#
# Adaptation by Keith Marshall <keithmarshall@users.sourceforge.net>
# from original 'Makefile' by Tor Lillqvist <tml@iki.fi>, <tml@novell.com>
#
DLLVERSION = @DLLVERSION@
#
# 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.
#
# Source files accompanying this Makefile remain copyright of their
# respective authors, or of the Free Software Foundation Inc., as stated
# in individual file headers; all are redistributed with permission, as
# granted by the GNU Lesser General Public License.
#
# Permission is granted to redistribute this software, either "as is" or
# in modified form, under the terms of the GNU Lesser General Public License,
# as published by the Free Software Foundation; either version 2.1, or (at
# your option) any later version.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this software; see the file COPYING.LIB. If not, write to the
# Free Software Foundation, 51 Franklin St - Fifth Floor, Boston,
# MA 02110-1301, USA.
VPATH = ${srcdir}
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
bindir = @bindir@
mandir = @mandir@
CC = @CC_QUALIFIED@
CFLAGS = @CFLAGS@ -I ${srcdir}
LDFLAGS = @LDFLAGS@
SOURCES = $(wildcard ${srcdir}/*.c ${srcdir}/*.h)
OBJECTS = regex.o
MSVCLIB = lib
BINDIST_FILES = libgnurx-$(DLLVERSION).dll
DEVDIST_FILES = libgnurx.dll.a libregex.a @GNURX_LIB@
SRCDIST_FILES = ${srcdir}/configure ${srcdir}/configure.ac ${srcdir}/aclocal.m4 \
${srcdir}/pkgid.m4 ${srcdir}/Makefile.in ${srcdir}/README ${srcdir}/COPYING.LIB \
$(SOURCES) $(wildcard ${srcdir}/*.[37]) ${srcdir}/ChangeLog
ZIPCMD = @ZIPCMD@
ZIPEXT = @ZIPEXT@
all: libgnurx-$(DLLVERSION).dll libgnurx.dll.a libregex.a @GNURX_LIB@
Makefile: config.status Makefile.in
./config.status
config.status: configure
./config.status --recheck
$(OBJECTS): Makefile
libgnurx-$(DLLVERSION).dll libgnurx.dll.a: $(OBJECTS)
$(CC) $(CFLAGS) -shared -o libgnurx-$(DLLVERSION).dll $(LDFLAGS) $(OBJECTS)
libregex.a: libgnurx.dll.a
cp -p libgnurx.dll.a $@
gnurx.lib: libgnurx-$(DLLVERSION).dll
$(MSVCLIB) -def:libgnurx.def -out:gnurx.lib
install: install-dll @install_dev@
install-dll:
mkdir -p ${bindir}
cp -p $(BINDIST_FILES) ${bindir}
install-dev:
mkdir -p ${includedir} ${libdir}
cp -p ${srcdir}/regex.h ${includedir}
cp -p $(DEVDIST_FILES) ${libdir}
for s in 3 7; do \
mkdir -p ${mandir}/man$$s; \
gzip -c ${srcdir}/regex.$$s > ${mandir}/man$$s/regex.$$s.gz; \
done
dist: bindist devdist srcdist
bindist: $(PACKAGE)-$(VERSION)-bin$(ZIPEXT)
devdist: $(PACKAGE)-$(VERSION)-dev$(ZIPEXT)
srcdist: $(PACKAGE)-$(VERSION)-src$(ZIPEXT)
$(PACKAGE)-$(VERSION)-bin$(ZIPEXT): $(BINDIST_FILES)
rm -rf tmp
$(MAKE) prefix=`pwd`/tmp --no-print-directory install-dll
cd tmp; $(ZIPCMD) ../$@ bin
rm -rf tmp
$(PACKAGE)-$(VERSION)-dev$(ZIPEXT): $(DEVDIST_FILES)
rm -rf tmp
$(MAKE) prefix=`pwd`/tmp --no-print-directory install-dev
cd tmp; $(ZIPCMD) ../$@ .
rm -rf tmp
$(PACKAGE)-$(VERSION)-src$(ZIPEXT): $(SRCDIST_FILES)
rm -rf $(PACKAGE)-$(VERSION)
mkdir $(PACKAGE)-$(VERSION)
cp -p $(SRCDIST_FILES) $(PACKAGE)-$(VERSION)
$(ZIPCMD) $@ $(PACKAGE)-$(VERSION)
rm -rf $(PACKAGE)-$(VERSION)
clean:
rm -f *~ *.o *.dll *.def *.exp *.lib *.a *.zip
rm -rf runtime dev $(PACKAGE)-$(VERSION)
distclean: clean
rm -f Makefile config.status config.log
rm -rf autom4te.cache
# $RCSfile$Revision: 1.4 $: end of file