Makefile 2.5 KB
Newer Older
1 2 3 4 5 6
#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for catalog
#
# IDENTIFICATION
M
 
Marc G. Fournier 已提交
7
#    $Header: /cvsroot/pgsql/src/backend/catalog/Makefile,v 1.12 1998/07/26 04:30:20 scrappy Exp $
8 9 10 11 12 13
#
#-------------------------------------------------------------------------

SRCDIR = ../..
include ../../Makefile.global

B
Hi,  
Bruce Momjian 已提交
14
CFLAGS += -I..
15

16
OBJS = catalog.o heap.o index.o indexing.o aclchk.o \
17 18
       pg_aggregate.o pg_operator.o pg_proc.o pg_type.o

19 20
all: SUBSYS.o global1.bki.source local1_template1.bki.source \
		global1.description local1_template1.description
21 22 23 24 25 26

SUBSYS.o: $(OBJS)
	$(LD) -r -o SUBSYS.o $(OBJS)

GENBKI= ./genbki.sh

M
 
Marc G. Fournier 已提交
27
ifdef MULTIBYTE
M
 
Marc G. Fournier 已提交
28 29 30 31 32
GLOBALBKI_SRCS= $(addprefix ../../include/catalog/, \
                  pg_database_mb.h pg_variable.h pg_shadow.h \
                  pg_group.h pg_log.h \
                 )
else
33
GLOBALBKI_SRCS= $(addprefix ../../include/catalog/, \
34
                  pg_database.h pg_variable.h pg_shadow.h \
V
Vadim B. Mikheev 已提交
35
                  pg_group.h pg_log.h \
36
                 )
M
 
Marc G. Fournier 已提交
37
endif
38

M
 
Marc G. Fournier 已提交
39
ifdef MULTIBYTE
M
 
Marc G. Fournier 已提交
40 41 42 43 44 45 46 47 48
LOCALBKI_SRCS= $(addprefix ../../include/catalog/, \
                 pg_proc.h pg_type.h pg_attribute_mb.h pg_class_mb.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 pg_description.h indexing.h \
                )
else
49 50 51 52 53 54
LOCALBKI_SRCS= $(addprefix ../../include/catalog/, \
                 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 \
55
                 pg_rewrite.h pg_listener.h pg_description.h indexing.h \
56
                )
M
 
Marc G. Fournier 已提交
57
endif
58
global1.bki.source: $(GENBKI) $(GLOBALBKI_SRCS)
59
	sh $(SHOPTS) $(GENBKI) $(BKIOPTS) $(GLOBALBKI_SRCS) > $@ 2>global1.description
60 61

local1_template1.bki.source: $(GENBKI) $(LOCALBKI_SRCS)
62
	sh $(SHOPTS) $(GENBKI) $(BKIOPTS) $(LOCALBKI_SRCS) > $@ 2>local1_template1.description
63 64

depend dep:
B
Hi,  
Bruce Momjian 已提交
65
	$(CC) -MM $(CFLAGS) *.c >depend
66 67

clean: 
68 69
	rm -f SUBSYS.o $(OBJS) global1.bki.source local1_template1.bki.source \
				global1.description local1_template1.description
70 71 72 73 74

ifeq (depend,$(wildcard depend))
include depend
endif