Skip to content

Commit f27da05

Browse files
author
Michael Meskes
committed
Undo incorrectly committed Makefile.
1 parent df8789b commit f27da05

File tree

1 file changed

+10
-69
lines changed

1 file changed

+10
-69
lines changed

src/interfaces/ecpg/Makefile

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

5-
MAJOR_VERSION=2
6-
MINOR_VERSION=8
7-
PATCHLEVEL=0
5+
all install installdirs uninstall dep depend distprep:
6+
$(MAKE) -C include $@
7+
$(MAKE) -C lib $@
8+
$(MAKE) -C preproc $@
89

9-
override CPPFLAGS+=-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-
ifdef SNPRINTF
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-
ifdef FLEX
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-
clean distclean:
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-
depend dep: preproc.c pgc.c
68-
$(CC) -MM $(CFLAGS) *.c >depend
69-
70-
ifeq (depend,$(wildcard depend))
71-
include depend
72-
endif
10+
clean distclean maintainer-clean:
11+
-$(MAKE) -C include $@
12+
-$(MAKE) -C lib $@
13+
-$(MAKE) -C preproc $@

0 commit comments

Comments
 (0)