1 #-------------------------------------------------------------------------
4 # Makefile for utils/misc
7 # $PostgreSQL: pgsql/src/backend/utils/misc/Makefile,v 1.25 2006/03/07 01:03:12 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 pg_rusage.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) -o'$@' $<
38 @$(missing) flex $< $@
41 # Note: guc-file.c is not deleted by 'make clean',
42 # since we want to ship it in distribution tarballs.
44 rm -f SUBSYS.o $(OBJS)
48 $(CC) -MM $(CFLAGS) *.c >depend
50 ifeq (depend,$(wildcard depend))