OSDN Git Service

Update ecpg to use snprintf
authorBruce Momjian <bruce@momjian.us>
Mon, 28 Feb 2000 23:28:41 +0000 (23:28 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 28 Feb 2000 23:28:41 +0000 (23:28 +0000)
src/GNUmakefile.in
src/configure.in
src/interfaces/ecpg/preproc/Makefile.in [moved from src/interfaces/ecpg/preproc/Makefile with 90% similarity]

index ea65315..263cada 100644 (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 \
index 5a5e3cf..fc91938 100644 (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
similarity index 90%
rename from src/interfaces/ecpg/preproc/Makefile
rename to src/interfaces/ecpg/preproc/Makefile.in
index 3fa7307..d97a071 100644 (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)