Update ecpg to use snprintf

This commit is contained in:
Bruce Momjian 2000-02-28 23:28:41 +00:00
parent 9418e701b3
commit da8b899d6c
3 changed files with 10 additions and 1 deletions

View File

@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.49 2000/01/20 21:50:56 petere Exp $
# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.50 2000/02/28 23:28:40 momjian Exp $
#
#-------------------------------------------------------------------------
@ -86,6 +86,7 @@ distclean: clean
include/version.h \
interfaces/libpq/Makefile \
interfaces/ecpg/lib/Makefile \
interfaces/ecpg/preproc/Makefile \
interfaces/libpq++/Makefile \
interfaces/libpgeasy/Makefile \
interfaces/libpgtcl/Makefile \

View File

@ -1289,6 +1289,7 @@ AC_OUTPUT(
include/version.h
interfaces/libpq/Makefile
interfaces/ecpg/lib/Makefile
interfaces/ecpg/preproc/Makefile
interfaces/libpq++/Makefile
interfaces/libpgeasy/Makefile
interfaces/libpgtcl/Makefile

View File

@ -14,6 +14,13 @@ OBJ=preproc.o pgc.o type.o ecpg.o ecpg_keywords.o output.o\
all:: ecpg
ifneq (@SNPRINTF@,)
OBJS+=$(SRCDIR)/backend/port/snprintf.o
$(SRCDIR)/backend/port/snprintf.o:
$(MAKE) -C $(SRCDIR)/backend/port snprintf.o
endif
# Rule that really do something.
ecpg: $(OBJ)
$(CC) -o ecpg $(OBJ) $(LEXLIB) $(LDFLAGS)