# ----------------------------------------------------------------
#	support.mkf
#
#	$Header: /private/postgres/newconf/FILES/RCS/support.mkf,v 1.47 1992/06/23 18:20:12 mer Exp $
# ----------------------------------------------------------------

# files.support

# ----------------
#	GENBKI is the script used to generate the .bki files from
#	the .h files in lib/H/catalog
# ----------------
GENBKI=$(SD)/lib/Gen/genbki.sh

# ----------------
#	DBDB_SRC is are the files in lib/H/catalog which are
#	used to generate dbdb.bki, the shared database initialization
#	script fed to support/backend by createdb.
#
#	Note: these are listed in the order they used to occur in
#		the original dbdb.bki script, with the exception of
#		pg_log.h and pg_time.h
# ----------------
BKISRC= $(SD)/lib/H/catalog

DBDB_SRC= \
	$(BKISRC)/pg_database.h \
	$(BKISRC)/pg_demon.h \
	$(BKISRC)/pg_magic.h \
	$(BKISRC)/pg_defaults.h \
	$(BKISRC)/pg_variable.h \
	$(BKISRC)/pg_server.h \
	$(BKISRC)/pg_user.h \
	$(BKISRC)/pg_log.h \
	$(BKISRC)/pg_time.h

# ----------------
#	LOCAL_SRC is are the files in lib/H/catalog which are
#	used to generate local.bki, the private database initialization
#	script fed to support/backend by createdb.
#
#	Note: these are listed in the order they used to occur in
#		the original local.bki script.
# ----------------
LOCAL_SRC= \
	$(BKISRC)/pg_proc.h \
	$(BKISRC)/pg_type.h \
	$(BKISRC)/pg_attribute.h \
	$(BKISRC)/pg_relation.h \
	$(BKISRC)/pg_inherits.h \
	$(BKISRC)/pg_index.h \
	$(BKISRC)/pg_version.h \
	$(BKISRC)/pg_statistic.h \
	$(BKISRC)/pg_operator.h \
	$(BKISRC)/pg_opclass.h \
	$(BKISRC)/pg_am.h \
	$(BKISRC)/pg_amop.h \
	$(BKISRC)/pg_amproc.h \
	$(BKISRC)/pg_language.h \
	$(BKISRC)/pg_parg.h \
	$(BKISRC)/pg_aggregate.h \
	$(BKISRC)/pg_ipl.h \
	$(BKISRC)/pg_inheritproc.h \
	$(BKISRC)/pg_platter.h \
	$(BKISRC)/pg_plmap.h \
	$(BKISRC)/pg_prs2rule.h \
	$(BKISRC)/pg_prs2plans.h \
	$(BKISRC)/pg_prs2stub.h \
	$(BKISRC)/pg_rewrite.h \
	$(BKISRC)/pg_listener.h \
        $(BKISRC)/pg_naming.h \
        $(BKISRC)/pg_lobj.h \
        $(BKISRC)/indexing.h

# -----------------
#       pg_uid target
# -----------------
PG_UID= $(OD)/support/pg_uid.o

# ----------------
#	libpq targets
#
#	Note: some of the lib/libpq objects here are also found listed
#	in libraries.mkf because they are used by both the backend
#	and the frontend library libpq.a
# ----------------
LIBPQ= \
	$(OD)/lib/libpq/fe-dumpdata.o	\
	$(OD)/lib/libpq/fe-pqstubs.o	\
	$(OD)/lib/libpq/fe-pqexec.o	\
	$(OD)/lib/libpq/portal.o	\
	$(OD)/lib/libpq/portalbuf.o	\
	$(OD)/lib/libpq/pqcomm.o	\
	$(OD)/lib/libpq/pqpacket.o	\
        $(OD)/lib/libpq/fe-pqufs.o	\
	$(OD)/lib/C/simplelists.o

LIBPQDEPS= \
	$(OD)/lib/libpq/fe-dumpdata.d	\
	$(OD)/lib/libpq/fe-pqstubs.d	\
	$(OD)/lib/libpq/fe-pqexec.d	\
	$(OD)/lib/libpq/portal.d	\
	$(OD)/lib/libpq/portalbuf.d	\
	$(OD)/lib/libpq/pqcomm.d	\
	$(OD)/lib/libpq/pqpacket.d      \
        $(OD)/lib/libpq/fe-pqufs.d	\
	$(OD)/lib/C/simplelists.d

# ----------------
#	targets for createdb utilities
# ----------------
PG_VERSION= \
	$(OD)/support/pg_version.o	\
	$(OD)/utils/init/magic.o

PG_VERSIONDEPS= \
	$(OD)/support/pg_version.d	\
	$(OD)/utils/init/magic.d

PG_ID=\
	$(OD)/support/pg_id.o

# ----------------
#	destroydb targets
# ----------------
DESTROYDB= \
	$(OD)/support/destroydb.o

DESTROYDBDEPS= \
	$(OD)/support/destroydb.d

# ----------------
#	createdb targets
# ----------------
CREATEDB= \
	$(OD)/support/createdb.o

CREATEDB2DEPS= \
	$(OD)/support/createdb.d

# ----------------
#	terminal monitor targets
# ----------------
MONITOR= \
	$(OD)/support/monitor.o

MONITORDEPS= \
	$(OD)/support/monitor.d

# ----------------
#	xexemon
# ----------------
XEXEMON= \
	$(OD)/support/xexemon.o

XEXEMONDEPS= \
	$(OD)/support/xexemon.d
