2000-10-20 23:04:27 +02:00
|
|
|
# $Header: /cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.19 2000/10/20 21:03:55 petere Exp $
|
2000-08-25 12:00:35 +02:00
|
|
|
|
|
|
|
subdir = src/backend/utils/misc
|
|
|
|
top_builddir = ../../../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
1996-11-02 03:06:47 +01:00
|
|
|
|
2000-06-04 03:44:38 +02:00
|
|
|
OBJS = database.o superuser.o guc.o guc-file.o ps_status.o
|
1996-11-02 03:06:47 +01:00
|
|
|
|
2000-08-25 12:00:35 +02:00
|
|
|
# This location might depend on the installation directories. Therefore
|
|
|
|
# we can't subsitute it into config.h.
|
|
|
|
ifdef krb_srvtab
|
2000-10-20 23:04:27 +02:00
|
|
|
override CPPFLAGS += -DPG_KRB_SRVTAB='"$(krb_srvtab)"'
|
2000-08-25 12:00:35 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
1996-11-02 03:06:47 +01:00
|
|
|
all: SUBSYS.o
|
|
|
|
|
|
|
|
SUBSYS.o: $(OBJS)
|
1999-12-13 23:35:27 +01:00
|
|
|
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
|
1996-11-02 03:06:47 +01:00
|
|
|
|
2000-10-20 23:04:27 +02:00
|
|
|
$(srcdir)/guc-file.c: guc-file.l
|
2000-08-28 13:53:23 +02:00
|
|
|
ifdef FLEX
|
|
|
|
$(FLEX) $(FLEXFLAGS) $<
|
|
|
|
sed -e 's/^yy/GUC_yy/g' -e 's/\([^a-zA-Z0-9_]\)yy/\1GUC_yy/g' lex.yy.c > $@
|
2000-06-01 16:52:25 +02:00
|
|
|
rm -f lex.yy.c
|
2000-08-28 13:53:23 +02:00
|
|
|
else
|
|
|
|
@$(missing) flex $< $@
|
|
|
|
endif
|
2000-05-31 02:28:42 +02:00
|
|
|
|
2000-06-01 16:52:25 +02:00
|
|
|
# Note: guc-file.c is not deleted by 'make clean',
|
|
|
|
# since we want to ship it in distribution tarballs.
|
1996-11-02 03:06:47 +01:00
|
|
|
clean:
|
2000-08-28 13:53:23 +02:00
|
|
|
rm -f SUBSYS.o $(OBJS)
|
|
|
|
@rm -f lex.yy.c
|
1996-11-02 03:06:47 +01:00
|
|
|
|
2000-06-01 16:52:25 +02:00
|
|
|
depend dep:
|
|
|
|
$(CC) -MM $(CFLAGS) *.c >depend
|
|
|
|
|
1996-11-02 03:06:47 +01:00
|
|
|
ifeq (depend,$(wildcard depend))
|
|
|
|
include depend
|
|
|
|
endif
|