summaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorBruce Momjian2000-02-28 23:28:41 +0000
committerBruce Momjian2000-02-28 23:28:41 +0000
commitda8b899d6c90f184707ebe39d4a260de94cabff6 (patch)
tree3d007d4b57b45f55657f58d3f0f86886f583fddd /src/interfaces
parent9418e701b3001cb2969b086bf126fe4d027cd78b (diff)
Update ecpg to use snprintf
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/ecpg/preproc/Makefile.in (renamed from src/interfaces/ecpg/preproc/Makefile)7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/preproc/Makefile b/src/interfaces/ecpg/preproc/Makefile.in
index 3fa7307de21..d97a0717a95 100644
--- a/src/interfaces/ecpg/preproc/Makefile
+++ b/src/interfaces/ecpg/preproc/Makefile.in
@@ -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)