1 # $Header: /cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.19 2000/10/20 21:03:55 petere Exp $
3 subdir = src/backend/utils/misc
4 top_builddir = ../../../..
5 include $(top_builddir)/src/Makefile.global
7 OBJS = database.o superuser.o guc.o guc-file.o ps_status.o
9 # This location might depend on the installation directories. Therefore
10 # we can't subsitute it into config.h.
12 override CPPFLAGS += -DPG_KRB_SRVTAB='"$(krb_srvtab)"'
19 $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
21 $(srcdir)/guc-file.c: guc-file.l
23 $(FLEX) $(FLEXFLAGS) $<
24 sed -e 's/^yy/GUC_yy/g' -e 's/\([^a-zA-Z0-9_]\)yy/\1GUC_yy/g' lex.yy.c > $@
27 @$(missing) flex $< $@
30 # Note: guc-file.c is not deleted by 'make clean',
31 # since we want to ship it in distribution tarballs.
33 rm -f SUBSYS.o $(OBJS)
37 $(CC) -MM $(CFLAGS) *.c >depend
39 ifeq (depend,$(wildcard depend))