1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-12 05:01:15 +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,43 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for the storage manager subsystem
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/Makefile,v 1.1 1996/10/27 09:51:49 bryanh Exp $
#
#-------------------------------------------------------------------------
all: SUBSYS.o
SUBSYS.o:
$(MAKE) -C buffer SUBSYS.o
$(MAKE) -C file SUBSYS.o
$(MAKE) -C ipc SUBSYS.o
$(MAKE) -C large_object SUBSYS.o
$(MAKE) -C lmgr SUBSYS.o
$(MAKE) -C page SUBSYS.o
$(MAKE) -C smgr SUBSYS.o
$(LD) -r -o SUBSYS.o \
buffer/SUBSYS.o file/SUBSYS.o ipc/SUBSYS.o large_object/SUBSYS.o \
lmgr/SUBSYS.o page/SUBSYS.o smgr/SUBSYS.o
clean:
rm -f SUBSYS.o
$(MAKE) -C buffer clean
$(MAKE) -C file clean
$(MAKE) -C ipc clean
$(MAKE) -C large_object clean
$(MAKE) -C lmgr clean
$(MAKE) -C page clean
$(MAKE) -C smgr clean
.DEFAULT:
$(MAKE) -C buffer $@
$(MAKE) -C file $@
$(MAKE) -C ipc $@
$(MAKE) -C large_object $@
$(MAKE) -C lmgr $@
$(MAKE) -C page $@
$(MAKE) -C smgr $@

View File

@@ -1,31 +0,0 @@
#-------------------------------------------------------------------------
#
# Makefile.inc--
# Makefile for the storage modules
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:52 scrappy Exp $
#
#-------------------------------------------------------------------------
stordir= $(CURDIR)/storage
VPATH:= $(VPATH):$(stordir):$(stordir)/buffer:$(stordir)/file:$(stordir)/ipc:\
$(stordir)/large_object:$(stordir)/lmgr:$(stordir)/page:$(stordir)/smgr
SUBSRCS=
include $(stordir)/buffer/Makefile.inc
include $(stordir)/file/Makefile.inc
include $(stordir)/ipc/Makefile.inc
include $(stordir)/large_object/Makefile.inc
include $(stordir)/lmgr/Makefile.inc
include $(stordir)/page/Makefile.inc
include $(stordir)/smgr/Makefile.inc
SRCS_STORAGE:= $(SUBSRCS)
HEADERS+= backendid.h block.h buf.h buf_internals.h bufmgr.h bufpage.h \
fd.h ipc.h item.h itemid.h itempos.h \
itemptr.h large_object.h lmgr.h lock.h multilev.h off.h page.h \
pagenum.h pos.h proc.h shmem.h sinval.h sinvaladt.h smgr.h spin.h

View File

@@ -0,0 +1,37 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for storage/buffer
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/buffer/Makefile,v 1.1 1996/10/27 09:51:54 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include
CFLAGS+=$(INCLUDE_OPT)
OBJS = buf_table.o buf_init.o bufmgr.o freelist.o localbuf.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 storage/buffer
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:53 scrappy Exp $
#
#-------------------------------------------------------------------------
SUBSRCS+= buf_table.c buf_init.c bufmgr.c freelist.c localbuf.c
SRCS_SITEMGR+= buf_table.c buf_init.c freelist.c

View File

@@ -0,0 +1,37 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for storage/file
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/file/Makefile,v 1.1 1996/10/27 09:52:01 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include
CFLAGS+=$(INCLUDE_OPT)
OBJS = fd.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 storage/file
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/file/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:55 scrappy Exp $
#
#-------------------------------------------------------------------------
SUBSRCS+= fd.c

View File

@@ -0,0 +1,38 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for storage/ipc
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/ipc/Makefile,v 1.1 1996/10/27 09:52:10 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include
CFLAGS+=$(INCLUDE_OPT)
OBJS = ipc.o ipci.o s_lock.o shmem.o shmqueue.o sinval.o \
sinvaladt.o spin.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 storage/ipc
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:54 scrappy Exp $
#
#-------------------------------------------------------------------------
SUBSRCS+= ipc.c ipci.c s_lock.c shmem.c shmqueue.c sinval.c \
sinvaladt.c spin.c

View File

@@ -0,0 +1,37 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for storage/large_object
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/large_object/Makefile,v 1.1 1996/10/27 09:52:20 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include
CFLAGS+=$(INCLUDE_OPT)
OBJS = inv_api.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 storage/large_object
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/large_object/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:55 scrappy Exp $
#
#-------------------------------------------------------------------------
SUBSRCS+= inv_api.c

View File

@@ -0,0 +1,37 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for storage/lmgr
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Makefile,v 1.1 1996/10/27 09:52:27 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include
CFLAGS+=$(INCLUDE_OPT)
OBJS = lmgr.o lock.o multi.o proc.o single.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 storage/lmgr
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:55 scrappy Exp $
#
#-------------------------------------------------------------------------
SUBSRCS+= lmgr.c lock.c multi.c proc.c single.c

View File

@@ -0,0 +1,37 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for storage/page
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/page/Makefile,v 1.1 1996/10/27 09:52:34 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include
CFLAGS+=$(INCLUDE_OPT)
OBJS = bufpage.o itemptr.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 storage/page
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/page/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:58 scrappy Exp $
#
#-------------------------------------------------------------------------
SUBSRCS+= bufpage.c itemptr.c

View File

@@ -0,0 +1,37 @@
#-------------------------------------------------------------------------
#
# Makefile--
# Makefile for storage/smgr
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/smgr/Makefile,v 1.1 1996/10/27 09:52:40 bryanh Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../include \
-I../../../include
CFLAGS+=$(INCLUDE_OPT)
OBJS = md.o mm.o smgr.o smgrtype.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 storage/smgr
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/smgr/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:59 scrappy Exp $
#
#-------------------------------------------------------------------------
SUBSRCS+= md.c mm.c smgr.c smgrtype.c