Skip to content
Snippets Groups Projects
Commit 1e801a8f authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Hi,

Attached you'll find a (big) patch that fixes make dep and make
depend in all Makefiles where I found it to be appropriate.

It also removes the dependency in Makefile.global for NAMEDATALEN
and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
a little smarter.

This no longer requires initdb.sh that is turned into initdb with
a sed script when installing Postgres, hence initdb.sh should be
renamed to initdb (after the patch has been applied :-) )

This patch is against the 6.3 sources, as it took a while to
complete.

Please review and apply,

Cheers,

Jeroen van Vianen
parent 2dfee934
No related branches found
No related tags found
No related merge requests found
Showing
with 76 additions and 138 deletions
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.37 1998/03/23 06:01:47 momjian Exp $ # $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.38 1998/04/06 00:20:33 momjian Exp $
# #
# NOTES # NOTES
# Essentially all Postgres make files include this file and use the # Essentially all Postgres make files include this file and use the
...@@ -44,11 +44,6 @@ ...@@ -44,11 +44,6 @@
# installation. # installation.
# of the port. # of the port.
# #
# Ignore LINUX_ELF if you're not using Linux. But if you are, and you're
# compiling to a.out (which means you're using the dld dynamic loading
# library), set LINUX_ELF to null in Makefile.custom.
LINUX_ELF= true
#
# Ignore BSD_SHLIB if you're not using one of the BSD ports. But if you # Ignore BSD_SHLIB if you're not using one of the BSD ports. But if you
# are, and it's one that doesn't have shared libraries (NetBSD/vax is an # are, and it's one that doesn't have shared libraries (NetBSD/vax is an
# example of this), set BSD_SHLIB to null in Makefile.custom. # example of this), set BSD_SHLIB to null in Makefile.custom.
...@@ -85,23 +80,6 @@ POSTDOCDIR= $(POSTGRESDIR)/doc ...@@ -85,23 +80,6 @@ POSTDOCDIR= $(POSTGRESDIR)/doc
# Where the header files necessary to build frontend programs get installed. # Where the header files necessary to build frontend programs get installed.
HEADERDIR= $(POSTGRESDIR)/include HEADERDIR= $(POSTGRESDIR)/include
# NAMEDATALEN is the max length for system identifiers (e.g. table names,
# attribute names, function names, etc.)
#
# These MUST be set here. DO NOT COMMENT THESE OUT
# Setting these too high will result in excess space usage for system catalogs
# Setting them too low will make the system unusable.
# values between 16 and 64 that are multiples of four are recommended.
#
# NOTE also that databases with different NAMEDATALEN's cannot interoperate!
#
# THERE ARE REDUNDANT DEFINITIONS OF THESE VALUES IN config.h.
# Don't change anything here without changing it there too.
NAMEDATALEN= 32
# OIDNAMELEN should be set to NAMEDATALEN + sizeof(Oid)
OIDNAMELEN= 36
############################################################################## ##############################################################################
# #
# FEATURES # FEATURES
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for access/common # Makefile for access/common
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/common/Makefile,v 1.9 1998/01/15 19:41:42 pgsql Exp $ # $Header: /cvsroot/pgsql/src/backend/access/common/Makefile,v 1.10 1998/04/06 00:20:44 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS+=-I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = heaptuple.o heapvalid.o indextuple.o indexvalid.o printtup.o \ OBJS = heaptuple.o heapvalid.o indextuple.o indexvalid.o printtup.o \
scankey.o tupdesc.o scankey.o tupdesc.o
...@@ -28,8 +26,8 @@ heaptuple.o heapvalid.o tupdesc.o: ../../fmgr.h ...@@ -28,8 +26,8 @@ heaptuple.o heapvalid.o tupdesc.o: ../../fmgr.h
../../fmgr.h: ../../fmgr.h:
$(MAKE) -C ../.. fmgr.h $(MAKE) -C ../.. fmgr.h
dep: ../../fmgr.h dep depend: ../../fmgr.h
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
...@@ -37,4 +35,3 @@ clean: ...@@ -37,4 +35,3 @@ clean:
ifeq (depend,$(wildcard depend)) ifeq (depend,$(wildcard depend))
include depend include depend
endif endif
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for access/gist # Makefile for access/gist
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/gist/Makefile,v 1.5 1997/12/20 00:22:16 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/access/gist/Makefile,v 1.6 1998/04/06 00:20:49 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS += $(INCLUDE_OPT)
OBJS = gist.o gistget.o gistscan.o giststrat.o OBJS = gist.o gistget.o gistscan.o giststrat.o
...@@ -23,7 +21,7 @@ SUBSYS.o: $(OBJS) ...@@ -23,7 +21,7 @@ SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for access/hash # Makefile for access/hash
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/hash/Makefile,v 1.5 1997/12/20 00:22:31 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/access/hash/Makefile,v 1.6 1998/04/06 00:20:58 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS += $(INCLUDE_OPT)
OBJS = hash.o hashfunc.o hashinsert.o hashovfl.o hashpage.o hashscan.o \ OBJS = hash.o hashfunc.o hashinsert.o hashovfl.o hashpage.o hashscan.o \
hashsearch.o hashstrat.o hashutil.o hashsearch.o hashstrat.o hashutil.o
...@@ -24,7 +22,7 @@ SUBSYS.o: $(OBJS) ...@@ -24,7 +22,7 @@ SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for access/heap # Makefile for access/heap
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/heap/Makefile,v 1.5 1997/12/20 00:22:39 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/access/heap/Makefile,v 1.6 1998/04/06 00:21:09 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS += $(INCLUDE_OPT)
OBJS = heapam.o hio.o stats.o OBJS = heapam.o hio.o stats.o
...@@ -23,7 +21,7 @@ SUBSYS.o: $(OBJS) ...@@ -23,7 +21,7 @@ SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for access/index # Makefile for access/index
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/index/Makefile,v 1.5 1997/12/20 00:22:47 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/access/index/Makefile,v 1.6 1998/04/06 00:21:24 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS += $(INCLUDE_OPT)
OBJS = genam.o indexam.o istrat.o OBJS = genam.o indexam.o istrat.o
...@@ -23,7 +21,7 @@ SUBSYS.o: $(OBJS) ...@@ -23,7 +21,7 @@ SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for access/nbtree # Makefile for access/nbtree
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/nbtree/Makefile,v 1.5 1997/12/20 00:22:54 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/access/nbtree/Makefile,v 1.6 1998/04/06 00:21:34 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS += $(INCLUDE_OPT)
OBJS = nbtcompare.o nbtinsert.o nbtpage.o nbtree.o nbtscan.o nbtsearch.o \ OBJS = nbtcompare.o nbtinsert.o nbtpage.o nbtree.o nbtscan.o nbtsearch.o \
nbtstrat.o nbtutils.o nbtsort.o nbtstrat.o nbtutils.o nbtsort.o
...@@ -24,7 +22,7 @@ SUBSYS.o: $(OBJS) ...@@ -24,7 +22,7 @@ SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for access/rtree # Makefile for access/rtree
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/Makefile,v 1.5 1997/12/20 00:23:00 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/Makefile,v 1.6 1998/04/06 00:21:41 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS += $(INCLUDE_OPT)
OBJS = rtget.o rtproc.o rtree.o rtscan.o rtstrat.o OBJS = rtget.o rtproc.o rtree.o rtscan.o rtstrat.o
...@@ -23,7 +21,7 @@ SUBSYS.o: $(OBJS) ...@@ -23,7 +21,7 @@ SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for access/transam # Makefile for access/transam
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/transam/Makefile,v 1.5 1997/12/20 00:23:09 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/access/transam/Makefile,v 1.6 1998/04/06 00:21:52 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS += $(INCLUDE_OPT)
OBJS = transam.o transsup.o varsup.o xact.o xid.o OBJS = transam.o transsup.o varsup.o xact.o xid.o
...@@ -23,7 +21,7 @@ SUBSYS.o: $(OBJS) ...@@ -23,7 +21,7 @@ SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for the bootstrap module # Makefile for the bootstrap module
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.12 1997/12/20 00:23:19 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.13 1998/04/06 00:22:02 momjian Exp $
# #
# #
# We must build bootparse.c and bootscanner.c with yacc and lex and sed, # We must build bootparse.c and bootscanner.c with yacc and lex and sed,
...@@ -21,9 +21,7 @@ ...@@ -21,9 +21,7 @@
SRCDIR= ../.. SRCDIR= ../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT= -I.. CFLAGS += -I..
CFLAGS+= $(INCLUDE_OPT)
ifeq ($(CC), gcc) ifeq ($(CC), gcc)
CFLAGS+= -Wno-error CFLAGS+= -Wno-error
...@@ -65,8 +63,8 @@ clean: ...@@ -65,8 +63,8 @@ clean:
# This is unusual: We actually have to build some of the parts before # This is unusual: We actually have to build some of the parts before
# we know what the header file dependencies are. # we know what the header file dependencies are.
dep: bootparse.c bootscanner.c bootstrap_tokens.h dep depend: bootparse.c bootscanner.c bootstrap_tokens.h
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
ifeq (depend,$(wildcard depend)) ifeq (depend,$(wildcard depend))
include depend include depend
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for catalog # Makefile for catalog
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/catalog/Makefile,v 1.9 1998/02/25 13:05:55 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/catalog/Makefile,v 1.10 1998/04/06 00:22:13 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../.. SRCDIR = ../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT = -I.. CFLAGS += -I..
CFLAGS+=$(INCLUDE_OPT)
OBJS = catalog.o heap.o index.o indexing.o aclchk.o \ OBJS = catalog.o heap.o index.o indexing.o aclchk.o \
pg_aggregate.o pg_operator.o pg_proc.o pg_type.o pg_aggregate.o pg_operator.o pg_proc.o pg_type.o
...@@ -47,7 +45,7 @@ local1_template1.bki.source: $(GENBKI) $(LOCALBKI_SRCS) ...@@ -47,7 +45,7 @@ local1_template1.bki.source: $(GENBKI) $(LOCALBKI_SRCS)
sh $(SHOPTS) $(GENBKI) $(BKIOPTS) $(LOCALBKI_SRCS) > $@ 2>local1_template1.description sh $(SHOPTS) $(GENBKI) $(BKIOPTS) $(LOCALBKI_SRCS) > $@ 2>local1_template1.description
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) global1.bki.source local1_template1.bki.source \ rm -f SUBSYS.o $(OBJS) global1.bki.source local1_template1.bki.source \
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh,v 1.9 1997/11/13 03:22:20 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh,v 1.10 1998/04/06 00:22:16 momjian Exp $
# #
# NOTES # NOTES
# non-essential whitespace is removed from the generated file. # non-essential whitespace is removed from the generated file.
...@@ -52,6 +52,10 @@ while test $x -le $numargs ; do ...@@ -52,6 +52,10 @@ while test $x -le $numargs ; do
shift shift
done done
# Get NAMEDATALEN and OIDNAMELEN from postgres_ext.h
NAMEDATALEN=`grep '#define.*NAMEDATALEN' ../../include/postgres_ext.h | awk '{ print $3 }'`
OIDNAMELEN=`grep '#define.*OIDNAMELEN' ../../include/postgres_ext.h | awk '{ print $3 }'`
# ---------------- # ----------------
# strip comments and trash from .h before we generate # strip comments and trash from .h before we generate
# the .bki file... # the .bki file...
...@@ -68,14 +72,16 @@ sed -e 's;/\*.*\*/;;g' \ ...@@ -68,14 +72,16 @@ sed -e 's;/\*.*\*/;;g' \
-e 's;\*/;\ -e 's;\*/;\
*/\ */\
;g' | # we must run a new sed here to see the newlines we added ;g' | # we must run a new sed here to see the newlines we added
sed -e 's/;[ ]*$//g' \ sed -e "s/;[ ]*$//g" \
-e 's/^[ ]*//' \ -e "s/^[ ]*//" \
-e 's/[ ]Oid/\ oid/g' \ -e "s/[ ]Oid/\ oid/g" \
-e 's/[ ]NameData/\ name/g' \ -e "s/[ ]NameData/\ name/g" \
-e 's/^Oid/oid/g' \ -e "s/^Oid/oid/g" \
-e 's/^NameData/\name/g' \ -e "s/^NameData/\name/g" \
-e 's/(NameData/(name/g' \ -e "s/(NameData/(name/g" \
-e 's/(Oid/(oid/g' | \ -e "s/(Oid/(oid/g" \
-e "s/NAMEDATALEN/$NAMEDATALEN/g" \
-e "s/OIDNAMELEN/$OIDNAMELEN/g" | \
awk ' awk '
# ---------------- # ----------------
# now use awk to process remaining .h file.. # now use awk to process remaining .h file..
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for commands # Makefile for commands
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/commands/Makefile,v 1.11 1998/01/05 18:42:45 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/commands/Makefile,v 1.12 1998/04/06 00:22:19 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../.. SRCDIR = ../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT = -I.. CFLAGS += -I..
CFLAGS+=$(INCLUDE_OPT)
OBJS = async.o creatinh.o command.o copy.o defind.o define.o \ OBJS = async.o creatinh.o command.o copy.o defind.o define.o \
remove.o rename.o vacuum.o version.o view.o cluster.o \ remove.o rename.o vacuum.o version.o view.o cluster.o \
...@@ -26,7 +24,7 @@ SUBSYS.o: $(OBJS) ...@@ -26,7 +24,7 @@ SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for executor # Makefile for executor
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/executor/Makefile,v 1.6 1998/02/13 03:26:35 vadim Exp $ # $Header: /cvsroot/pgsql/src/backend/executor/Makefile,v 1.7 1998/04/06 00:22:26 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../.. SRCDIR = ../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT = -I.. CFLAGS += -I..
CFLAGS+=$(INCLUDE_OPT)
OBJS = execAmi.o execFlatten.o execJunk.o execMain.o \ OBJS = execAmi.o execFlatten.o execJunk.o execMain.o \
execProcnode.o execQual.o execScan.o execTuples.o \ execProcnode.o execQual.o execScan.o execTuples.o \
...@@ -28,7 +26,7 @@ SUBSYS.o: $(OBJS) ...@@ -28,7 +26,7 @@ SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for libpq subsystem (backend half of libpq interface) # Makefile for libpq subsystem (backend half of libpq interface)
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.10 1997/12/20 00:23:57 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.11 1998/04/06 00:22:39 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../.. SRCDIR = ../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT = -I.. CFLAGS += -I..
CFLAGS+=$(INCLUDE_OPT)
# kerberos flags # kerberos flags
ifdef KRBVERS ifdef KRBVERS
...@@ -36,7 +34,7 @@ be-dumpdata.o be-pqexec.o: ../fmgr.h ...@@ -36,7 +34,7 @@ be-dumpdata.o be-pqexec.o: ../fmgr.h
$(MAKE) -C .. fmgr.h $(MAKE) -C .. fmgr.h
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for main # Makefile for main
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/main/Makefile,v 1.4 1997/12/20 00:24:03 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/main/Makefile,v 1.5 1998/04/06 00:22:51 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../.. SRCDIR = ../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT = -I.. CFLAGS += -I..
CFLAGS+=$(INCLUDE_OPT)
OBJS = main.o OBJS = main.o
...@@ -23,7 +21,7 @@ SUBSYS.o: $(OBJS) ...@@ -23,7 +21,7 @@ SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for nodes # Makefile for nodes
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/nodes/Makefile,v 1.5 1997/12/20 00:24:08 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/nodes/Makefile,v 1.6 1998/04/06 00:23:00 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../.. SRCDIR = ../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT = -I.. CFLAGS += -I..
CFLAGS+=$(INCLUDE_OPT)
OBJS = nodeFuncs.o nodes.o list.o \ OBJS = nodeFuncs.o nodes.o list.o \
copyfuncs.o equalfuncs.o makefuncs.o outfuncs.o readfuncs.o \ copyfuncs.o equalfuncs.o makefuncs.o outfuncs.o readfuncs.o \
...@@ -25,7 +23,7 @@ SUBSYS.o: $(OBJS) ...@@ -25,7 +23,7 @@ SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for optimizer # Makefile for optimizer
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/optimizer/Makefile,v 1.4 1997/06/11 01:12:55 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/optimizer/Makefile,v 1.5 1998/04/06 00:23:04 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -15,28 +15,18 @@ all: submake SUBSYS.o ...@@ -15,28 +15,18 @@ all: submake SUBSYS.o
OBJS = path/SUBSYS.o plan/SUBSYS.o prep/SUBSYS.o util/SUBSYS.o geqo/SUBSYS.o OBJS = path/SUBSYS.o plan/SUBSYS.o prep/SUBSYS.o util/SUBSYS.o geqo/SUBSYS.o
DIRS = path plan prep util geqo
SUBSYS.o: $(OBJS) SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
.PHONY: submake clean .PHONY: submake clean dep depend
submake: submake:
$(MAKE) -C path SUBSYS.o for i in $(DIRS); do $(MAKE) -C $$i SUBSYS.o; done
$(MAKE) -C plan SUBSYS.o
$(MAKE) -C prep SUBSYS.o
$(MAKE) -C util SUBSYS.o
$(MAKE) -C geqo SUBSYS.o
clean: clean:
rm -f SUBSYS.o rm -f SUBSYS.o
$(MAKE) -C path clean for i in $(DIRS); do $(MAKE) -C $$i clean; done
$(MAKE) -C plan clean
$(MAKE) -C prep clean
$(MAKE) -C util clean
$(MAKE) -C geqo clean
.DEFAULT: .DEFAULT:
$(MAKE) -C path $@ for i in $(DIRS); do $(MAKE) -C $$i $@; done
$(MAKE) -C plan $@
$(MAKE) -C prep $@
$(MAKE) -C util $@
$(MAKE) -C geqo $@
...@@ -5,22 +5,19 @@ ...@@ -5,22 +5,19 @@
# #
# Copyright (c) 1994, Regents of the University of California # Copyright (c) 1994, Regents of the University of California
# #
# $Id: Makefile,v 1.9 1997/12/20 00:24:17 scrappy Exp $ # $Id: Makefile,v 1.10 1998/04/06 00:23:07 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
ifeq ($(CC), gcc) ifeq ($(CC), gcc)
CFLAGS+= -Wno-error CFLAGS+= -Wno-error
endif endif
OBJS = geqo_copy.o geqo_eval.o geqo_main.o geqo_misc.o \ OBJS = geqo_copy.o geqo_eval.o geqo_main.o geqo_misc.o \
geqo_params.o geqo_paths.o geqo_pool.o geqo_recombination.o \ geqo_params.o geqo_paths.o geqo_pool.o geqo_recombination.o \
geqo_selection.o \ geqo_selection.o \
...@@ -34,7 +31,7 @@ SUBSYS.o: $(OBJS) ...@@ -34,7 +31,7 @@ SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
......
...@@ -4,16 +4,14 @@ ...@@ -4,16 +4,14 @@
# Makefile for optimizer/path # Makefile for optimizer/path
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/optimizer/path/Makefile,v 1.5 1997/12/20 00:24:23 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/optimizer/path/Makefile,v 1.6 1998/04/06 00:23:17 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = allpaths.o clausesel.o costsize.o hashutils.o indxpath.o \ OBJS = allpaths.o clausesel.o costsize.o hashutils.o indxpath.o \
joinpath.o joinrels.o joinutils.o mergeutils.o orindxpath.o \ joinpath.o joinrels.o joinutils.o mergeutils.o orindxpath.o \
...@@ -27,7 +25,7 @@ SUBSYS.o: $(OBJS) ...@@ -27,7 +25,7 @@ SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment