Fix oversight in previous error-reporting patch; mustn't pfree path string
[PostgreSQL.git] / src / backend / bootstrap / Makefile
blob8b3810132b951c016b63dd2865ca5db0d8fd6d4e
1 #-------------------------------------------------------------------------
3 # Makefile for the bootstrap module
5 # $PostgreSQL$
7 #-------------------------------------------------------------------------
9 subdir = src/backend/bootstrap
10 top_builddir = ../../..
11 include $(top_builddir)/src/Makefile.global
13 override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
15 OBJS= bootparse.o bootstrap.o
17 include $(top_srcdir)/src/backend/common.mk
20 # bootscanner is compiled as part of bootparse
21 bootparse.o: $(srcdir)/bootscanner.c
23 $(srcdir)/bootparse.c: bootparse.y
24 ifdef BISON
25 $(BISON) $(BISONFLAGS) -o $@ $<
26 else
27 @$(missing) bison $< $@
28 endif
30 $(srcdir)/bootscanner.c: bootscanner.l
31 ifdef FLEX
32 $(FLEX) $(FLEXFLAGS) -o'$@' $<
33 else
34 @$(missing) flex $< $@
35 endif
38 # bootparse.c and bootscanner.c are in the distribution tarball, so
39 # they are not cleaned here.