head	1.7;
access;
symbols
	RELENG_4_11_0_RELEASE:1.6
	RELENG_4_11:1.6.0.26
	RELENG_4_11_BP:1.6
	RELENG_4_10_0_RELEASE:1.6
	RELENG_4_10:1.6.0.24
	RELENG_4_10_BP:1.6
	RELENG_5_2_1_RELEASE:1.6
	RELENG_5_2_0_RELEASE:1.6
	RELENG_5_2:1.6.0.22
	RELENG_5_2_BP:1.6
	RELENG_4_9_0_RELEASE:1.6
	RELENG_4_9:1.6.0.20
	RELENG_4_9_BP:1.6
	RELENG_5_1_0_RELEASE:1.6
	RELENG_5_1:1.6.0.18
	RELENG_5_1_BP:1.6
	RELENG_4_8_0_RELEASE:1.6
	RELENG_4_8:1.6.0.16
	RELENG_4_8_BP:1.6
	RELENG_5_0_0_RELEASE:1.6
	RELENG_5_0:1.6.0.14
	RELENG_5_0_BP:1.6
	RELENG_4_7_0_RELEASE:1.6
	RELENG_4_7:1.6.0.12
	RELENG_4_7_BP:1.6
	RELENG_4_6_2_RELEASE:1.6
	RELENG_4_6_1_RELEASE:1.6
	RELENG_4_6_0_RELEASE:1.6
	RELENG_4_6:1.6.0.10
	RELENG_4_6_BP:1.6
	RELENG_4_5_0_RELEASE:1.6
	RELENG_4_5:1.6.0.8
	RELENG_4_5_BP:1.6
	RELENG_4_4_0_RELEASE:1.6
	RELENG_4_4:1.6.0.6
	RELENG_4_4_BP:1.6
	RELENG_4_3_0_RELEASE:1.6
	RELENG_4_3:1.6.0.4
	RELENG_4_3_BP:1.6
	RELENG_4_2_0_RELEASE:1.6
	RELENG_4_1_1_RELEASE:1.6
	PRE_SMPNG:1.6
	RELENG_4_1_0_RELEASE:1.6
	RELENG_3_5_0_RELEASE:1.5.2.1
	RELENG_4_0_0_RELEASE:1.6
	RELENG_4:1.6.0.2
	RELENG_4_BP:1.6
	RELENG_3_4_0_RELEASE:1.5.2.1
	RELENG_3_3_0_RELEASE:1.5.2.1
	RELENG_3_2_PAO:1.5.0.4
	RELENG_3_2_PAO_BP:1.5
	RELENG_3_2_0_RELEASE:1.5
	RELENG_3_1_0_RELEASE:1.5
	RELENG_3:1.5.0.2
	RELENG_3_BP:1.5
	RELENG_2_2_8_RELEASE:1.3
	RELENG_3_0_0_RELEASE:1.5
	RELENG_2_2_7_RELEASE:1.3
	RELENG_2_2_6_RELEASE:1.3
	RELENG_2_2_5_RELEASE:1.3
	RELENG_2_2_2_RELEASE:1.3
	RELENG_2_2_1_RELEASE:1.3
	RELENG_2_2_0_RELEASE:1.3
	RELENG_2_1_7_RELEASE:1.2.4.2
	RELENG_2_1_6_1_RELEASE:1.2.4.2
	RELENG_2_1_6_RELEASE:1.2.4.2
	RELENG_2_2:1.3.0.2
	RELENG_2_2_BP:1.3
	RELENG_2_1_5_RELEASE:1.2.4.2
	RELENG_2_1_0_RELEASE:1.2
	RELENG_2_1_0:1.2.0.4
	RELENG_2_1_0_BP:1.2
	RELENG_2_0_5_RELEASE:1.2
	RELENG_2_0_5:1.2.0.2
	RELENG_2_0_5_BP:1.2
	RELENG_2_0_5_ALPHA:1.1
	RELEASE_2_0:1.1
	BETA_2_0:1.1
	ALPHA_2_0:1.1.0.4
	MOVED_NEWCVS:1.1
	FINAL_1_1_5:1.1
	ALPHA_1_1_5:1.1
	FINAL_1_1:1.1
	GAMMA_1_1:1.1
	BETA_1_1:1.1.0.2
	BP_BETA_1_1:1.1
	FINAL_1_0:1.1
	EPSILON_1_0:1.1
	GAMMA_1_0:1.1
	BETA_1_0:1.1;
locks; strict;
comment	@# @;


1.7
date	2004.02.25.02.41.15;	author ache;	state dead;
branches;
next	1.6;

1.6
date	99.08.27.23.32.58;	author peter;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	97.02.22.15.43.08;	author peter;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	97.01.14.05.47.36;	author jkh;	state Exp;
branches;
next	1.3;

1.3
date	96.05.07.23.14.48;	author wosch;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	95.05.30.04.43.54;	author rgrimes;	state Exp;
branches
	1.2.4.1;
next	1.1;

1.1
date	93.07.30.20.16.23;	author conklin;	state Exp;
branches;
next	;

1.6.2.1
date	2012.11.17.07.22.53;	author svnexp;	state Exp;
branches;
next	;

1.5.2.1
date	99.08.29.14.29.04;	author peter;	state Exp;
branches;
next	;

1.3.2.1
date	99.09.05.11.05.22;	author peter;	state Exp;
branches;
next	;

1.2.4.1
date	96.05.29.22.31.35;	author jkh;	state Exp;
branches;
next	1.2.4.2;

1.2.4.2
date	96.06.05.02.38.56;	author jkh;	state Exp;
branches;
next	;


desc
@@


1.7
log
@Upgrade to regex from grep 2.4.2
@
text
@# $FreeBSD: src/gnu/lib/libregex/test/Makefile,v 1.6 1999/08/27 23:32:58 peter Exp $

# Generated automatically from Makefile.in by configure.
# Makefile for regex testing.
#
# Copyright (C) 1992 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

CPPFLAGS =
CFLAGS = -g
LDFLAGS =

srcdir = .
VPATH = .:../.

CC = gcc
DEFS =  -DHAVE_STRING_H=1
LIBS =  $(LOADLIBES)

ETAGS = etags
SHELL = /bin/sh

debug = -DDEBUG
ALL_CPPFLAGS = -I. -I$(srcdir) -I../$(srcdir) $(DEFS) $(CPPFLAGS) $(debug)

.c.o:
	$(CC) $(ALL_CPPFLAGS) $(CFLAGS) -c $<


# Define this as `../regex.o' to get the optimized version.
regex_o = dregex.o
test_h = test.h
test_o = test.o bsd-interf.o other.o tregress.o psx-basic.o psx-extend.o \
         psx-generic.o psx-group.o psx-interf.o psx-interv.o
common_o = printchar.o upcase.o xmalloc.o $(malloc)

# We have a lot of mallocs we can try when we run afoul of strange bugs.
malloc =
#malloc = # the libc malloc
#malloc = g++malloc.o
#malloc = debugmalloc.o
#malloc = emacsmalloc.o
emacsmallocflags = -Drcheck -Dbotch=abort -DUSG

# default is to do nothing.
default:

all: regex syntax

regex: $(regex_o) $(common_o) $(test_o) main.o
	$(CC) -o $@@ $(LDFLAGS) $^ $(LIBS)

# As long as we're doing tests, we enable debugging.
dregex.o: ../regex.c ../regex.h
	rm -f $@@
	$(CC) $(ALL_CPPFLAGS) $(CFLAGS) -c ../$(srcdir)/regex.c
	mv -f regex.o $@@

# iregex is the interactive regex.
iregex: $(common_o) $(regex_o) iregex.o
	$(CC) -o $@@ $(LDFLAGS) $^ $(LIBS)

# fileregex searches for an r.e. in every line of a given file.
fileregex_o = fileregex.o printchar.o $(regex_o)
fileregex: $(fileregex_o)
	$(CC) -o $@@ $(LDFLAGS) $(fileregex_o) $(LIBS)

# cppregex is regex with a preprocessed regex.c.  Useful when the
# problem is inside some macro.
cppregex: regexcpp.o $(common_o) $(test_o) main.o
	$(CC) -o $@@ $(LDFLAGS) $^ $(LIBS)

regexcpp.o: regexcpp.c

regexcpp.c: regex.c regexcpp.sed
	rm -f regexcpp.c
	$(CC) -E $(ALL_CPPFLAGS) ../$(srcdir)/regex.c \
          | egrep -v '^#|^ *$$' \
          | sed -f regexcpp.sed \
          > regexcpp.c
	chmod a-w regexcpp.c

# Have to give this malloc special flags.
emacsmalloc.o: emacsmalloc.c
	$(CC) -c $(CFLAGS) $(ALL_CPPFLAGS) $(emacsmallocflags) \
	  ../$(srcdir)/test/emacsmalloc.c

syntax: syntax.o
	$(CC) $(CFLAGS) -o $@@ syntax.o

syntax.c: syntax.skel bits
	sed '/\[\[\[replace.*\]\]\]/r bits' syntax.skel > $@@

bits: regex.h
	sed -n 1,/RE_SYNTAX_EMACS/p ../$(srcdir)/regex.h \
          | grep "#define RE_.*1" \
          | sed 's/^#define \(RE_[A-Z_]*\) .*/  TEST_BIT (\1);/' > $@@

check: regex
	./regex

TAGS: regex.c regex.h *.h *.c
	$(ETAGS) -t $^

depend:
	gcc -MM $(ALL_CPPFLAGS) *.c > /tmp/depend
.PHONY: depend

install:
.PHONY: install

clean mostlyclean:
	rm -f *.o regex cppregex iregex fileregex regexcpp.c syntax

distclean: clean
	rm -f bits syntax.c Makefile

extraclean: distclean
	rm -f *~* *\#* patch* *.orig *.rej *.bak core a.out

realclean: distclean
	rm -f TAGS

Makefile: Makefile.in ../config.status
	(cd ..; sh config.status)

# Prevent GNU make 3 from overflowing arg limit on system V.
.NOEXPORT:

# Assumes $(distdir) is the place to put our files.
distfiles = ChangeLog TAGS *.in *.c *.h regexcpp.sed syntax.skel
dist: Makefile TAGS
	mkdir $(distdir)
	ln $(distfiles) $(distdir)

# Automatically-generated dependencies below here.
alloca.o : alloca.c
bsd-interf.o : bsd-interf.c
debugmalloc.o : debugmalloc.c
emacsmalloc.o : emacsmalloc.c getpagesize.h
fileregex.o : fileregex.c .././regex.h
g++malloc.o : g++malloc.c //usr/include/stdio.h getpagesize.h
iregex.o : iregex.c .././regex.h
main.o : main.c test.h .././regex.h
malloc-test.o : malloc-test.c
other.o : other.c test.h .././regex.h
printchar.o : printchar.c
psx-basic.o : psx-basic.c test.h .././regex.h
psx-extend.o : psx-extend.c test.h .././regex.h
psx-generic.o : psx-generic.c test.h .././regex.h
psx-group.o : psx-group.c test.h .././regex.h
psx-interf.o : psx-interf.c test.h .././regex.h
psx-interv.o : psx-interv.c test.h .././regex.h
syntax.o : syntax.c .././regex.h
test.o : test.c test.h .././regex.h
tregress.o : tregress.c test.h .././regex.h
upcase.o : upcase.c
xmalloc.o : xmalloc.c
@


1.6
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.6.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/gnu/lib/libregex/test/Makefile 50472 1999-08-27 23:37:10Z peter $
@


1.5
log
@Revert $FreeBSD$ to $Id$
@
text
@d1 1
a1 1
#	$Id$
@


1.5.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.4
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d1 1
a1 1
#	$FreeBSD$
@


1.3
log
@``mv'' -> ``mv -f''
``rm'' -> ``rm -f''
so mv/rm may not ask for confirmation if you are not root
@
text
@d1 1
a1 1
#	$Id: $
@


1.3.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.2
log
@Remove trailing whitespace.
@
text
@d1 2
d70 1
a70 1
	mv regex.o $@@
@


1.2.4.1
log
@Merge from HEAD, except:

	Clients that used gnumalloc still do, despite the merge.  We're not
	bringing phkmalloc over.

	Thread stuff left out.

	PCCARD support left out.
@
text
@a0 2
#	$Id$

d68 1
a68 1
	mv -f regex.o $@@
@


1.2.4.2
log
@This 3rd mega-commit should hopefully bring us back to where we were.
I can get it to `make world' succesfully, anyway!
@
text
@d1 2
d70 1
a70 1
	mv regex.o $@@
@


1.1
log
@GNU Regex 0.12
@
text
@d3 1
a3 1
# 
d49 1
a49 1
malloc = 
d84 1
a84 1
regexcpp.o: regexcpp.c 
d148 22
a169 22
alloca.o : alloca.c 
bsd-interf.o : bsd-interf.c 
debugmalloc.o : debugmalloc.c 
emacsmalloc.o : emacsmalloc.c getpagesize.h 
fileregex.o : fileregex.c .././regex.h 
g++malloc.o : g++malloc.c //usr/include/stdio.h getpagesize.h 
iregex.o : iregex.c .././regex.h 
main.o : main.c test.h .././regex.h 
malloc-test.o : malloc-test.c 
other.o : other.c test.h .././regex.h 
printchar.o : printchar.c 
psx-basic.o : psx-basic.c test.h .././regex.h 
psx-extend.o : psx-extend.c test.h .././regex.h 
psx-generic.o : psx-generic.c test.h .././regex.h 
psx-group.o : psx-group.c test.h .././regex.h 
psx-interf.o : psx-interf.c test.h .././regex.h 
psx-interv.o : psx-interv.c test.h .././regex.h 
syntax.o : syntax.c .././regex.h 
test.o : test.c test.h .././regex.h 
tregress.o : tregress.c test.h .././regex.h 
upcase.o : upcase.c 
xmalloc.o : xmalloc.c 
@
