Commit e2d95010 authored by Marc G. Fournier's avatar Marc G. Fournier

Clean up the Makefiles

	Essentially, this cleans things up so that if PORTNAME isn't defined (I'm
    working on getting rid of it for FreeBSD, at least, to see if its possible)
    none of the PORTNAME related stuff gets passed around.

	Had a little bit of -I related redundancy as well
parent ceabf8ca
......@@ -4,16 +4,18 @@
# Makefile for access/common
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/common/Makefile,v 1.6 1996/11/05 07:42:39 scrappy Exp $
# $Header: /cvsroot/pgsql/src/backend/access/common/Makefile,v 1.7 1997/12/17 04:30:45 scrappy Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
ifdef PORTNAME
INCLUDE_OPT += -I../../port/$(PORTNAME)
endif
CFLAGS+=$(INCLUDE_OPT)
......
......@@ -4,18 +4,20 @@
# Makefile for access/gist
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/gist/Makefile,v 1.3 1996/11/05 08:18:42 scrappy Exp $
# $Header: /cvsroot/pgsql/src/backend/access/gist/Makefile,v 1.4 1997/12/17 04:30:47 scrappy Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
CFLAGS+=$(INCLUDE_OPT)
ifdef PORTNAME
INCLUDE_OPT += -I../../port/$(PORTNAME)
endif
CFLAGS += $(INCLUDE_OPT)
OBJS = gist.o gistget.o gistscan.o giststrat.o
......
......@@ -4,18 +4,20 @@
# Makefile for access/hash
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/hash/Makefile,v 1.3 1996/11/05 09:40:16 scrappy Exp $
# $Header: /cvsroot/pgsql/src/backend/access/hash/Makefile,v 1.4 1997/12/17 04:30:52 scrappy Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
CFLAGS+=$(INCLUDE_OPT)
ifdef PORTNAME
INCLUDE_OPT += -I../../port/$(PORTNAME)
endif
CFLAGS += $(INCLUDE_OPT)
OBJS = hash.o hashfunc.o hashinsert.o hashovfl.o hashpage.o hashscan.o \
hashsearch.o hashstrat.o hashutil.o
......
......@@ -4,18 +4,20 @@
# Makefile for access/heap
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/heap/Makefile,v 1.3 1996/11/09 06:17:34 momjian Exp $
# $Header: /cvsroot/pgsql/src/backend/access/heap/Makefile,v 1.4 1997/12/17 04:31:00 scrappy Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
CFLAGS+=$(INCLUDE_OPT)
ifdef PORTNAME
INCLUDE_OPT += -I../../port/$(PORTNAME)
endif
CFLAGS += $(INCLUDE_OPT)
OBJS = heapam.o hio.o stats.o
......
......@@ -4,18 +4,20 @@
# Makefile for access/index
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/index/Makefile,v 1.3 1996/11/05 10:02:01 scrappy Exp $
# $Header: /cvsroot/pgsql/src/backend/access/index/Makefile,v 1.4 1997/12/17 04:31:11 scrappy Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
CFLAGS+=$(INCLUDE_OPT)
ifdef PORTNAME
INCLUDE_OPT += -I../../port/$(PORTNAME)
endif
CFLAGS += $(INCLUDE_OPT)
OBJS = genam.o indexam.o istrat.o
......
......@@ -4,18 +4,20 @@
# Makefile for access/nbtree
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/nbtree/Makefile,v 1.3 1996/11/05 10:35:27 scrappy Exp $
# $Header: /cvsroot/pgsql/src/backend/access/nbtree/Makefile,v 1.4 1997/12/17 04:31:19 scrappy Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
CFLAGS+=$(INCLUDE_OPT)
ifdef PORTNAME
INCLUDE_OPT += -I../../port/$(PORTNAME)
endif
CFLAGS += $(INCLUDE_OPT)
OBJS = nbtcompare.o nbtinsert.o nbtpage.o nbtree.o nbtscan.o nbtsearch.o \
nbtstrat.o nbtutils.o nbtsort.o
......
......@@ -4,18 +4,20 @@
# Makefile for access/rtree
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/Makefile,v 1.3 1996/11/05 10:54:15 scrappy Exp $
# $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/Makefile,v 1.4 1997/12/17 04:31:24 scrappy Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
CFLAGS+=$(INCLUDE_OPT)
ifdef PORTNAME
INCLUDE_OPT += -I../../port/$(PORTNAME)
endif
CFLAGS += $(INCLUDE_OPT)
OBJS = rtget.o rtproc.o rtree.o rtscan.o rtstrat.o
......
......@@ -4,18 +4,20 @@
# Makefile for access/transam
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/transam/Makefile,v 1.3 1996/11/09 06:17:38 momjian Exp $
# $Header: /cvsroot/pgsql/src/backend/access/transam/Makefile,v 1.4 1997/12/17 04:31:34 scrappy Exp $
#
#-------------------------------------------------------------------------
SRCDIR = ../../..
include ../../../Makefile.global
INCLUDE_OPT = -I../.. \
-I../../port/$(PORTNAME) \
-I../../../include
INCLUDE_OPT = -I../..
CFLAGS+=$(INCLUDE_OPT)
ifdef PORTNAME
INCLUDE_OPT += -I../../port/$(PORTNAME)
endif
CFLAGS += $(INCLUDE_OPT)
OBJS = transam.o transsup.o varsup.o xact.o xid.o
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment