2005-02-26 13:43:34 -05:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Makefile--
|
|
|
|
|
# Makefile for utils/misc
|
|
|
|
|
#
|
|
|
|
|
# IDENTIFICATION
|
2010-09-20 16:08:53 -04:00
|
|
|
# src/backend/utils/misc/Makefile
|
2005-02-26 13:43:34 -05:00
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
2000-08-25 06:00:35 -04:00
|
|
|
|
|
|
|
|
subdir = src/backend/utils/misc
|
|
|
|
|
top_builddir = ../../../..
|
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
1996-11-01 21:06:47 -05:00
|
|
|
|
2009-08-28 16:26:19 -04:00
|
|
|
override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)
|
2002-11-01 17:52:34 -05:00
|
|
|
|
2010-02-11 09:29:50 -05:00
|
|
|
OBJS = guc.o help_config.o pg_rusage.o ps_status.o superuser.o tzparser.o \
|
|
|
|
|
rbtree.o
|
1996-11-01 21:06:47 -05:00
|
|
|
|
2000-08-25 06:00:35 -04:00
|
|
|
# This location might depend on the installation directories. Therefore
|
2017-02-06 04:33:58 -05:00
|
|
|
# we can't substitute it into pg_config.h.
|
2000-08-25 06:00:35 -04:00
|
|
|
ifdef krb_srvtab
|
2000-10-20 17:04:27 -04:00
|
|
|
override CPPFLAGS += -DPG_KRB_SRVTAB='"$(krb_srvtab)"'
|
2000-08-25 06:00:35 -04:00
|
|
|
endif
|
|
|
|
|
|
2008-02-19 05:30:09 -05:00
|
|
|
include $(top_srcdir)/src/backend/common.mk
|
1996-11-01 21:06:47 -05:00
|
|
|
|
2002-11-01 17:52:34 -05:00
|
|
|
# guc-file is compiled as part of guc
|
2009-08-28 16:26:19 -04:00
|
|
|
guc.o: guc-file.c
|
2002-11-01 17:52:34 -05:00
|
|
|
|
2009-08-28 16:26:19 -04:00
|
|
|
guc-file.c: guc-file.l
|
2000-08-28 07:53:23 -04:00
|
|
|
ifdef FLEX
|
2006-03-06 20:03:12 -05:00
|
|
|
$(FLEX) $(FLEXFLAGS) -o'$@' $<
|
2000-08-28 07:53:23 -04:00
|
|
|
else
|
|
|
|
|
@$(missing) flex $< $@
|
|
|
|
|
endif
|
2000-05-30 20:28:42 -04:00
|
|
|
|
2000-06-01 10:52:25 -04:00
|
|
|
# Note: guc-file.c is not deleted by 'make clean',
|
|
|
|
|
# since we want to ship it in distribution tarballs.
|
2010-11-23 15:27:50 -05:00
|
|
|
clean:
|
2000-08-28 07:53:23 -04:00
|
|
|
@rm -f lex.yy.c
|