diff --git a/src/backend/Makefile b/src/backend/Makefile index 0fa6123b53862b4478d4ffd56c7f2821ab1652b7..ef80cebcd5a50fb18935c7b576ca12b15c089bbc 100644 --- a/src/backend/Makefile +++ b/src/backend/Makefile @@ -34,7 +34,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.27 1997/11/13 03:22:10 momjian Exp $ +# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.28 1997/12/17 04:58:19 scrappy Exp $ # #------------------------------------------------------------------------- @@ -60,7 +60,11 @@ postgres: $(OBJS) ../utils/version.o $(OBJS): $(DIRS:%=%.dir) $(DIRS:%=%.dir): +ifdef PORTNAME $(MAKE) -C $(subst .dir,,$@) all PORTNAME=$(PORTNAME) +else + $(MAKE) -C $(subst .dir,,$@) all +endif ../utils/version.o: $(MAKE) -C ../utils version.o @@ -96,10 +100,18 @@ clean: rm -f postgres $(POSTGRES_IMP) fmgr.h parse.h \ global1.bki.source local1_template1.bki.source \ global1.description local1_template1.description +ifdef PORTNAME for i in $(DIRS); do $(MAKE) -C $$i clean PORTNAME=$(PORTNAME); done +else + for i in $(DIRS); do $(MAKE) -C $$i clean; done +endif .DEFAULT: +ifdef PORTNAME for i in $(DIRS); do $(MAKE) -C $$i $@ PORTNAME=$(PORTNAME); done +else + for i in $(DIRS); do $(MAKE) -C $$i $@; done +endif ############################################################################# # diff --git a/src/backend/bootstrap/Makefile b/src/backend/bootstrap/Makefile index 81abfb749a472ee496f8b5b17987f086f328e89f..ec71797ee12470abec668ca3cc8460a870993976 100644 --- a/src/backend/bootstrap/Makefile +++ b/src/backend/bootstrap/Makefile @@ -4,7 +4,7 @@ # Makefile for the bootstrap module # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.10 1997/06/11 01:11:55 scrappy Exp $ +# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.11 1997/12/17 04:58:21 scrappy Exp $ # # # We must build bootparse.c and bootscanner.c with yacc and lex and sed, @@ -21,9 +21,11 @@ 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) diff --git a/src/backend/catalog/Makefile b/src/backend/catalog/Makefile index 09651f608279448e7f22761c909f3bcba16685d4..f393bfde2c9b1b19ee4c4c8c061a023272e29dc5 100644 --- a/src/backend/catalog/Makefile +++ b/src/backend/catalog/Makefile @@ -4,16 +4,18 @@ # Makefile for catalog # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/catalog/Makefile,v 1.5 1997/11/15 20:57:02 momjian Exp $ +# $Header: /cvsroot/pgsql/src/backend/catalog/Makefile,v 1.6 1997/12/17 04:58:25 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) diff --git a/src/backend/executor/Makefile b/src/backend/executor/Makefile index fda9a03fe746bb960a1bb49847d7d6f0cbe5698a..bedf2e5189a8cfe23950e5d01852f5dca998f879 100644 --- a/src/backend/executor/Makefile +++ b/src/backend/executor/Makefile @@ -4,16 +4,18 @@ # Makefile for executor # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/executor/Makefile,v 1.3 1997/08/30 10:28:47 vadim Exp $ +# $Header: /cvsroot/pgsql/src/backend/executor/Makefile,v 1.4 1997/12/17 04:58:33 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) diff --git a/src/backend/lib/Makefile b/src/backend/lib/Makefile index f1dfa4834b5417ea823c9cc7cb9d8e79cf26f913..006a0a3c56f070e3ba24c04dd5ab4486b435a61f 100644 --- a/src/backend/lib/Makefile +++ b/src/backend/lib/Makefile @@ -4,16 +4,18 @@ # Makefile for lib (miscellaneous stuff) # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/lib/Makefile,v 1.7 1997/01/14 02:35:34 momjian Exp $ +# $Header: /cvsroot/pgsql/src/backend/lib/Makefile,v 1.8 1997/12/17 04:58:40 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) diff --git a/src/backend/libpq/Makefile b/src/backend/libpq/Makefile index ed43bdd1352d086e83090848b3fed1eea3b199ee..df3f015f0345939ccfe284cd6b09c422def7c9ce 100644 --- a/src/backend/libpq/Makefile +++ b/src/backend/libpq/Makefile @@ -4,16 +4,18 @@ # Makefile for libpq subsystem (backend half of libpq interface) # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.8 1997/12/04 00:26:47 scrappy Exp $ +# $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.9 1997/12/17 04:58:58 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) diff --git a/src/backend/main/Makefile b/src/backend/main/Makefile index 093296511d4ccb8a568f952ad656815bc966dd56..4fb652c058013c19bc9a09072bb27b75886a7423 100644 --- a/src/backend/main/Makefile +++ b/src/backend/main/Makefile @@ -4,16 +4,18 @@ # Makefile for main # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/main/Makefile,v 1.2 1996/11/09 06:18:04 momjian Exp $ +# $Header: /cvsroot/pgsql/src/backend/main/Makefile,v 1.3 1997/12/17 04:59:05 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) diff --git a/src/backend/main/main.c b/src/backend/main/main.c index 2670f2c6ee7b986c2b79e86f4f16a01c084e2761..969519c050ff852efdb06196021e0c5013cc6d8f 100644 --- a/src/backend/main/main.c +++ b/src/backend/main/main.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.9 1997/09/08 02:23:24 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.10 1997/12/17 04:59:10 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -22,7 +22,7 @@ #include "miscadmin.h" #include "bootstrap/bootstrap.h"/* for BootstrapMain() */ #include "tcop/tcopprot.h" /* for PostgresMain() */ -#include "port-protos.h" /* for init_address_fixup() */ +/* #include "port-protos.h" */ /* for init_address_fixup() */ #define NOROOTEXEC "\ \n\"root\" execution of the PostgreSQL backend is not permitted\n\n\ diff --git a/src/backend/nodes/Makefile b/src/backend/nodes/Makefile index 6f75fb149591970e7007a55b3f644e0321503837..fb682d0bd7d10973c405faa42f879286930defc8 100644 --- a/src/backend/nodes/Makefile +++ b/src/backend/nodes/Makefile @@ -4,16 +4,18 @@ # Makefile for nodes # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/nodes/Makefile,v 1.3 1996/11/06 08:54:16 scrappy Exp $ +# $Header: /cvsroot/pgsql/src/backend/nodes/Makefile,v 1.4 1997/12/17 04:59:16 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)