OSDN Git Service

53cc71285e5a6eb5082f76535c9984bd0e8aff0a
[pg-rex/syncrep.git] / src / backend / bootstrap / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile for the bootstrap module
4 #
5 # $PostgreSQL: pgsql/src/backend/bootstrap/Makefile,v 1.38 2009/08/28 20:26:18 petere Exp $
6 #
7 #-------------------------------------------------------------------------
8
9 subdir = src/backend/bootstrap
10 top_builddir = ../../..
11 include $(top_builddir)/src/Makefile.global
12
13 override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
14
15 OBJS= bootparse.o bootstrap.o 
16
17 include $(top_srcdir)/src/backend/common.mk
18
19
20 # bootscanner is compiled as part of bootparse
21 bootparse.o: bootscanner.c
22
23 bootparse.c: bootparse.y
24 ifdef BISON
25         $(BISON) $(BISONFLAGS) -o $@ $<
26 else
27         @$(missing) bison $< $@
28 endif
29
30 bootscanner.c: bootscanner.l
31 ifdef FLEX
32         $(FLEX) $(FLEXFLAGS) -o'$@' $<
33 else
34         @$(missing) flex $< $@
35 endif
36
37
38 # bootparse.c and bootscanner.c are in the distribution tarball, so
39 # they are not cleaned here.