Do not loop 3 times in the interrupt processing code, it's an unnecessary
[dragonfly.git] / gnu / lib / libregex / Makefile.gnu
1 # Generated automatically from Makefile.in by configure.
2 # Makefile for regex.
3 #
4 # Copyright (C) 1992, 1993 Free Software Foundation, Inc.
5 #
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)
9 # any later version.
10 #
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.
15 #
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.
19
20 version = 0.12
21
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
29 #           are used.
30 CPPFLAGS =
31
32 # Likewise, you can override CFLAGS to optimize, use -Wall, etc.
33 CFLAGS = -g
34
35 # Ditto for LDFLAGS and LOADLIBES.
36 LDFLAGS =
37 LOADLIBES =
38
39 srcdir = .
40 VPATH = .
41
42 CC = gcc
43 DEFS =  -DHAVE_STRING_H=1
44
45 SHELL = /bin/sh
46
47 subdirs = doc test
48
49 default all:: regex.o
50 .PHONY: default all
51
52 regex.o: regex.c regex.h
53         $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) -c $<
54
55 clean mostlyclean::
56         rm -f *.o
57
58 distclean:: clean
59         rm -f Makefile config.status
60
61 extraclean:: distclean
62         rm -f patch* *~* *\#* *.orig *.rej *.bak core a.out
63
64 configure: configure.in
65         autoconf
66
67 config.status: configure
68         sh configure --no-create
69
70 Makefile: Makefile.in config.status
71         sh config.status
72
73 makeargs = $(MFLAGS) CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' CC='$(CC)' \
74 DEFS='$(DEFS)' LDFLAGS='$(LDFLAGS)' LOADLIBES='$(LOADLIBES)'
75
76 default all install \
77 mostlyclean clean distclean extraclean realclean \
78 TAGS check::
79         for d in $(subdirs); do (cd $$d; $(MAKE) $(makeargs) $@); done
80 .PHONY: install mostlyclean clean distclean extraclean realclean TAGS check
81
82 # Prevent GNU make 3 from overflowing arg limit on system V.
83 .NOEXPORT:
84
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
89 dist: TAGS configure
90         @echo "Version numbers in: Makefile.in, ChangeLog, NEWS,"
91         @echo "  regex.c, regex.h,"
92         @echo "  and doc/xregex.texi (if modified)."
93         rm -rf $(distdir)
94         mkdir $(distdir)
95         ln $(distfiles) $(distdir)
96         for d in $(subdirs); do (cd $$d; $(MAKE) $(distargs) dist); done
97         tar czhf $(distdir).tar.Z $(distdir)
98         rm -rf $(distdir)
99 .PHONY: dist