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


1.23
date	2008.03.18.16.24.50;	author petere;	state Exp;
branches;
next	1.22;

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

1.21
date	2007.01.20.15.25.29;	author petere;	state Exp;
branches;
next	1.20;

1.20
date	2006.08.19.13.42.40;	author meskes;	state Exp;
branches;
next	1.19;

1.19
date	2006.08.04.08.52.17;	author meskes;	state Exp;
branches;
next	1.18;

1.18
date	2006.08.02.14.19.14;	author meskes;	state Exp;
branches;
next	1.17;

1.17
date	2003.05.22.17.20.44;	author petere;	state Exp;
branches;
next	1.16;

1.16
date	2003.03.30.11.48.18;	author meskes;	state Exp;
branches;
next	1.15;

1.15
date	2003.03.16.10.42.53;	author meskes;	state Exp;
branches;
next	1.14;

1.14
date	2002.01.14.17.49.56;	author tgl;	state Exp;
branches;
next	1.13;

1.13
date	2000.11.07.08.52.22;	author meskes;	state Exp;
branches;
next	1.12;

1.12
date	2000.11.07.08.41.15;	author meskes;	state Exp;
branches;
next	1.11;

1.11
date	2000.08.31.16.11.32;	author petere;	state Exp;
branches;
next	1.10;

1.10
date	2000.07.19.16.30.11;	author petere;	state Exp;
branches;
next	1.9;

1.9
date	2000.06.28.18.29.37;	author petere;	state Exp;
branches;
next	1.8;

1.8
date	98.04.06.00.30.11;	author momjian;	state Exp;
branches;
next	1.7;

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

1.6
date	98.02.21.06.32.07;	author scrappy;	state Exp;
branches;
next	1.5;

1.5
date	98.02.18.07.16.58;	author thomas;	state Exp;
branches;
next	1.4;

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

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

1.2
date	98.02.10.16.36.54;	author scrappy;	state Exp;
branches;
next	1.1;

1.1
date	98.02.05.15.42.57;	author scrappy;	state Exp;
branches;
next	;


desc
@@


1.23
log
@Catch all errors in for and while loops in makefiles.  Don't ignore any
errors in any commands, including in various clean targets that have so far
been handled inconsistently.  make -i is available to ignore all errors in
a consistent and official way.
@
text
@subdir = src/interfaces/ecpg
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global

all install installdirs uninstall distprep:
	$(MAKE) -C include $@@
	$(MAKE) -C pgtypeslib $@@
	$(MAKE) -C ecpglib $@@
	$(MAKE) -C compatlib $@@
	$(MAKE) -C preproc $@@

clean distclean maintainer-clean:
	$(MAKE) -C include $@@
	$(MAKE) -C pgtypeslib $@@
	$(MAKE) -C ecpglib $@@
	$(MAKE) -C compatlib $@@
	$(MAKE) -C preproc $@@
	$(MAKE) -C test clean

check checktcp installcheck: all
	$(MAKE) -C test $@@
@


1.22
log
@Remove remains of old depend target.
@
text
@d13 6
a18 6
	-$(MAKE) -C include $@@
	-$(MAKE) -C pgtypeslib $@@
	-$(MAKE) -C ecpglib $@@
	-$(MAKE) -C compatlib $@@
	-$(MAKE) -C preproc $@@
	-$(MAKE) -C test clean
@


1.21
log
@Only build ecpg test code when the test is to be performed, in line with
other test code.
@
text
@d5 1
a5 1
all install installdirs uninstall dep depend distprep:
@


1.20
log
@More SoC stuff
@
text
@a10 1
	$(MAKE) -C test $@@
@


1.19
log
@Regression test updates and fixes
@
text
@d21 1
a21 1
check checktcp: all
@


1.18
log
@And finally the Makefiles
@
text
@d21 1
a21 1
check: all
@


1.17
log
@Fix compilation on Cygwin.
@
text
@d11 1
d20 3
@


1.16
log
@Moved Informix stuff to its own compat library. Interval datetype is now fully functional.
@
text
@d7 1
a8 1
	$(MAKE) -C pgtypeslib $@@
d14 1
a15 1
	-$(MAKE) -C pgtypeslib $@@
@


1.15
log
@Started working on a seperate pgtypes library. First test work. PLEASE test compilation on iother systems.
@
text
@d9 1
d16 1
@


1.14
log
@Ensure that ecpg/test is cleaned by higher-level 'make clean'.
@
text
@d7 2
a8 1
	$(MAKE) -C lib $@@
d13 2
a14 1
	-$(MAKE) -C lib $@@
@


1.13
log
@Undo incorrectly committed Makefile.
@
text
@d14 1
@


1.12
log
@Added more patches by Cristif Petig.
@
text
@d1 2
a2 2
subdir = src/interfaces/ecpg/preproc
top_builddir = ../../../..
d5 9
a13 68
MAJOR_VERSION=2
MINOR_VERSION=8
PATCHLEVEL=0

override CPPFLAGS+=-I$(srcdir)/../include -DMAJOR_VERSION=$(MAJOR_VERSION) \
	-DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL) \
	-DINCLUDE_PATH=\"$(includedir)\" 
# -DYYDEBUG -g

OBJS=preproc.o pgc.o type.o ecpg.o ecpg_keywords.o output.o\
    keywords.o c_keywords.o ../lib/typename.o descriptor.o variable.o

all: ecpg

ifdef SNPRINTF
OBJS+=$(top_builddir)/src/backend/port/snprintf.o

$(top_builddir)/src/backend/port/snprintf.o:
	$(MAKE) -C $(top_builddir)/src/backend/port snprintf.o
endif


ecpg: $(OBJS)
	$(CC) -o $@@ $^ $(LDFLAGS)

$(srcdir)/preproc.c $(srcdir)/preproc.h: preproc.y
	$(YACC) -d $(YFLAGS) $<
	mv y.tab.c $(srcdir)/preproc.c
	mv y.tab.h $(srcdir)/preproc.h

$(srcdir)/pgc.c: pgc.l
ifdef FLEX
	$(FLEX) $(FLEXFLAGS) -o'$@@' $<
else
	@@$(missing) flex $< $@@
endif

distprep: $(srcdir)/preproc.c $(srcdir)/preproc.h $(srcdir)/pgc.c

install: all installdirs
	$(INSTALL_PROGRAM) ecpg$(X) $(DESTDIR)$(bindir)

installdirs:
	$(mkinstalldirs) $(DESTDIR)$(bindir)

uninstall:
	rm -f $(DESTDIR)$(bindir)/ecpg$(X)

clean distclean:
	rm -f *.o ecpg$(X)
# garbage from partial builds
	@@rm -f y.tab.c y.tab.h
# garbage from development
	@@rm -f core a.out *~ *.output *.tab.c

# `make clean' does not remove preproc.c, preproc.h, or pgc.c since we
# want to ship those files in the distribution for people with
# inadequate tools.
maintainer-clean: distclean
	rm -f $(srcdir)/preproc.c $(srcdir)/preproc.h $(srcdir)/pgc.c


depend dep: preproc.c pgc.c
	$(CC) -MM $(CFLAGS) *.c >depend

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


1.11
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
@d1 2
a2 2
subdir = src/interfaces/ecpg
top_builddir = ../../..
d5 68
a72 9
all install installdirs uninstall dep depend distprep:
	$(MAKE) -C include $@@
	$(MAKE) -C lib $@@
	$(MAKE) -C preproc $@@

clean distclean maintainer-clean:
	-$(MAKE) -C include $@@
	-$(MAKE) -C lib $@@
	-$(MAKE) -C preproc $@@
@


1.10
log
@Add distprep target to take some of the job of the release_prep script.
The latter updated accordingly. Also add `dist' and `distcheck' targets
to play with, but caveat packager.

Updated backend/bootstrap and backend/parser makefile to make them
marginally builddir aware and fix the usual set of things.

Add rule to automatically remake config.h dependent on config.h.in and
config.status. (Adopted from Autoconf manual and about every other
package.) On a good day we should now have a complete and accurate set
of dependencies throughout everything.
@
text
@d3 1
a3 1
include ../../Makefile.global
@


1.9
log
@Makefile cleanup for interface tree. Now essentially with all the
standard targets and behaviour. Replaced Makefile.in's with
Makefile's and declared the respective variables in Makefile.global.

maintainer-clean target now available at top level, although it does
not work in the backend tree yet.

Cleanup pass over Makefile.shlib, renamed some targets and variables.
The shared library symlink tests are now done by make, not the shell.

ecpg: Remove one warning in sloppy flex output.

PL/Perl and Perl interface: the MakeMaker documentation is confusing,
the realclean target *does* "delete derived files", but it also
uninstalls them. Don't use that.

The submake targets in the various bin directories that update libpq
should `make all', not `make libpq.a'. That is a) unportable, and
b) doesn't build the shared library.
@
text
@d5 1
a5 1
all install installdirs uninstall dep depend:
@


1.8
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
@d1 5
a5 1
all install uninstall clean dep depend:
d9 5
@


1.7
log
@+ Sat Feb 21 19:10:55 CET 1998
+
+       - use char[] as string not as array of bytes that is integers
+
+ Sun Feb 22 16:37:36 CET 1998
+
+       - use long for all size variables
+       - added execute immediate statement
+
+ Sun Feb 22 20:41:32 CET 1998
+
+       - use varcharsize = 1 for all simple types, 0 means pointer, > 1
+         means array if type is char resp. unsigned char
+
+ Thu Feb 24 12:26:12 CET 1998
+
+       - allow 'go to' in whenever statement as well as 'goto'
+       - new argument 'stop' for whenever statement

From: Michael Meskes <meskes@@topsystem.de>
@
text
@d1 1
a1 1
all install uninstall clean:
@


1.6
log
@First step done,

    below  is  the patch to have views to override the permission
    checks for the accessed tables. Now we can do the following:

    CREATE VIEW db_user AS SELECT
         usename,
         usesysid,
         usecreatedb,
         usetrace,
         usecatupd,
         '**********'::text as passwd,
         valuntil
        FROM pg_user;

    REVOKE ALL ON pg_user FROM public;
    REVOKE ALL ON db_user FROM public;
    GRANT SELECT ON db_user TO public;
@
text
@a0 2
SUBDIRS = include lib preproc doc

d2 1
@


1.5
log
@Remove inclusion of the doc make. Looks like all of the man pages are
 in the usual man page source directory anyway. Source tree now builds.
@
text
@a3 1
	$(MAKE) -C include $@@
a5 1
#	$(MAKE) -C doc $@@
@


1.4
log
@Remove configure code from ecpg, as well as remove the 'for' loop from the
Makefile, as it isn't appropriate for GNUmake
@
text
@d7 1
a7 1
	$(MAKE) -C doc $@@
@


1.3
log
@From: Michael Meskes <meskes@@topsystem.de>

Cleanups for ecpg, as well as a missing patch so that its configured in
@
text
@d4 4
a7 1
	for i in $(SUBDIRS); do ( cd $$i; make $@@ ); done
@


1.2
log
@Updated ECPG From: Michael Meskes <meskes@@topsystem.de>
@
text
@d1 1
a1 1
SUBDIRS = include lib preproc
@


1.1
log
@From: Michael Meskes <meskes@@topsystem.de>

Well this is not really a patch. But I mananged to get Linus' old Postgres95
precompiler to compile and work with PostgreSQL. The next step would be to
collect bug/missing feature reports and to put it into the distribution so
that it is made with the standard make procedure.

Warning! So far it is not tested much and it does not install correctly. But
I was able to create a small binary with it.
@
text
@d1 1
a1 1
SUBDIRS = src/include src/lib src/preproc
d3 1
a3 1
all install uninstall clean::
@
