head	1.22;
access;
symbols
	REL9_0_0:1.22
	REL9_1_ALPHA1:1.22
	REL9_0_RC1:1.22
	REL9_0_BETA4:1.22
	REL9_0_STABLE:1.22.0.14
	REL9_0_BETA3:1.22
	REL9_0_BETA2:1.22
	REL7_4_29:1.20
	REL8_0_25:1.21
	REL8_1_21:1.21
	REL8_2_17:1.21
	REL8_3_11:1.21
	REL8_4_4:1.22
	REL9_0_BETA1:1.22
	REL9_0_ALPHA5_BRANCH:1.22.0.12
	REL9_0_ALPHA5:1.22
	REL7_4_28:1.20
	REL8_0_24:1.21
	REL8_1_20:1.21
	REL8_2_16:1.21
	REL8_3_10:1.21
	REL8_4_3:1.22
	REL9_0_ALPHA4:1.22
	REL9_0_ALPHA4_BRANCH:1.22.0.10
	REL8_5_ALPHA3:1.22
	REL8_5_ALPHA3_BRANCH:1.22.0.8
	REL7_4_27:1.20
	REL8_0_23:1.21
	REL8_1_19:1.21
	REL8_2_15:1.21
	REL8_3_9:1.21
	REL8_4_2:1.22
	REL8_5_ALPHA2:1.22
	REL8_5_ALPHA2_BRANCH:1.22.0.6
	REL7_4_26:1.20
	REL8_0_22:1.21
	REL8_1_18:1.21
	REL8_2_14:1.21
	REL8_3_8:1.21
	REL8_4_1:1.22
	REL8_5_ALPHA1:1.22
	REL8_5_ALPHA1_BRANCH:1.22.0.4
	REL8_4_STABLE:1.22.0.2
	REL8_4_0:1.22
	REL8_4_RC2:1.22
	REL8_4_RC1:1.22
	REL8_4_BETA2:1.22
	REL8_4_BETA1:1.22
	REL7_4_25:1.20
	REL8_0_21:1.21
	REL8_1_17:1.21
	REL8_2_13:1.21
	REL8_3_7:1.21
	REL7_4_24:1.20
	REL8_0_20:1.21
	REL8_1_16:1.21
	REL8_2_12:1.21
	REL8_3_6:1.21
	REL7_4_23:1.20
	REL8_0_19:1.21
	REL8_1_15:1.21
	REL8_2_11:1.21
	REL8_3_5:1.21
	REL7_4_22:1.20
	REL8_0_18:1.21
	REL8_1_14:1.21
	REL8_2_10:1.21
	REL8_3_4:1.21
	REL7_4_21:1.20
	REL8_0_17:1.21
	REL8_1_13:1.21
	REL8_2_9:1.21
	REL8_3_3:1.21
	REL7_4_20:1.20
	REL8_0_16:1.21
	REL8_1_12:1.21
	REL8_2_8:1.21
	REL8_3_2:1.21
	REL8_2_7:1.21
	REL8_3_1:1.21
	REL8_3_STABLE:1.21.0.10
	REL8_3_0:1.21
	REL8_3_RC2:1.21
	REL7_3_21:1.19
	REL7_4_19:1.20
	REL8_0_15:1.21
	REL8_1_11:1.21
	REL8_2_6:1.21
	REL8_3_RC1:1.21
	REL8_3_BETA4:1.21
	REL8_3_BETA3:1.21
	REL8_3_BETA2:1.21
	REL8_3_BETA1:1.21
	REL7_3_20:1.19
	REL7_4_18:1.20
	REL8_0_14:1.21
	REL8_1_10:1.21
	REL8_2_5:1.21
	REL7_3_19:1.19
	REL7_4_17:1.20
	REL8_0_13:1.21
	REL8_1_9:1.21
	REL8_2_4:1.21
	REL8_0_12:1.21
	REL8_1_8:1.21
	REL8_2_3:1.21
	REL7_3_18:1.19
	REL7_4_16:1.20
	REL8_0_11:1.21
	REL8_1_7:1.21
	REL8_2_2:1.21
	REL8_0_10:1.21
	REL8_1_6:1.21
	REL8_2_1:1.21
	REL7_4_15:1.20
	REL7_3_17:1.19
	REL8_2_STABLE:1.21.0.8
	REL8_2_0:1.21
	REL8_2_RC1:1.21
	REL8_2_BETA3:1.21
	REL8_2_BETA2:1.21
	REL8_1_5:1.21
	REL8_0_9:1.21
	REL7_4_14:1.20
	REL7_3_16:1.19
	REL8_2_BETA1:1.21
	REL7_3_15:1.19
	REL7_4_13:1.20
	REL8_0_8:1.21
	REL8_1_4:1.21
	REL7_3_14:1.19
	REL7_4_12:1.20
	REL8_0_7:1.21
	REL8_1_3:1.21
	REL7_3_13:1.19
	REL7_4_11:1.20
	REL8_0_6:1.21
	REL8_1_2:1.21
	REL7_3_12:1.19
	REL7_4_10:1.20
	REL8_0_5:1.21
	REL8_1_1:1.21
	REL8_1_STABLE:1.21.0.6
	REL8_1_0:1.21
	REL8_1_0RC1:1.21
	REL8_1_0BETA4:1.21
	REL8_1_0BETA3:1.21
	REL7_3_11:1.19
	REL7_4_9:1.20
	REL8_0_4:1.21
	REL8_1_0BETA2:1.21
	REL8_1_0BETA1:1.21
	REL7_2_8:1.17
	REL7_3_10:1.19
	REL7_4_8:1.20
	REL8_0_3:1.21
	REL8_0_2:1.21
	REL7_2_7:1.17
	REL7_3_9:1.19
	REL7_4_7:1.20
	REL8_0_1:1.21
	REL8_0_STABLE:1.21.0.4
	REL8_0_0:1.21.0.2
	REL8_0_0RC5:1.21
	REL8_0_0RC4:1.21
	REL8_0_0RC3:1.21
	REL8_0_0RC2:1.21
	REL8_0_0RC1:1.21
	REL8_0_0BETA5:1.21
	REL8_0_0BETA4:1.21
	REL7_4_6:1.20
	REL7_3_8:1.19
	REL7_2_6:1.17
	REL8_0_0BETA3:1.21
	REL8_0_0BETA2:1.21
	REL7_2_5:1.17
	REL7_4_5:1.20
	REL7_3_7:1.19
	REL7_4_4:1.20
	REL8_0_0BETA1:1.21
	REL7_4_3:1.20
	REL7_4_2:1.20
	REL7_3_6:1.19
	REL7_4_1:1.20
	REL7_3_5:1.19
	REL7_4:1.20
	REL7_4_RC2:1.20
	REL7_4_STABLE:1.20.0.4
	REL7_4_RC1:1.20
	REL7_4_BETA5:1.20
	REL7_4_BETA4:1.20
	REL7_4_BETA3:1.20
	REL7_4_BETA2:1.20
	WIN32_DEV:1.20.0.2
	REL7_4_BETA1:1.20
	REL7_3_4:1.19
	REL7_3_2:1.19
	REL7_2_4:1.17
	REL7_3_STABLE:1.19.0.2
	REL7_2_3:1.17
	REL7_2_STABLE:1.17.0.2
	REL7_2:1.17
	REL7_2_RC2:1.17
	REL7_2_RC1:1.17
	REL7_2_BETA5:1.17
	REL7_2_BETA4:1.17
	REL7_2_BETA3:1.17
	REL7_2_BETA2:1.17
	REL7_2_BETA1:1.17
	REL7_1_2:1.16
	REL7_1_STABLE:1.16.0.2
	REL7_1_BETA:1.16
	REL7_1_BETA3:1.16
	REL7_1_BETA2:1.16
	REL7_1:1.16
	REL7_0_PATCHES:1.12.0.2
	REL7_0:1.12
	REL6_5_PATCHES:1.9.0.2
	REL6_5:1.9
	REL6_4:1.8.0.2
	release-6-3:1.4
	REL2_0B:1.2.0.2
	REL2_0:1.2;
locks; strict;
comment	@# @;


1.22
date	2008.02.19.10.30.08;	author petere;	state Exp;
branches;
next	1.21;

1.21
date	2003.11.29.19.51.55;	author pgsql;	state Exp;
branches;
next	1.20;

1.20
date	2003.02.05.17.41.32;	author tgl;	state Exp;
branches;
next	1.19;

1.19
date	2002.09.16.16.02.43;	author momjian;	state Exp;
branches;
next	1.18;

1.18
date	2002.09.03.21.45.42;	author petere;	state Exp;
branches;
next	1.17;

1.17
date	2001.10.04.04.16.16;	author ishii;	state Exp;
branches;
next	1.16;

1.16
date	2000.11.30.20.36.10;	author petere;	state Exp;
branches;
next	1.15;

1.15
date	2000.10.20.21.03.46;	author petere;	state Exp;
branches;
next	1.14;

1.14
date	2000.08.31.16.10.25;	author petere;	state Exp;
branches;
next	1.13;

1.13
date	2000.05.29.05.44.58;	author tgl;	state Exp;
branches;
next	1.12;

1.12
date	2000.01.19.02.58.53;	author petere;	state Exp;
branches;
next	1.11;

1.11
date	99.12.13.22.33.23;	author momjian;	state Exp;
branches;
next	1.10;

1.10
date	99.12.09.19.14.55;	author momjian;	state Exp;
branches;
next	1.9;

1.9
date	99.05.21.06.27.54;	author ishii;	state Exp;
branches;
next	1.8;

1.8
date	98.07.26.04.30.34;	author scrappy;	state Exp;
branches;
next	1.7;

1.7
date	98.07.24.03.31.24;	author scrappy;	state Exp;
branches;
next	1.6;

1.6
date	98.04.06.00.24.39;	author momjian;	state Exp;
branches;
next	1.5;

1.5
date	98.03.15.07.38.14;	author scrappy;	state Exp;
branches;
next	1.4;

1.4
date	97.12.20.00.26.58;	author scrappy;	state Exp;
branches;
next	1.3;

1.3
date	97.12.19.02.06.41;	author scrappy;	state Exp;
branches;
next	1.2;

1.2
date	96.11.09.06.20.58;	author momjian;	state Exp;
branches;
next	1.1;

1.1
date	96.10.27.09.51.27;	author bryanh;	state Exp;
branches;
next	;


desc
@@


1.22
log
@Refactor backend makefiles to remove lots of duplicate code
@
text
@#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for backend/regex
#
# IDENTIFICATION
#    $PostgreSQL: pgsql/src/backend/regex/Makefile,v 1.21 2003/11/29 19:51:55 pgsql Exp $
#
#-------------------------------------------------------------------------

subdir = src/backend/regex
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global

OBJS = regcomp.o regerror.o regexec.o regfree.o

include $(top_srcdir)/src/backend/common.mk

# mark inclusion dependencies between .c files explicitly
regcomp.o: regcomp.c regc_lex.c regc_color.c regc_nfa.c regc_cvec.c regc_locale.c

regexec.o: regexec.c rege_dfa.c
@


1.21
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d7 1
a7 1
#    $PostgreSQL: /cvsroot/pgsql-server/src/backend/regex/Makefile,v 1.20 2003/02/05 17:41:32 tgl Exp $
d17 1
a17 4
all: SUBSYS.o

SUBSYS.o: $(OBJS)
	$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
a22 3

clean: 
	rm -f SUBSYS.o $(OBJS)
@


1.20
log
@Replace regular expression package with Henry Spencer's latest version
(extracted from Tcl 8.4.1 release, as Henry still hasn't got round to
making it a separate library).  This solves a performance problem for
multibyte, as well as upgrading our regexp support to match recent Tcl
and nearly match recent Perl.
@
text
@d7 1
a7 1
#    $Header$
@


1.19
log
@Remove retest Makefile entry because it does not compile.
@
text
@d4 1
a4 1
#    Makefile for regex
d7 1
a7 1
#    $Header: /cvsroot/pgsql-server/src/backend/regex/Makefile,v 1.18 2002/09/03 21:45:42 petere Exp $
a14 2
override CPPFLAGS += -DPOSIX_MISTAKE 

a15 1
DEBUGOBJ += ../utils/mb/SUBSYS.o
d22 2
a23 1
regexec.o: regexec.c engine.c
d25 1
a25 5
# retest will not compile because multibyte is now enabled by default
# and the multibyte calls require /mmgr, /adt, and other calls that
# are complex for linkage,  bjm 2002-09-16
#retest: retest.o SUBSYS.o $(DEBUGOBJ)
#	$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@@
d28 1
a28 1
	rm -f SUBSYS.o $(OBJS) retest retest.o
@


1.18
log
@Remove all traces of multibyte and locale options.  Clean up comments
referring to "multibyte" where it really means character encoding.
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql-server/src/backend/regex/Makefile,v 1.17 2001/10/04 04:16:16 ishii Exp $
d27 5
a31 2
retest: retest.o SUBSYS.o $(DEBUGOBJ)
	$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@@
@


1.17
log
@Add dependency for regexec.c
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql/src/backend/regex/Makefile,v 1.16 2000/11/30 20:36:10 petere Exp $
a16 2
DEBUGOBJ =

a17 2

ifdef MULTIBYTE
a18 1
endif
a29 3
depend dep:
	$(CC) -MM $(CFLAGS) *.c >depend

a31 4

ifeq (depend,$(wildcard depend))
include depend
endif
@


1.16
log
@Make all commands that link a program look like

$(CC) $(CFLAGS) $(LDFLAGS) <object files> <extra-libraries> $(LIBS) -o $@@

This form seemed to be the most portable, readable, and logical, but in any
case it's better than having a dozen different ones in the tree.
@
text
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/regex/Makefile,v 1.15 2000/10/20 21:03:46 petere Exp $
d29 2
@


1.15
log
@Add support for VPATH builds, that is, building somewhere else than in the
source directory.  This involves mostly makefiles using $(srcdir) when they
might have used ".".  (Regression tests don't work with this, yet.)

Sort out usage of CPPFLAGS, CFLAGS (and CXXFLAGS).  Add "override" keyword
in most places, to preserve necessary flags even when the user overrode the
flags.
@
text
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/regex/Makefile,v 1.14 2000/08/31 16:10:25 petere Exp $
d31 1
a31 1
	$(CC) -o $@@ $^ $(CFLAGS) $(LDFLAGS)
@


1.14
log
@Fix relative path references so that make knowns which dependencies refer
to one another. Sort out builddir vs srcdir variable namings. Remove some
now obsoleted make variables.
@
text
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/regex/Makefile,v 1.13 2000/05/29 05:44:58 tgl Exp $
d15 1
a15 1
CPPFLAGS += -DPOSIX_MISTAKE 
d31 1
a31 1
	$(CC) $(CFLAGS) -o retest retest.o SUBSYS.o $(DEBUGOBJ)
@


1.13
log
@Generated header files parse.h and fmgroids.h are now copied into
the src/include tree, so that -I backend is no longer necessary anywhere.
Also, clean up some bit rot in contrib tree.
@
text
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/regex/Makefile,v 1.12 2000/01/19 02:58:53 petere Exp $
d11 3
a13 2
SRCDIR = ../..
include ../../Makefile.global
d15 1
a15 1
CFLAGS += -DPOSIX_MISTAKE 
d31 1
a31 1
	$(CC) -o retest retest.o SUBSYS.o $(DEBUGOBJ)
a41 1

@


1.12
log
@Removed MBFLAGS from makefiles since it's now done in include/config.h.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/regex/Makefile,v 1.11 1999/12/13 22:33:23 momjian Exp $
a13 1
CFLAGS += -I..
@


1.11
log
@New LDOUT makefile variable for QNX os.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/regex/Makefile,v 1.10 1999/12/09 19:14:55 momjian Exp $
a21 1
CFLAGS+= $(MBFLAGS)
@


1.10
log
@Make LD -r as macros that can be changed for QNX.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/regex/Makefile,v 1.9 1999/05/21 06:27:54 ishii Exp $
d29 1
a29 1
	$(LD) $(LDREL) -o SUBSYS.o $(OBJS)
@


1.9
log
@add retest, a regex testing program
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/regex/Makefile,v 1.8 1998/07/26 04:30:34 scrappy Exp $
d29 1
a29 1
	$(LD) -r -o SUBSYS.o $(OBJS)
@


1.8
log
@
From: t-ishii@@sra.co.jp

As Bruce mentioned, this is due to the conflict among changes we made.
Included patches should fix the problem(I changed all MB to
MULTIBYTE). Please let me know if you have further problem.

P.S. I did not include pathces to configure and gram.c to save the
file size(configure.in and gram.y modified).
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/regex/Makefile,v 1.7 1998/07/24 03:31:24 scrappy Exp $
d17 2
d20 1
d23 1
d31 3
d38 1
a38 1
	rm -f SUBSYS.o $(OBJS) 
@


1.7
log
@
I really hope that I haven't missed anything in this one...

From: t-ishii@@sra.co.jp

Attached are patches to enhance the multi-byte support.  (patches are
against 7/18 snapshot)

* determine encoding at initdb/createdb rather than compile time

Now initdb/createdb has an option to specify the encoding. Also, I
modified the syntax of CREATE DATABASE to accept encoding option. See
README.mb for more details.

For this purpose I have added new column "encoding" to pg_database.
Also pg_attribute and pg_class are changed to catch up the
modification to pg_database.  Actually I haved added pg_database_mb.h,
pg_attribute_mb.h and pg_class_mb.h. These are used only when MB is
enabled. The reason having separate files is I couldn't find a way to
use ifdef or whatever in those files. I have to admit it looks
ugly. No way.

* support for PGCLIENTENCODING when issuing COPY command

commands/copy.c modified.

* support for SQL92 syntax "SET NAMES"

See gram.y.

* support for LATIN2-5
* add UNICODE regression test case
* new test suite for MB

New directory test/mb added.

* clean up source files

Basic idea is to have MB's own subdirectory for easier maintenance.
These are include/mb and backend/utils/mb.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/regex/Makefile,v 1.6 1998/04/06 00:24:39 momjian Exp $
d18 2
a19 2
ifdef MB
CFLAGS += -DMB=$(MB)
@


1.6
log
@Hi,

Attached you'll find a (big) patch that fixes make dep and make
depend in all Makefiles where I found it to be appropriate.

It also removes the dependency in Makefile.global for NAMEDATALEN
and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
a little smarter.

This no longer requires initdb.sh that is turned into initdb with
a sed script when installing Postgres, hence initdb.sh should be
renamed to initdb (after the patch has been applied :-) )

This patch is against the 6.3 sources, as it took a while to
complete.

Please review and apply,

Cheers,

Jeroen van Vianen
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/regex/Makefile,v 1.5 1998/03/15 07:38:14 scrappy Exp $
a18 1
OBJS += utils.o wstrcmp.o wstrncmp.o
@


1.5
log
@From: t-ishii@@sra.co.jp

Included are patches intended for allowing PostgreSQL to handle
multi-byte charachter sets such as EUC(Extende Unix Code), Unicode and
Mule internal code. With the MB patch you can use multi-byte character
sets in regexp and LIKE. The encoding system chosen is determined at
the compile time.

To enable the MB extension, you need to define a variable "MB" in
Makefile.global or in Makefile.custom. For further information please
take a look at README.mb under doc directory.

(Note that unlike "jp patch" I do not use modified GNU regexp any
more. I changed Henry Spencer's regexp coming with PostgreSQL.)
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/regex/Makefile,v 1.4 1997/12/20 00:26:58 scrappy Exp $
d14 2
a15 4
INCLUDE_OPT = -I.. 

CFLAGS+=$(INCLUDE_OPT)
CFLAGS+=-DPOSIX_MISTAKE 
d29 1
a29 1
	$(CC) -MM $(INCLUDE_OPT) *.c >depend
@


1.4
log
@Major cleanout of PORTNAME variables from Makefiles...bound to screw up
some of the ports...
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/regex/Makefile,v 1.3 1997/12/19 02:06:41 scrappy Exp $
d20 4
@


1.3
log
@More cleanups.  I can now compile without PORTNAME being defined n
Makefile.global.

End result, if all goes well, should allow for much easier porting, since
there will no longer be a concept of a "port".  Most, if not everything,
*should* be determined by configure, or by the compiler itself.  Still
work to be done though :)
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/regex/Makefile,v 1.2 1996/11/09 06:20:58 momjian Exp $
a14 4

ifdef PORTNAME
INCLUDE_OPT+=-I../port/$(PORTNAME) 
endif
@


1.2
log
@Makefile cleanup after reorganization
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/regex/Makefile,v 1.1 1996/10/27 09:51:27 bryanh Exp $
d14 5
a18 3
INCLUDE_OPT = -I.. \
              -I../port/$(PORTNAME) \
              -I../../include
a21 1

@


1.1
log
@Simplify make files, add full dependencies.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/access/common/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:09 scrappy Exp $
a15 1
              -I../include \
@
