blob: 72871343e83634a55188da155b08d3d25bdd0fdb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#-------------------------------------------------------------------------
#
# Makefile.inc--
# Makefile for the bootstrap module
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:14 scrappy Exp $
#
#
# Another kinda weird Makefile.inc cause we need two
# scanner/parsers in the backend and most yaccs and lexs
# don't have the prefix option.
#
# sed files are HACK CITY! - redo...
#
#-------------------------------------------------------------------------
bootdir= $(CURDIR)/bootstrap
VPATH:= $(VPATH):$(bootdir)
#BOOTYACCS= bootstrap_tokens.h bootparse.c
BOOTYACCS= bootparse.c
SRCS_BOOTSTRAP= bootparse.c bootscanner.c bootstrap.c
$(BOOTYACCS): bootparse.y
cd $(objdir); \
$(YACC) $(YFLAGS) $<; \
sed -f $(bootdir)/boot.sed < y.tab.c > bootparse.c; \
mv y.tab.h bootstrap_tokens.h; \
rm -f y.tab.c
$(objdir)/bootparse.o: bootparse.c
$(cc_inobjdir)
bootscanner.c: bootscanner.l
cd $(objdir); \
$(LEX) $<; \
sed -f $(bootdir)/boot.sed < lex.yy.c > bootscanner.c; \
rm -f lex.yy.c
$(objdir)/bootscanner.o: bootscanner.c
$(cc_inobjdir)
#
# The following insures that y.tab.h gets made as bootstrap.c
# includes it
#
bootstrap.o: $(BOOTYACCS)
POSTGRES_DEPEND+= $(BOOTYACCS) bootscanner.c
CLEANFILES+= bootscanner.c $(BOOTYACCS) y.tab.h y.output
HEADERS+= bootstrap.h
|