From da8b899d6c90f184707ebe39d4a260de94cabff6 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 28 Feb 2000 23:28:41 +0000 Subject: Update ecpg to use snprintf --- src/interfaces/ecpg/preproc/Makefile | 49 ----------------------------- src/interfaces/ecpg/preproc/Makefile.in | 56 +++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 49 deletions(-) delete mode 100644 src/interfaces/ecpg/preproc/Makefile create mode 100644 src/interfaces/ecpg/preproc/Makefile.in (limited to 'src/interfaces') diff --git a/src/interfaces/ecpg/preproc/Makefile b/src/interfaces/ecpg/preproc/Makefile deleted file mode 100644 index 3fa7307de21..00000000000 --- a/src/interfaces/ecpg/preproc/Makefile +++ /dev/null @@ -1,49 +0,0 @@ -SRCDIR= ../../.. -include $(SRCDIR)/Makefile.global - -MAJOR_VERSION=2 -MINOR_VERSION=7 -PATCHLEVEL=0 - -CFLAGS+=-I../include -DMAJOR_VERSION=$(MAJOR_VERSION) \ - -DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL) \ - -DINCLUDE_PATH=\"$(HEADERDIR)\" -g - -OBJ=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 - -# Rule that really do something. -ecpg: $(OBJ) - $(CC) -o ecpg $(OBJ) $(LEXLIB) $(LDFLAGS) - -preproc.c preproc.h: preproc.y - $(YACC) $(YFLAGS) $< - mv y.tab.c preproc.c - mv y.tab.h preproc.h - -pgc.c: pgc.l - $(LEX) $< - mv lex.yy.c pgc.c - -clean: - rm -f *.o core a.out ecpg$(X) *~ *.output -# And the garbage that might have been left behind by partial build: - rm -f y.tab.c y.tab.h lex.yy.c -# make clean does not remove preproc.c, preproc.h, pgc.c since we want -# to ship those files in the distribution, for people with inadequate tools. - -install: all - $(INSTALL) $(INSTL_EXE_OPTS) ecpg$(X) $(BINDIR) - -uninstall: - rm -f $(BINDIR)/ecpg - -preproc.o: preproc.h ../include/ecpgtype.h keywords.c c_keywords.c ecpg_keywords.c -type.o: ../include/ecpgtype.h -pgc.o: ../include/ecpgtype.h keywords.c c_keywords.c ecpg_keywords.c preproc.h -keywords.o: ../include/ecpgtype.h preproc.h -c_keywords.o: ../include/ecpgtype.h preproc.h -ecpg_keywords.o: ../include/ecpgtype.h preproc.h - diff --git a/src/interfaces/ecpg/preproc/Makefile.in b/src/interfaces/ecpg/preproc/Makefile.in new file mode 100644 index 00000000000..d97a0717a95 --- /dev/null +++ b/src/interfaces/ecpg/preproc/Makefile.in @@ -0,0 +1,56 @@ +SRCDIR= ../../.. +include $(SRCDIR)/Makefile.global + +MAJOR_VERSION=2 +MINOR_VERSION=7 +PATCHLEVEL=0 + +CFLAGS+=-I../include -DMAJOR_VERSION=$(MAJOR_VERSION) \ + -DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL) \ + -DINCLUDE_PATH=\"$(HEADERDIR)\" -g + +OBJ=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 + +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) + +preproc.c preproc.h: preproc.y + $(YACC) $(YFLAGS) $< + mv y.tab.c preproc.c + mv y.tab.h preproc.h + +pgc.c: pgc.l + $(LEX) $< + mv lex.yy.c pgc.c + +clean: + rm -f *.o core a.out ecpg$(X) *~ *.output +# And the garbage that might have been left behind by partial build: + rm -f y.tab.c y.tab.h lex.yy.c +# make clean does not remove preproc.c, preproc.h, pgc.c since we want +# to ship those files in the distribution, for people with inadequate tools. + +install: all + $(INSTALL) $(INSTL_EXE_OPTS) ecpg$(X) $(BINDIR) + +uninstall: + rm -f $(BINDIR)/ecpg + +preproc.o: preproc.h ../include/ecpgtype.h keywords.c c_keywords.c ecpg_keywords.c +type.o: ../include/ecpgtype.h +pgc.o: ../include/ecpgtype.h keywords.c c_keywords.c ecpg_keywords.c preproc.h +keywords.o: ../include/ecpgtype.h preproc.h +c_keywords.o: ../include/ecpgtype.h preproc.h +ecpg_keywords.o: ../include/ecpgtype.h preproc.h + -- cgit v1.2.3