1 #-------------------------------------------------------------------------
4 # Makefile for utils/misc
7 # $PostgreSQL: pgsql/src/backend/utils/misc/Makefile,v 1.28 2008/02/19 10:30:09 petere Exp $
9 #-------------------------------------------------------------------------
11 subdir = src/backend/utils/misc
12 top_builddir = ../../../..
13 include $(top_builddir)/src/Makefile.global
15 override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
17 OBJS = guc.o help_config.o pg_rusage.o ps_status.o superuser.o tzparser.o
19 # This location might depend on the installation directories. Therefore
20 # we can't subsitute it into pg_config.h.
22 override CPPFLAGS += -DPG_KRB_SRVTAB='"$(krb_srvtab)"'
25 include $(top_srcdir)/src/backend/common.mk
27 # guc-file is compiled as part of guc
28 guc.o: $(srcdir)/guc-file.c
30 $(srcdir)/guc-file.c: guc-file.l
32 $(FLEX) $(FLEXFLAGS) -o'$@' $<
34 @$(missing) flex $< $@
37 # Note: guc-file.c is not deleted by 'make clean',
38 # since we want to ship it in distribution tarballs.