mirror of
https://github.com/postgres/postgres.git
synced 2026-07-07 23:46:24 -04:00
40 lines
841 B
Makefile
40 lines
841 B
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile for the bootstrap module
|
|
#
|
|
# src/backend/bootstrap/Makefile
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
subdir = src/backend/bootstrap
|
|
top_builddir = ../../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)
|
|
|
|
OBJS= bootparse.o bootstrap.o
|
|
|
|
include $(top_srcdir)/src/backend/common.mk
|
|
|
|
|
|
# bootscanner is compiled as part of bootparse
|
|
bootparse.o: bootscanner.c
|
|
|
|
bootparse.c: bootparse.y
|
|
ifdef BISON
|
|
$(BISON) $(BISONFLAGS) -o $@ $<
|
|
else
|
|
@$(missing) bison $< $@
|
|
endif
|
|
|
|
bootscanner.c: bootscanner.l
|
|
ifdef FLEX
|
|
$(FLEX) $(FLEXFLAGS) -o'$@' $<
|
|
else
|
|
@$(missing) flex $< $@
|
|
endif
|
|
|
|
|
|
# bootparse.c and bootscanner.c are in the distribution tarball, so
|
|
# they are not cleaned here.
|