fix critical-section mismatch
[dragonfly.git] / gnu / lib / libregex / Makefile.in
bloba21f97021e0f754ceb2b422576c213edbf5960ed
1 # Makefile for regex.
3 # Copyright (C) 1992, 1993 Free Software Foundation, Inc.
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.
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.
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.
19 version = 0.12
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.
29 CPPFLAGS =
31 # Likewise, you can override CFLAGS to optimize, use -Wall, etc.
32 CFLAGS = -g
34 # Ditto for LDFLAGS and LOADLIBES.
35 LDFLAGS =
36 LOADLIBES =
38 srcdir = @srcdir@
39 VPATH = @srcdir@
41 CC = @CC@
42 DEFS = @DEFS@
44 SHELL = /bin/sh
46 subdirs = doc test
48 default all:: regex.o
49 .PHONY: default all
51 regex.o: regex.c regex.h
52 $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) -c $<
54 clean mostlyclean::
55 rm -f *.o
57 distclean:: clean
58 rm -f Makefile config.status
60 extraclean:: distclean
61 rm -f patch* *~* *\#* *.orig *.rej *.bak core a.out
63 configure: configure.in
64 autoconf
66 config.status: configure
67 sh configure --no-create
69 Makefile: Makefile.in config.status
70 sh config.status
72 makeargs = $(MFLAGS) CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' CC='$(CC)' \
73 DEFS='$(DEFS)' LDFLAGS='$(LDFLAGS)' LOADLIBES='$(LOADLIBES)'
75 default all install \
76 mostlyclean clean distclean extraclean realclean \
77 TAGS check::
78 for d in $(subdirs); do (cd $$d; $(MAKE) $(makeargs) $@); done
79 .PHONY: install mostlyclean clean distclean extraclean realclean TAGS check
81 # Prevent GNU make 3 from overflowing arg limit on system V.
82 .NOEXPORT:
84 distfiles = AUTHORS ChangeLog COPYING INSTALL NEWS README \
85 *.in configure regex.c regex.h
86 distdir = regex-$(version)
87 distargs = version=$(version) distdir=../$(distdir)/$$d
88 dist: 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