Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc823b1e

Browse files
author
Michael Meskes
committed
Added more patches by Cristif Petig.
1 parent5781dbc commitc823b1e

File tree

2 files changed

+73
-10
lines changed

2 files changed

+73
-10
lines changed

‎src/interfaces/ecpg/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,5 +1009,9 @@ Fri Nov 3 11:34:43 CET 2000
10091009

10101010
- Synced pgc.l with scan.l.
10111011
- Synced gram.y and preproc.y.
1012+
1013+
Sat Nov 4 17:42:43 CET 2000
1014+
1015+
- Added patch by Christof Petig to fix several small bugs.
10121016
- Set ecpg version to 2.8.0.
10131017
- Set library version to 3.2.0.

‎src/interfaces/ecpg/Makefile

Lines changed: 69 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,72 @@
1-
subdir = src/interfaces/ecpg
2-
top_builddir = ../../..
1+
subdir = src/interfaces/ecpg/preproc
2+
top_builddir = ../../../..
33
include$(top_builddir)/src/Makefile.global
44

5-
allinstallinstalldirsuninstalldepdependdistprep:
6-
$(MAKE) -C include$@
7-
$(MAKE) -C lib$@
8-
$(MAKE) -C preproc$@
5+
MAJOR_VERSION=2
6+
MINOR_VERSION=8
7+
PATCHLEVEL=0
98

10-
cleandistcleanmaintainer-clean:
11-
-$(MAKE) -C include$@
12-
-$(MAKE) -C lib$@
13-
-$(MAKE) -C preproc$@
9+
overrideCPPFLAGS+=-I$(srcdir)/../include -DMAJOR_VERSION=$(MAJOR_VERSION)\
10+
-DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL)\
11+
-DINCLUDE_PATH=\"$(includedir)\"
12+
# -DYYDEBUG -g
13+
14+
OBJS=preproc.o pgc.o type.o ecpg.o ecpg_keywords.o output.o\
15+
keywords.o c_keywords.o ../lib/typename.o descriptor.o variable.o
16+
17+
all: ecpg
18+
19+
ifdefSNPRINTF
20+
OBJS+=$(top_builddir)/src/backend/port/snprintf.o
21+
22+
$(top_builddir)/src/backend/port/snprintf.o:
23+
$(MAKE) -C$(top_builddir)/src/backend/port snprintf.o
24+
endif
25+
26+
27+
ecpg:$(OBJS)
28+
$(CC) -o$@$^$(LDFLAGS)
29+
30+
$(srcdir)/preproc.c$(srcdir)/preproc.h: preproc.y
31+
$(YACC) -d$(YFLAGS)$<
32+
mv y.tab.c$(srcdir)/preproc.c
33+
mv y.tab.h$(srcdir)/preproc.h
34+
35+
$(srcdir)/pgc.c: pgc.l
36+
ifdefFLEX
37+
$(FLEX) $(FLEXFLAGS) -o'$@' $<
38+
else
39+
@$(missing) flex $< $@
40+
endif
41+
42+
distprep:$(srcdir)/preproc.c$(srcdir)/preproc.h$(srcdir)/pgc.c
43+
44+
install: all installdirs
45+
$(INSTALL_PROGRAM) ecpg$(X)$(DESTDIR)$(bindir)
46+
47+
installdirs:
48+
$(mkinstalldirs)$(DESTDIR)$(bindir)
49+
50+
uninstall:
51+
rm -f$(DESTDIR)$(bindir)/ecpg$(X)
52+
53+
cleandistclean:
54+
rm -f*.o ecpg$(X)
55+
# garbage from partial builds
56+
@rm -f y.tab.c y.tab.h
57+
# garbage from development
58+
@rm -f core a.out *~ *.output *.tab.c
59+
60+
# `make clean' does not remove preproc.c, preproc.h, or pgc.c since we
61+
# want to ship those files in the distribution for people with
62+
# inadequate tools.
63+
maintainer-clean: distclean
64+
rm -f$(srcdir)/preproc.c$(srcdir)/preproc.h$(srcdir)/pgc.c
65+
66+
67+
dependdep: preproc.c pgc.c
68+
$(CC) -MM$(CFLAGS)*.c>depend
69+
70+
ifeq (depend,$(wildcard depend))
71+
include depend
72+
endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp