1 # Generated automatically from Makefile.in by configure.
4 # Copyright (C) 1992, 1993 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 # You can define CPPFLAGS on the command line. Aside from system-specific
23 # flags, you can define:
24 # -DREGEX_MALLOC to use malloc/realloc/free instead of alloca.
25 # -DDEBUG to enable the compiled pattern disassembler and execution
26 # tracing; code runs substantially slower.
27 # -DEXTRACT_MACROS to use the macros EXTRACT_* (as opposed to
28 # the corresponding C procedures). If not -DDEBUG, the macros
32 # Likewise, you can override CFLAGS to optimize, use -Wall, etc.
35 # Ditto for LDFLAGS and LOADLIBES.
43 DEFS = -DHAVE_STRING_H=1
52 regex.o: regex.c regex.h
53 $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) -c $<
59 rm -f Makefile config.status
61 extraclean:: distclean
62 rm -f patch* *~* *\#* *.orig *.rej *.bak core a.out
64 configure: configure.in
67 config.status: configure
68 sh configure --no-create
70 Makefile: Makefile.in config.status
73 makeargs = $(MFLAGS) CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' CC='$(CC)' \
74 DEFS='$(DEFS)' LDFLAGS='$(LDFLAGS)' LOADLIBES='$(LOADLIBES)'
77 mostlyclean clean distclean extraclean realclean \
79 for d in $(subdirs); do (cd $$d; $(MAKE) $(makeargs) $@); done
80 .PHONY: install mostlyclean clean distclean extraclean realclean TAGS check
82 # Prevent GNU make 3 from overflowing arg limit on system V.
85 distfiles = AUTHORS ChangeLog COPYING INSTALL NEWS README \
86 *.in configure regex.c regex.h
87 distdir = regex-$(version)
88 distargs = version=$(version) distdir=../$(distdir)/$$d
90 @echo "Version numbers in: Makefile.in, ChangeLog, NEWS,"
91 @echo " regex.c, regex.h,"
92 @echo " and doc/xregex.texi (if modified)."
95 ln $(distfiles) $(distdir)
96 for d in $(subdirs); do (cd $$d; $(MAKE) $(distargs) dist); done
97 tar czhf $(distdir).tar.Z $(distdir)