cvs: Rebuild without gnuregex library
[dragonfly.git] / gnu / lib / libregex / Makefile.in
CommitLineData
984263bc
MD
1# Makefile for regex.
2#
3# Copyright (C) 1992, 1993 Free Software Foundation, Inc.
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2, or (at your option)
8# any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19version = 0.12
20
21# You can define CPPFLAGS on the command line. Aside from system-specific
22# flags, you can define:
23# -DREGEX_MALLOC to use malloc/realloc/free instead of alloca.
24# -DDEBUG to enable the compiled pattern disassembler and execution
25# tracing; code runs substantially slower.
26# -DEXTRACT_MACROS to use the macros EXTRACT_* (as opposed to
27# the corresponding C procedures). If not -DDEBUG, the macros
28# are used.
29CPPFLAGS =
30
31# Likewise, you can override CFLAGS to optimize, use -Wall, etc.
32CFLAGS = -g
33
34# Ditto for LDFLAGS and LOADLIBES.
35LDFLAGS =
36LOADLIBES =
37
38srcdir = @srcdir@
39VPATH = @srcdir@
40
41CC = @CC@
42DEFS = @DEFS@
43
44SHELL = /bin/sh
45
46subdirs = doc test
47
48default all:: regex.o
49.PHONY: default all
50
51regex.o: regex.c regex.h
52 $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) -c $<
53
54clean mostlyclean::
55 rm -f *.o
56
57distclean:: clean
58 rm -f Makefile config.status
59
60extraclean:: distclean
61 rm -f patch* *~* *\#* *.orig *.rej *.bak core a.out
62
63configure: configure.in
64 autoconf
65
66config.status: configure
67 sh configure --no-create
68
69Makefile: Makefile.in config.status
70 sh config.status
71
72makeargs = $(MFLAGS) CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' CC='$(CC)' \
73DEFS='$(DEFS)' LDFLAGS='$(LDFLAGS)' LOADLIBES='$(LOADLIBES)'
74
75default all install \
76mostlyclean clean distclean extraclean realclean \
77TAGS check::
78 for d in $(subdirs); do (cd $$d; $(MAKE) $(makeargs) $@); done
79.PHONY: install mostlyclean clean distclean extraclean realclean TAGS check
80
81# Prevent GNU make 3 from overflowing arg limit on system V.
82.NOEXPORT:
83
84distfiles = AUTHORS ChangeLog COPYING INSTALL NEWS README \
85 *.in configure regex.c regex.h
86distdir = regex-$(version)
87distargs = version=$(version) distdir=../$(distdir)/$$d
88dist: TAGS configure
89 @echo "Version numbers in: Makefile.in, ChangeLog, NEWS,"
90 @echo " regex.c, regex.h,"
91 @echo " and doc/xregex.texi (if modified)."
92 rm -rf $(distdir)
93 mkdir $(distdir)
94 ln $(distfiles) $(distdir)
95 for d in $(subdirs); do (cd $$d; $(MAKE) $(distargs) dist); done
96 tar czhf $(distdir).tar.Z $(distdir)
97 rm -rf $(distdir)
98.PHONY: dist