1 #-------------------------------------------------------------------------
4 # Makefile for utils/misc
7 # $PostgreSQL: pgsql/src/backend/utils/misc/Makefile,v 1.23 2005/02/26 18:43:33 tgl 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 ps_status.o superuser.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)"'
29 $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
31 # guc-file is compiled as part of guc
32 guc.o: $(srcdir)/guc-file.c
34 $(srcdir)/guc-file.c: guc-file.l
36 $(FLEX) $(FLEXFLAGS) $<
37 sed -e 's/^yy/GUC_yy/g' -e 's/\([^a-zA-Z0-9_]\)yy/\1GUC_yy/g' lex.yy.c > $@
40 @$(missing) flex $< $@
43 # Note: guc-file.c is not deleted by 'make clean',
44 # since we want to ship it in distribution tarballs.
46 rm -f SUBSYS.o $(OBJS)
50 $(CC) -MM $(CFLAGS) *.c >depend
52 ifeq (depend,$(wildcard depend))