mirror of https://github.com/postgres/postgres
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
47 lines
1.2 KiB
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile--
|
|
# Makefile for utils
|
|
#
|
|
# IDENTIFICATION
|
|
# $Header: /cvsroot/pgsql/src/backend/utils/Makefile,v 1.12 2000/05/29 05:45:18 tgl Exp $
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
SRCDIR = ../..
|
|
include $(SRCDIR)/Makefile.global
|
|
|
|
all: submake SUBSYS.o
|
|
|
|
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
|
|
|
|
DIRS = adt cache error fmgr hash init misc mmgr sort time
|
|
|
|
ifdef MULTIBYTE
|
|
OBJS += mb/SUBSYS.o
|
|
DIRS += mb
|
|
endif
|
|
|
|
SUBSYS.o: $(OBJS)
|
|
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
|
|
|
|
.PHONY: submake clean dep
|
|
submake:
|
|
for i in $(DIRS); do $(MAKE) -C $$i SUBSYS.o; done
|
|
|
|
fmgroids.h fmgrtab.c: Gen_fmgrtab.sh $(SRCDIR)/include/catalog/pg_proc.h
|
|
$(SHELL) $(SHOPTS) Gen_fmgrtab.sh $(SRCDIR)/include/catalog/pg_proc.h
|
|
|
|
clean:
|
|
rm -f SUBSYS.o fmgroids.h fmgrtab.o fmgrtab.c
|
|
for i in $(DIRS); do $(MAKE) -C $$i clean; done
|
|
|
|
dep depend: fmgroids.h fmgrtab.c
|
|
for i in $(DIRS); do $(MAKE) -C $$i depend; done
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
include depend
|
|
endif
|
|
|
|
|