1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-06 07:49:08 +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,46 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for the access methods module
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/Makefile,v 1.1 1996/10/27 09:45:42 bryanh Exp $
#
#-------------------------------------------------------------------------
all: SUBSYS.o
SUBSYS.o:
$(MAKE) -C common SUBSYS.o
$(MAKE) -C gist SUBSYS.o
$(MAKE) -C hash SUBSYS.o
$(MAKE) -C heap SUBSYS.o
$(MAKE) -C index SUBSYS.o
$(MAKE) -C rtree SUBSYS.o
$(MAKE) -C nbtree SUBSYS.o
$(MAKE) -C transam SUBSYS.o
$(LD) -r -o SUBSYS.o \
common/SUBSYS.o gist/SUBSYS.o hash/SUBSYS.o heap/SUBSYS.o \
index/SUBSYS.o rtree/SUBSYS.o nbtree/SUBSYS.o transam/SUBSYS.o
clean:
rm -f SUBSYS.o
$(MAKE) -C common clean
$(MAKE) -C gist clean
$(MAKE) -C hash clean
$(MAKE) -C heap clean
$(MAKE) -C index clean
$(MAKE) -C rtree clean
$(MAKE) -C nbtree clean
$(MAKE) -C transam clean
.DEFAULT:
$(MAKE) -C common $@
$(MAKE) -C gist $@
$(MAKE) -C hash $@
$(MAKE) -C heap $@
$(MAKE) -C index $@
$(MAKE) -C rtree $@
$(MAKE) -C nbtree $@
$(MAKE) -C transam $@

View File

@@ -1,36 +0,0 @@
#-------------------------------------------------------------------------
#
# Makefile.inc--
# Makefile for the access methods module
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/Attic/Makefile.inc,v 1.2 1996/08/26 06:26:37 scrappy Exp $
#
#-------------------------------------------------------------------------
accdir=$(CURDIR)/access
VPATH:=$(VPATH):$(accdir):\
$(accdir)/common:$(accdir)/gist:$(accdir)/hash:$(accdir)/heap:\
$(accdir)/index:$(accdir)/rtree:$(accdir)/nbtree:$(accdir)/transam
SUBSRCS=
include $(accdir)/common/Makefile.inc
include $(accdir)/gist/Makefile.inc
include $(accdir)/hash/Makefile.inc
include $(accdir)/heap/Makefile.inc
include $(accdir)/index/Makefile.inc
include $(accdir)/rtree/Makefile.inc
include $(accdir)/nbtree/Makefile.inc
include $(accdir)/transam/Makefile.inc
SRCS_ACCESS:= $(SUBSRCS)
HEADERS+= attnum.h funcindex.h genam.h gist.h hash.h \
heapam.h hio.h htup.h ibit.h iqual.h istrat.h \
itup.h nbtree.h printtup.h relscan.h rtree.h \
sdir.h skey.h strat.h transam.h tupdesc.h tupmacs.h \
valid.h xact.h

View File

@@ -0,0 +1,43 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for access/common
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/common/Makefile,v 1.1 1996/10/27 09:45:49 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include
CFLAGS+=$(INCLUDE_OPT)
OBJS = heaptuple.o heapvalid.o indextuple.o indexvalid.o printtup.o \
scankey.o tupdesc.o
all: SUBSYS.o
SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS)
heapvalid.o tupdesc.o: ../../fmgr.h
../../fmgr.h:
$(MAKE) -C ../.. fmgr.h
dep: ../../fmgr.h
$(CC) -MM $(INCLUDE_OPT) *.c >depend
clean:
rm -f SUBSYS.o $(OBJS)
ifeq (depend,$(wildcard depend))
include depend
endif

View File

@@ -1,16 +0,0 @@
#-------------------------------------------------------------------------
#
# Makefile.inc--
# Makefile for access/common
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/common/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:09 scrappy Exp $
#
#-------------------------------------------------------------------------
SUBSRCS+= heaptuple.c heapvalid.c indextuple.c indexvalid.c printtup.c \
scankey.c tupdesc.c

View File

@@ -0,0 +1,37 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for access/gist
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/gist/Makefile,v 1.1 1996/10/27 09:45:57 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include
CFLAGS+=$(INCLUDE_OPT)
OBJS = gist.o gistget.o gistscan.o giststrat.o
all: SUBSYS.o
SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS)
depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend
clean:
rm -f SUBSYS.o $(OBJS)
ifeq (depend,$(wildcard depend))
include depend
endif

View File

@@ -1,16 +0,0 @@
#-------------------------------------------------------------------------
#
# Makefile.inc--
# Makefile for access/rtree (R-Tree access method)
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# /usr/local/devel/pglite/cvs/src/backend/access/rtree/Makefile.inc,v 1.2 1995/03/21 06:50:48 andrew Exp
#
#-------------------------------------------------------------------------
SUBSRCS+= gist.c gistget.c gistscan.c giststrat.c

View File

@@ -0,0 +1,38 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for access/hash
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/hash/Makefile,v 1.1 1996/10/27 09:46:08 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include
CFLAGS+=$(INCLUDE_OPT)
OBJS = hash.o hashfunc.o hashinsert.o hashovfl.o hashpage.o hashscan.o \
hashsearch.o hashstrat.o hashutil.o
all: SUBSYS.o
SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS)
depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend
clean:
rm -f SUBSYS.o $(OBJS)
ifeq (depend,$(wildcard depend))
include depend
endif

View File

@@ -1,18 +0,0 @@
#-------------------------------------------------------------------------
#
# Makefile.inc--
# Makefile for access/hash (hash access method)
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/hash/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:10 scrappy Exp $
#
#-------------------------------------------------------------------------
SUBSRCS+= hash.c hashfunc.c hashinsert.c hashovfl.c hashpage.c hashscan.c \
hashsearch.c hashstrat.c hashutil.c

View File

@@ -0,0 +1,37 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for access/heap
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/heap/Makefile,v 1.1 1996/10/27 09:46:16 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include
CFLAGS+=$(INCLUDE_OPT)
OBJS = heapam.o hio.o stats.o
all: SUBSYS.o
SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS)
depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend
clean:
rm -f SUBSYS.o $(OBJS)
ifeq (depend,$(wildcard depend))
include depend
endif

View File

@@ -1,14 +0,0 @@
#-------------------------------------------------------------------------
#
# Makefile.inc--
# Makefile for access/heap
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/heap/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:11 scrappy Exp $
#
#-------------------------------------------------------------------------
SUBSRCS+= heapam.c hio.c stats.c

View File

@@ -0,0 +1,37 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for access/index
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/index/Makefile,v 1.1 1996/10/27 09:46:25 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include
CFLAGS+=$(INCLUDE_OPT)
OBJS = genam.o indexam.o istrat.o
all: SUBSYS.o
SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS)
depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend
clean:
rm -f SUBSYS.o $(OBJS)
ifeq (depend,$(wildcard depend))
include depend
endif

View File

@@ -1,14 +0,0 @@
#-------------------------------------------------------------------------
#
# Makefile.inc--
# Makefile for access/index
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/index/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:11 scrappy Exp $
#
#-------------------------------------------------------------------------
SUBSRCS+= genam.c indexam.c istrat.c

View File

@@ -0,0 +1,38 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for access/nbtree
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/nbtree/Makefile,v 1.1 1996/10/27 09:46:32 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include
CFLAGS+=$(INCLUDE_OPT)
OBJS = nbtcompare.o nbtinsert.o nbtpage.o nbtree.o nbtscan.o nbtsearch.o \
nbtstrat.o nbtutils.o nbtsort.o
all: SUBSYS.o
SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS)
depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend
clean:
rm -f SUBSYS.o $(OBJS)
ifeq (depend,$(wildcard depend))
include depend
endif

View File

@@ -1,15 +0,0 @@
#-------------------------------------------------------------------------
#
# Makefile.inc--
# Makefile for access/nbtree (btree acess methods)
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:11 scrappy Exp $
#
#-------------------------------------------------------------------------
SUBSRCS+= nbtcompare.c nbtinsert.c nbtpage.c nbtree.c nbtscan.c nbtsearch.c \
nbtstrat.c nbtutils.c nbtsort.c

View File

@@ -0,0 +1,37 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for access/rtree
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/Makefile,v 1.1 1996/10/27 09:46:40 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include
CFLAGS+=$(INCLUDE_OPT)
OBJS = rtget.o rtproc.o rtree.o rtscan.o rtstrat.o
all: SUBSYS.o
SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS)
depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend
clean:
rm -f SUBSYS.o $(OBJS)
ifeq (depend,$(wildcard depend))
include depend
endif

View File

@@ -1,14 +0,0 @@
#-------------------------------------------------------------------------
#
# Makefile.inc--
# Makefile for access/rtree (R-Tree access method)
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:12 scrappy Exp $
#
#-------------------------------------------------------------------------
SUBSRCS+= rtget.c rtproc.c rtree.c rtscan.c rtstrat.c

View File

@@ -0,0 +1,37 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for access/transam
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/transam/Makefile,v 1.1 1996/10/27 09:46:48 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include
CFLAGS+=$(INCLUDE_OPT)
OBJS = transam.o transsup.o varsup.o xact.o xid.o
all: SUBSYS.o
SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS)
depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend
clean:
rm -f SUBSYS.o $(OBJS)
ifeq (depend,$(wildcard depend))
include depend
endif

View File

@@ -1,14 +0,0 @@
#-------------------------------------------------------------------------
#
# Makefile.inc--
# Makefile for access/transam
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/transam/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:13 scrappy Exp $
#
#-------------------------------------------------------------------------
SUBSRCS+= transam.c transsup.c varsup.c xact.c xid.c