Makefile.inc 2.39 KB
Newer Older
1 2 3 4 5 6 7 8 9
#-------------------------------------------------------------------------
#
# Makefile.inc--
#    Makefile for the system catalogs module
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
10
#    $Header: /cvsroot/pgsql/src/backend/catalog/Attic/Makefile.inc,v 1.3 1996/09/26 04:22:49 momjian Exp $
11 12 13 14 15 16
#
#-------------------------------------------------------------------------

catdir=$(CURDIR)/catalog
VPATH:=$(VPATH):$(catdir)

17
cat_hdr_dir= ../include/catalog
18 19 20 21 22 23 24 25 26 27 28 29 30 31

SRCS_CATALOG= catalog.c heap.c index.c indexing.c \
	pg_aggregate.c pg_operator.c pg_proc.c pg_type.c

HEADERS+= catalog.h catname.h heap.h index.h indexing.h pg_aggregate.h \
	pg_am.h pg_amop.h pg_amproc.h pg_attribute.h pg_database.h \
	pg_defaults.h pg_demon.h pg_group.h pg_index.h pg_inheritproc.h \
	pg_inherits.h pg_ipl.h pg_language.h pg_listener.h \
	pg_log.h pg_magic.h pg_opclass.h pg_operator.h pg_parg.h \
	pg_proc.h pg_class.h \
	pg_rewrite.h pg_server.h pg_statistic.h pg_time.h pg_type.h \
	pg_user.h pg_variable.h pg_version.h

#
32
# The following is to create the .bki.source files.
33 34 35 36 37 38 39 40 41 42 43 44 45
# TODO: sort headers, (figure some automatic way of of determining
#  the bki sources?)
#
# XXX - more grot.  includes names and uid's in the header file.  FIX THIS
#  (not sure if i got this right - which do i need - or should i 
#   burn the whole damned thing)
#
ifdef ALLOW_PG_GROUP
BKIOPTS= -DALLOW_PG_GROUP
endif

GENBKI= $(catdir)/genbki.sh

46 47 48 49 50
GLOBALBKI_SRCS= $(addprefix $(cat_hdr_dir)/, \
                  pg_database.h pg_demon.h pg_magic.h pg_defaults.h \
                  pg_variable.h pg_server.h pg_user.h pg_hosts.h \
                  pg_group.h pg_log.h pg_time.h \
                 )
51

52 53 54 55 56 57 58 59
LOCALBKI_SRCS= $(addprefix $(cat_hdr_dir)/, \
                 pg_proc.h pg_type.h pg_attribute.h pg_class.h \
                 pg_inherits.h pg_index.h pg_version.h pg_statistic.h \
                 pg_operator.h pg_opclass.h pg_am.h pg_amop.h pg_amproc.h \
                 pg_language.h pg_parg.h \
                 pg_aggregate.h pg_ipl.h pg_inheritproc.h \
                 pg_rewrite.h pg_listener.h indexing.h \
                )
60

61 62
global1.bki.source: $(GENBKI) $(GLOBALBKI_SRCS)
	sh $(SHOPTS) $(GENBKI) $(BKIOPTS) $(GLOBALBKI_SRCS) > $(objdir)/$(@F)
63

64 65
local1_template1.bki.source: $(GENBKI) $(LOCALBKI_SRCS)
	sh $(SHOPTS) $(GENBKI) $(BKIOPTS) $(LOCALBKI_SRCS) > $(objdir)/$(@F)
66

67
CLEANFILES+= global1.bki.source local1_template1.bki.source
68