1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-28 11:44:57 +03:00

Simplify make files, add full dependencies.

This commit is contained in:
Bryan Henderson
1996-10-27 09:55:05 +00:00
parent 1e39d14ff3
commit b0d6f0aa63
140 changed files with 3272 additions and 2315 deletions

View File

@@ -0,0 +1,68 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for utils
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/Makefile,v 1.1 1996/10/27 09:53:07 bryanh Exp $
#
#-------------------------------------------------------------------------
INCLUDE_OPT = -I.. \
-I../include \
-I../../include
CFLAGS+=$(INCLUDE_OPT)
all: SUBSYS.o
SUBSYS.o: fmgrtab.o
$(MAKE) -C adt SUBSYS.o
$(MAKE) -C cache SUBSYS.o
$(MAKE) -C error SUBSYS.o
$(MAKE) -C fmgr SUBSYS.o
$(MAKE) -C hash SUBSYS.o
$(MAKE) -C init SUBSYS.o
$(MAKE) -C mmgr SUBSYS.o
$(MAKE) -C sort SUBSYS.o
$(MAKE) -C time SUBSYS.o
$(LD) -r -o SUBSYS.o \
fmgrtab.o adt/SUBSYS.o cache/SUBSYS.o error/SUBSYS.o \
fmgr/SUBSYS.o hash/SUBSYS.o init/SUBSYS.o mmgr/SUBSYS.o \
sort/SUBSYS.o time/SUBSYS.o
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
$(MAKE) -C adt clean
$(MAKE) -C cache clean
$(MAKE) -C error clean
$(MAKE) -C fmgr clean
$(MAKE) -C hash clean
$(MAKE) -C init clean
$(MAKE) -C mmgr clean
$(MAKE) -C sort clean
$(MAKE) -C time clean
dep: fmgr.h fmgrtab.c
$(CC) -MM $(INCLUDE_OPT) *.c >depend
$(MAKE) -C adt dep
$(MAKE) -C cache dep
$(MAKE) -C error dep
$(MAKE) -C fmgr dep
$(MAKE) -C hash dep
$(MAKE) -C init dep
$(MAKE) -C mmgr dep
$(MAKE) -C sort dep
$(MAKE) -C time dep
ifeq (depend,$(wildcard depend))
include depend
endif