mirror of
https://github.com/postgres/postgres.git
synced 2025-10-19 15:49:24 +03:00
Numerous flex and bison make rules have appeared in the source tree over time, and they are all virtually identical, so we can replace them by pattern rules with some variables for customization. Users of pgxs will also be able to benefit from this.
35 lines
933 B
Makefile
35 lines
933 B
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile--
|
|
# Makefile for utils/misc
|
|
#
|
|
# IDENTIFICATION
|
|
# src/backend/utils/misc/Makefile
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
subdir = src/backend/utils/misc
|
|
top_builddir = ../../../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)
|
|
|
|
OBJS = guc.o help_config.o pg_rusage.o ps_status.o rbtree.o \
|
|
superuser.o timeout.o tzparser.o
|
|
|
|
# This location might depend on the installation directories. Therefore
|
|
# we can't subsitute it into pg_config.h.
|
|
ifdef krb_srvtab
|
|
override CPPFLAGS += -DPG_KRB_SRVTAB='"$(krb_srvtab)"'
|
|
endif
|
|
|
|
include $(top_srcdir)/src/backend/common.mk
|
|
|
|
# guc-file is compiled as part of guc
|
|
guc.o: guc-file.c
|
|
|
|
# Note: guc-file.c is not deleted by 'make clean',
|
|
# since we want to ship it in distribution tarballs.
|
|
clean:
|
|
@rm -f lex.yy.c
|