1996-10-27 10:55:05 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile--
|
|
|
|
# Makefile for utils
|
|
|
|
#
|
|
|
|
# IDENTIFICATION
|
1998-07-26 06:31:41 +02:00
|
|
|
# $Header: /cvsroot/pgsql/src/backend/utils/Makefile,v 1.8 1998/07/26 04:30:50 scrappy Exp $
|
1996-10-27 10:55:05 +01:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
1996-11-03 10:28:31 +01:00
|
|
|
SRCDIR = ../..
|
|
|
|
include ../../Makefile.global
|
|
|
|
|
1997-12-20 01:29:35 +01:00
|
|
|
INCLUDE_OPT = -I..
|
1996-10-27 10:55:05 +01:00
|
|
|
|
|
|
|
CFLAGS+=$(INCLUDE_OPT)
|
|
|
|
|
1996-11-02 03:03:50 +01:00
|
|
|
all: submake SUBSYS.o
|
1996-10-27 10:55:05 +01:00
|
|
|
|
1996-11-02 03:03:50 +01:00
|
|
|
OBJS = fmgrtab.o adt/SUBSYS.o cache/SUBSYS.o error/SUBSYS.o \
|
|
|
|
fmgr/SUBSYS.o hash/SUBSYS.o init/SUBSYS.o misc/SUBSYS.o mmgr/SUBSYS.o \
|
|
|
|
sort/SUBSYS.o time/SUBSYS.o
|
|
|
|
|
1998-04-06 02:32:26 +02:00
|
|
|
DIRS = adt cache error fmgr hash init misc mmgr sort time
|
|
|
|
|
1998-07-26 06:31:41 +02:00
|
|
|
ifdef MULTIBYTE
|
1998-07-24 05:32:46 +02:00
|
|
|
OBJS += mb/SUBSYS.o
|
|
|
|
DIRS += mb
|
|
|
|
endif
|
|
|
|
|
1996-11-02 03:03:50 +01:00
|
|
|
SUBSYS.o: $(OBJS)
|
|
|
|
$(LD) -r -o SUBSYS.o $(OBJS)
|
|
|
|
|
|
|
|
.PHONY: submake clean dep
|
|
|
|
submake:
|
1998-04-06 02:32:26 +02:00
|
|
|
for i in $(DIRS); do $(MAKE) -C $$i SUBSYS.o; done
|
1996-10-27 10:55:05 +01:00
|
|
|
|
|
|
|
fmgrtab.o: ../fmgr.h
|
|
|
|
|
|
|
|
../fmgr.h:
|
|
|
|
$(MAKE) -C .. fmgr.h
|
|
|
|
|
|
|
|
fmgr.h fmgrtab.c: ./Gen_fmgrtab.sh ../../include/catalog/pg_proc.h
|
|
|
|
sh $(SHOPTS) Gen_fmgrtab.sh ../../include/catalog/pg_proc.h
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f SUBSYS.o fmgr.h fmgrtab.o fmgrtab.c
|
1998-04-06 02:32:26 +02:00
|
|
|
for i in $(DIRS); do $(MAKE) -C $$i clean; done
|
1996-10-27 10:55:05 +01:00
|
|
|
|
1998-04-06 02:32:26 +02:00
|
|
|
dep depend: fmgr.h fmgrtab.c
|
|
|
|
for i in $(DIRS); do $(MAKE) -C $$i depend; done
|
1996-10-27 10:55:05 +01:00
|
|
|
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
|
|
include depend
|
|
|
|
endif
|
1996-11-02 03:03:50 +01:00
|
|
|
|