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
This commit is contained in:
Bruce Momjian 1998-04-06 00:32:26 +00:00
parent 2dfee93457
commit 1e801a8f16
81 changed files with 250 additions and 430 deletions

View File

@ -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 @@
# 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
# 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

View File

@ -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
../../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:
ifeq (depend,$(wildcard depend)) ifeq (depend,$(wildcard depend))
include depend include depend
endif endif

View File

@ -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)
$(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)

View File

@ -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)
$(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)

View File

@ -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)
$(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)

View File

@ -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)
$(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)

View File

@ -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)
$(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)

View File

@ -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)
$(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)

View File

@ -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)
$(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)

View File

@ -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 @@
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:
# 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

View File

@ -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)
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 \

View File

@ -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
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' \
-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..

View File

@ -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)
$(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)

View File

@ -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)
$(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)

View File

@ -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
$(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)

View File

@ -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)
$(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)

View File

@ -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)
$(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)

View File

@ -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
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 $@

View File

@ -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)
$(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)

View File

@ -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)
$(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)

View File

@ -4,16 +4,14 @@
# Makefile for optimizer/plan # Makefile for optimizer/plan
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/optimizer/plan/Makefile,v 1.6 1998/02/13 03:36:51 vadim Exp $ # $Header: /cvsroot/pgsql/src/backend/optimizer/plan/Makefile,v 1.7 1998/04/06 00:23:31 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = createplan.o initsplan.o planmain.o planner.o setrefs.o subselect.o OBJS = createplan.o initsplan.o planmain.o planner.o setrefs.o subselect.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for optimizer/prep # Makefile for optimizer/prep
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/optimizer/prep/Makefile,v 1.6 1997/12/20 00:24:38 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/optimizer/prep/Makefile,v 1.7 1998/04/06 00:23:48 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = prepqual.o preptlist.o prepunion.o OBJS = prepqual.o preptlist.o prepunion.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for optimizer/util # Makefile for optimizer/util
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/optimizer/util/Makefile,v 1.5 1997/12/20 00:24:45 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/optimizer/util/Makefile,v 1.6 1998/04/06 00:23:55 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = clauseinfo.o clauses.o indexnode.o internal.o plancat.o \ OBJS = clauseinfo.o clauses.o indexnode.o internal.o plancat.o \
joininfo.o keys.o ordering.o pathnode.o relnode.o tlist.o var.o joininfo.o keys.o ordering.o pathnode.o relnode.o tlist.o var.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for parser # Makefile for parser
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.14 1998/02/18 07:37:05 thomas Exp $ # $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.15 1998/04/06 00:24:02 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
@ -47,8 +45,8 @@ analyze.o keywords.o scan.o: parse.h
# 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: gram.c scan.c dep depend: gram.c scan.c
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
# Remove scan.c from the clean since we want to avoid rebuilding when using # Remove scan.c from the clean since we want to avoid rebuilding when using
# the original source distribution. This should help Solaris machines whose # the original source distribution. This should help Solaris machines whose

View File

@ -13,16 +13,14 @@
# be converted to Method 2. # be converted to Method 2.
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/port/Attic/Makefile.in,v 1.15 1998/02/24 06:04:30 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/port/Attic/Makefile.in,v 1.16 1998/04/06 00:24:10 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR=../.. SRCDIR=../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT = -I.. CFLAGS+= -I..
CFLAGS+= ${INCLUDE_OPT}
OBJS = dynloader.o @INET_ATON@ @STRERROR@ @MISSING_RANDOM@ @SRANDOM@ OBJS = dynloader.o @INET_ATON@ @STRERROR@ @MISSING_RANDOM@ @SRANDOM@
OBJS+= @GETHOSTNAME@ @GETRUSAGE@ @STRCASECMP@ @STRDUP@ @TAS@ @ISINF@ OBJS+= @GETHOSTNAME@ @GETRUSAGE@ @STRCASECMP@ @STRDUP@ @TAS@ @ISINF@
@ -38,7 +36,7 @@ distclean clean:
rm -f SUBSYS.o $(OBJS) rm -f SUBSYS.o $(OBJS)
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
ifeq (depend,$(wildcard depend)) ifeq (depend,$(wildcard depend))
include depend include depend

View File

@ -4,16 +4,14 @@
# Makefile for postmaster # Makefile for postmaster
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/postmaster/Makefile,v 1.7 1997/12/20 00:26:52 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/postmaster/Makefile,v 1.8 1998/04/06 00:24:26 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../.. SRCDIR = ../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT = -I.. CFLAGS += -I..
CFLAGS+=$(INCLUDE_OPT)
OBJS = postmaster.o OBJS = postmaster.o
@ -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)

View File

@ -4,17 +4,15 @@
# Makefile for regex # Makefile for regex
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/regex/Makefile,v 1.5 1998/03/15 07:38:14 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/regex/Makefile,v 1.6 1998/04/06 00:24:39 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../.. SRCDIR = ../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT = -I.. CFLAGS += -I..
CFLAGS += -DPOSIX_MISTAKE
CFLAGS+=$(INCLUDE_OPT)
CFLAGS+=-DPOSIX_MISTAKE
OBJS = regcomp.o regerror.o regexec.o regfree.o OBJS = regcomp.o regerror.o regexec.o regfree.o
ifdef MB ifdef MB
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for rewrite # Makefile for rewrite
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/rewrite/Makefile,v 1.5 1997/12/20 00:27:05 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/rewrite/Makefile,v 1.6 1998/04/06 00:24:49 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../.. SRCDIR = ../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT = -I.. CFLAGS += -I..
CFLAGS+=$(INCLUDE_OPT)
OBJS = rewriteRemove.o rewriteDefine.o \ OBJS = rewriteRemove.o rewriteDefine.o \
rewriteHandler.o rewriteManip.o rewriteSupport.o locks.o rewriteHandler.o rewriteManip.o rewriteSupport.o locks.o
@ -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)

View File

@ -4,7 +4,7 @@
# Makefile for the storage manager subsystem # Makefile for the storage manager subsystem
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/Makefile,v 1.3 1997/06/11 01:13:10 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/Makefile,v 1.4 1998/04/06 00:24:53 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -16,36 +16,19 @@ all: submake SUBSYS.o
OBJS = buffer/SUBSYS.o file/SUBSYS.o ipc/SUBSYS.o large_object/SUBSYS.o \ OBJS = buffer/SUBSYS.o file/SUBSYS.o ipc/SUBSYS.o large_object/SUBSYS.o \
lmgr/SUBSYS.o page/SUBSYS.o smgr/SUBSYS.o lmgr/SUBSYS.o page/SUBSYS.o smgr/SUBSYS.o
DIRS = buffer file ipc large_object lmgr page smgr
SUBSYS.o: $(OBJS) SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
.PHONY: submake clean dep .PHONY: submake clean dep
submake: submake:
$(MAKE) -C buffer SUBSYS.o for i in $(DIRS); do $(MAKE) -C $$i SUBSYS.o; done
$(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
clean: clean:
rm -f SUBSYS.o rm -f SUBSYS.o
$(MAKE) -C buffer clean for i in $(DIRS); do $(MAKE) -C $$i clean; done
$(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: .DEFAULT:
$(MAKE) -C buffer $@ for i in $(DIRS); do $(MAKE) -C $$i $@; done
$(MAKE) -C file $@
$(MAKE) -C ipc $@
$(MAKE) -C large_object $@
$(MAKE) -C lmgr $@
$(MAKE) -C page $@
$(MAKE) -C smgr $@

View File

@ -4,16 +4,14 @@
# Makefile for storage/buffer # Makefile for storage/buffer
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/buffer/Makefile,v 1.6 1997/12/30 04:01:25 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/buffer/Makefile,v 1.7 1998/04/06 00:24:58 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = buf_table.o buf_init.o bufmgr.o freelist.o localbuf.o s_lock.o OBJS = buf_table.o buf_init.o bufmgr.o freelist.o localbuf.o s_lock.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for storage/file # Makefile for storage/file
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/file/Makefile,v 1.4 1997/12/20 00:27:17 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/file/Makefile,v 1.5 1998/04/06 00:25:05 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = fd.o OBJS = fd.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for storage/ipc # Makefile for storage/ipc
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/ipc/Makefile,v 1.6 1997/12/20 00:27:25 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/ipc/Makefile,v 1.7 1998/04/06 00:25:14 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = ipc.o ipci.o shmem.o shmqueue.o sinval.o \ OBJS = ipc.o ipci.o shmem.o shmqueue.o sinval.o \
sinvaladt.o spin.o sinvaladt.o spin.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for storage/large_object # Makefile for storage/large_object
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/large_object/Makefile,v 1.5 1997/12/20 00:27:35 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/large_object/Makefile,v 1.6 1998/04/06 00:25:30 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = inv_api.o OBJS = inv_api.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for storage/lmgr # Makefile for storage/lmgr
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Makefile,v 1.5 1997/12/20 00:27:44 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Makefile,v 1.6 1998/04/06 00:25:43 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = lmgr.o lock.o multi.o proc.o single.o OBJS = lmgr.o lock.o multi.o proc.o single.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for storage/page # Makefile for storage/page
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/page/Makefile,v 1.5 1997/12/20 00:27:50 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/page/Makefile,v 1.6 1998/04/06 00:25:50 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = bufpage.o itemptr.o OBJS = bufpage.o itemptr.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for storage/smgr # Makefile for storage/smgr
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/smgr/Makefile,v 1.5 1997/12/20 00:27:56 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/smgr/Makefile,v 1.6 1998/04/06 00:25:58 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = md.o mm.o smgr.o smgrtype.o OBJS = md.o mm.o smgr.o smgrtype.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for tcop # Makefile for tcop
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.15 1998/01/05 18:42:59 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.16 1998/04/06 00:26:05 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
@ -42,8 +40,8 @@ postgres.o: ../fmgr.h
../fmgr.h: ../fmgr.h:
$(MAKE) -C .. fmgr.h $(MAKE) -C .. fmgr.h
dep: ../parse.h ../fmgr.h dep depend: ../parse.h ../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)

View File

@ -4,7 +4,7 @@
# Makefile for utils # Makefile for utils
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/Makefile,v 1.5 1997/12/20 00:28:17 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/Makefile,v 1.6 1998/04/06 00:26:13 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -21,21 +21,14 @@ OBJS = fmgrtab.o adt/SUBSYS.o cache/SUBSYS.o error/SUBSYS.o \
fmgr/SUBSYS.o hash/SUBSYS.o init/SUBSYS.o misc/SUBSYS.o mmgr/SUBSYS.o \ fmgr/SUBSYS.o hash/SUBSYS.o init/SUBSYS.o misc/SUBSYS.o mmgr/SUBSYS.o \
sort/SUBSYS.o time/SUBSYS.o sort/SUBSYS.o time/SUBSYS.o
DIRS = adt cache error fmgr hash init misc mmgr sort time
SUBSYS.o: $(OBJS) SUBSYS.o: $(OBJS)
$(LD) -r -o SUBSYS.o $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS)
.PHONY: submake clean dep .PHONY: submake clean dep
submake: submake:
$(MAKE) -C adt SUBSYS.o for i in $(DIRS); do $(MAKE) -C $$i SUBSYS.o; done
$(MAKE) -C cache SUBSYS.o
$(MAKE) -C error SUBSYS.o
$(MAKE) -C fmgr SUBSYS.o
$(MAKE) -C hash SUBSYS.o
$(MAKE) -C init SUBSYS.o
$(MAKE) -C misc SUBSYS.o
$(MAKE) -C mmgr SUBSYS.o
$(MAKE) -C sort SUBSYS.o
$(MAKE) -C time SUBSYS.o
fmgrtab.o: ../fmgr.h fmgrtab.o: ../fmgr.h
@ -47,29 +40,10 @@ fmgr.h fmgrtab.c: ./Gen_fmgrtab.sh ../../include/catalog/pg_proc.h
clean: clean:
rm -f SUBSYS.o fmgr.h fmgrtab.o fmgrtab.c rm -f SUBSYS.o fmgr.h fmgrtab.o fmgrtab.c
$(MAKE) -C adt clean for i in $(DIRS); do $(MAKE) -C $$i clean; done
$(MAKE) -C cache clean
$(MAKE) -C error clean
$(MAKE) -C fmgr clean
$(MAKE) -C hash clean
$(MAKE) -C init clean
$(MAKE) -C misc clean
$(MAKE) -C mmgr clean
$(MAKE) -C sort clean
$(MAKE) -C time clean
dep: fmgr.h fmgrtab.c dep depend: fmgr.h fmgrtab.c
$(CC) -MM $(INCLUDE_OPT) *.c >depend for i in $(DIRS); do $(MAKE) -C $$i depend; done
$(MAKE) -C adt dep
$(MAKE) -C cache dep
$(MAKE) -C error dep
$(MAKE) -C fmgr dep
$(MAKE) -C hash dep
$(MAKE) -C init dep
$(MAKE) -C misc dep
$(MAKE) -C mmgr dep
$(MAKE) -C sort dep
$(MAKE) -C time dep
ifeq (depend,$(wildcard depend)) ifeq (depend,$(wildcard depend))
include depend include depend

View File

@ -4,16 +4,15 @@
# Makefile for utils/adt # Makefile for utils/adt
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.11 1998/03/15 07:38:42 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.12 1998/04/06 00:26:19 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
ifdef MB ifdef MB
CFLAGS+=-DMB=$(MB) CFLAGS+=-DMB=$(MB)
endif endif
@ -31,7 +30,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)

View File

@ -4,16 +4,14 @@
# Makefile for utils/cache # Makefile for utils/cache
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/cache/Makefile,v 1.5 1997/12/20 00:28:29 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/cache/Makefile,v 1.6 1998/04/06 00:26:33 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = catcache.o inval.o rel.o relcache.o syscache.o lsyscache.o fcache.o OBJS = catcache.o inval.o rel.o relcache.o syscache.o lsyscache.o fcache.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for utils/error # Makefile for utils/error
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/error/Makefile,v 1.4 1997/12/20 00:28:38 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/error/Makefile,v 1.5 1998/04/06 00:26:45 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = assert.o elog.o exc.o excabort.o excid.o format.o OBJS = assert.o elog.o exc.o excabort.o excid.o format.o
@ -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)

View File

@ -4,24 +4,14 @@
# Makefile for utils/fmgr # Makefile for utils/fmgr
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/fmgr/Makefile,v 1.5 1997/12/20 00:28:47 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/fmgr/Makefile,v 1.6 1998/04/06 00:26:52 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
ifeq ($(PORTNAME), linux)
# LINUX_ELF tells us to use the ELF dynamic load facilities that come with
# Linux.
ifdef LINUX_ELF
CFLAGS+=-DLINUX_ELF
endif
endif
OBJS = dfmgr.o fmgr.o OBJS = dfmgr.o fmgr.o
@ -31,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)

View File

@ -4,16 +4,14 @@
# Makefile for utils/hash # Makefile for utils/hash
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/hash/Makefile,v 1.4 1997/12/20 00:28:58 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/hash/Makefile,v 1.5 1998/04/06 00:26:58 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = dynahash.o hashfn.o OBJS = dynahash.o hashfn.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for utils/init # Makefile for utils/init
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/init/Makefile,v 1.6 1997/12/20 00:29:06 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/init/Makefile,v 1.7 1998/04/06 00:27:07 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS += $(INCLUDE_OPT)
OBJS = enbl.o findbe.o globals.o miscinit.o postinit.o OBJS = enbl.o findbe.o globals.o miscinit.o postinit.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for utils/misc # Makefile for utils/misc
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.5 1997/12/20 00:29:12 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.6 1998/04/06 00:27:16 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS += $(INCLUDE_OPT)
OBJS = database.o superuser.o OBJS = database.o superuser.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for utils/mmgr # Makefile for utils/mmgr
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Makefile,v 1.4 1997/12/20 00:29:19 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Makefile,v 1.5 1998/04/06 00:27:24 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = aset.o mcxt.o palloc.o portalmem.o oset.o OBJS = aset.o mcxt.o palloc.o portalmem.o oset.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for utils/sort # Makefile for utils/sort
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/sort/Makefile,v 1.4 1997/12/20 00:29:29 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/sort/Makefile,v 1.5 1998/04/06 00:27:37 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = lselect.o psort.o OBJS = lselect.o psort.o
@ -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)

View File

@ -4,16 +4,14 @@
# Makefile for utils/time # Makefile for utils/time
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/time/Makefile,v 1.4 1997/12/20 00:29:35 scrappy Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/time/Makefile,v 1.5 1998/04/06 00:27:42 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR = ../../.. SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
INCLUDE_OPT = -I../.. CFLAGS += -I../..
CFLAGS+=$(INCLUDE_OPT)
OBJS = tqual.o OBJS = tqual.o
@ -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)

View File

@ -7,35 +7,22 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/Makefile,v 1.11 1997/11/07 06:24:33 thomas Exp $ # $Header: /cvsroot/pgsql/src/bin/Makefile,v 1.12 1998/04/06 00:27:50 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR= .. SRCDIR= ..
include ../Makefile.global include ../Makefile.global
.DEFAULT all: DIRS = pg_id pg_version psql pg_dump pg_passwd cleardbdir createuser \
# destroydb initdb initlocation
# C programs
#
$(MAKE) -C pg_id $@
$(MAKE) -C pg_version $@
$(MAKE) -C psql $@
$(MAKE) -C pg_dump $@
$(MAKE) -C pg_passwd $@
#
# Shell scripts
#
$(MAKE) -C cleardbdir $@
$(MAKE) -C createdb $@
$(MAKE) -C createuser $@
$(MAKE) -C destroydb $@
$(MAKE) -C destroyuser $@
$(MAKE) -C initdb $@
$(MAKE) -C initlocation $@
# #
# TCL/TK programs # TCL/TK programs
# #
ifeq ($(USE_TCL), true) ifeq ($(USE_TCL), true)
$(MAKE) -C pgtclsh $@ DIRS += pgtclsh
endif endif
.DEFAULT all:
for i in $(DIRS); do $(MAKE) -C $$i $@; done

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/cleardbdir/Attic/Makefile,v 1.5 1998/04/05 21:59:52 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/cleardbdir/Attic/Makefile,v 1.6 1998/04/06 00:27:55 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -25,4 +25,4 @@ install: cleardbdir
clean: clean:
rm -f cleardbdir rm -f cleardbdir
dep: dep depend:

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/createdb/Attic/Makefile,v 1.5 1998/04/05 21:59:55 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/createdb/Attic/Makefile,v 1.6 1998/04/06 00:28:04 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -25,4 +25,4 @@ install: createdb
clean: clean:
rm -f createdb rm -f createdb
dep: dep depend:

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/createuser/Attic/Makefile,v 1.5 1998/04/05 21:59:59 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/createuser/Attic/Makefile,v 1.6 1998/04/06 00:28:16 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -29,4 +29,4 @@ install: createuser
clean: clean:
rm -f createuser rm -f createuser
dep: dep depend:

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/destroydb/Attic/Makefile,v 1.5 1998/04/05 22:00:08 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/destroydb/Attic/Makefile,v 1.6 1998/04/06 00:28:25 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -25,4 +25,4 @@ install: destroydb
clean: clean:
rm -f destroydb rm -f destroydb
dep: dep depend:

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/destroyuser/Attic/Makefile,v 1.5 1998/04/05 22:00:20 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/destroyuser/Attic/Makefile,v 1.6 1998/04/06 00:28:37 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -29,4 +29,4 @@ install: destroyuser
clean: clean:
rm -f destroyuser rm -f destroyuser
dep: dep depend:

View File

@ -7,26 +7,19 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.5 1998/04/05 22:00:33 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.6 1998/04/06 00:28:46 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR= ../.. SRCDIR= ../..
include ../../Makefile.global include ../../Makefile.global
SEDSCRIPT= \
-e "s^_fUnKy_NAMEDATALEN_sTuFf_^$(NAMEDATALEN)^g" \
-e "s^_fUnKy_OIDNAMELEN_sTuFf_^$(OIDNAMELEN)^g"
all: initdb all: initdb
initdb: initdb.sh
sed $(SEDSCRIPT) <initdb.sh >initdb
install: initdb install: initdb
$(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$< $(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$<
clean: clean:
rm -f initdb rm -f initdb
dep: dep depend:

View File

@ -26,7 +26,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.40 1998/03/22 19:35:30 scrappy Exp $ # $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.41 1998/04/06 00:28:53 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -36,9 +36,6 @@
# #
# ---------------- # ----------------
NAMEDATALEN=_fUnKy_NAMEDATALEN_sTuFf_
OIDNAMELEN=_fUnKy_OIDNAMELEN_sTuFf_
CMDNAME=`basename $0` CMDNAME=`basename $0`
# Find the default PGLIB directory (the directory that contains miscellaneous # Find the default PGLIB directory (the directory that contains miscellaneous
@ -266,8 +263,6 @@ echo "Running: postgres $BACKENDARGS template1"
cat $TEMPLATE \ cat $TEMPLATE \
| sed -e "s/postgres PGUID/$POSTGRES_SUPERUSERNAME $POSTGRES_SUPERUID/" \ | sed -e "s/postgres PGUID/$POSTGRES_SUPERUSERNAME $POSTGRES_SUPERUID/" \
-e "s/NAMEDATALEN/$NAMEDATALEN/g" \
-e "s/OIDNAMELEN/$OIDNAMELEN/g" \
-e "s/PGUID/$POSTGRES_SUPERUID/" \ -e "s/PGUID/$POSTGRES_SUPERUID/" \
| postgres $BACKENDARGS template1 | postgres $BACKENDARGS template1
@ -296,8 +291,6 @@ if [ $template_only -eq 0 ]; then
cat $GLOBAL \ cat $GLOBAL \
| sed -e "s/postgres PGUID/$POSTGRES_SUPERUSERNAME $POSTGRES_SUPERUID/" \ | sed -e "s/postgres PGUID/$POSTGRES_SUPERUSERNAME $POSTGRES_SUPERUID/" \
-e "s/NAMEDATALEN/$NAMEDATALEN/g" \
-e "s/OIDNAMELEN/$OIDNAMELEN/g" \
-e "s/PGUID/$POSTGRES_SUPERUID/" \ -e "s/PGUID/$POSTGRES_SUPERUID/" \
| postgres $BACKENDARGS template1 | postgres $BACKENDARGS template1

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/Makefile,v 1.2 1998/04/05 22:00:40 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/Makefile,v 1.3 1998/04/06 00:29:00 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -29,4 +29,4 @@ install: initlocation
clean: clean:
rm -f initlocation rm -f initlocation
dep: dep depend:

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/Makefile,v 1.4 1998/04/05 22:00:48 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/Makefile,v 1.5 1998/04/06 00:29:03 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -28,4 +28,4 @@ install: ipcclean
clean: clean:
rm -f ipcclean rm -f ipcclean
dep: dep depend:

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/Makefile.in,v 1.6 1998/04/05 22:00:58 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/Makefile.in,v 1.7 1998/04/06 00:29:08 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -43,7 +43,7 @@ install: pg_dump
$(INSTALL) $(INSTL_EXE_OPTS) pg_dumpall $(BINDIR)/pg_dumpall $(INSTALL) $(INSTL_EXE_OPTS) pg_dumpall $(BINDIR)/pg_dumpall
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f pg_dump $(OBJS) rm -f pg_dump $(OBJS)

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/Makefile,v 1.8 1998/04/05 22:01:10 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/Makefile,v 1.9 1998/04/06 00:29:14 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -36,7 +36,7 @@ install: pg_id
$(INSTALL) $(INSTL_EXE_OPTS) pg_id $(BINDIR)/pg_id $(INSTALL) $(INSTL_EXE_OPTS) pg_id $(BINDIR)/pg_id
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f pg_id $(OBJS) rm -f pg_id $(OBJS)

View File

@ -22,7 +22,7 @@ submake:
$(MAKE) -C $(LIBPQDIR) libpq.a $(MAKE) -C $(LIBPQDIR) libpq.a
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f pg_passwd $(OBJS) rm -f pg_passwd $(OBJS)

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/pg_version/Attic/Makefile.in,v 1.2 1998/04/05 22:01:30 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/pg_version/Attic/Makefile.in,v 1.3 1998/04/06 00:29:36 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -31,7 +31,7 @@ install: pg_version
$(INSTALL) $(INSTL_EXE_OPTS) pg_version $(BINDIR)/pg_version $(INSTALL) $(INSTL_EXE_OPTS) pg_version $(BINDIR)/pg_version
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f pg_version pg_version.o rm -f pg_version pg_version.o

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/pgtclsh/Attic/Makefile,v 1.14 1998/04/05 22:01:35 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/pgtclsh/Attic/Makefile,v 1.15 1998/04/06 00:29:46 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -42,3 +42,6 @@ install: pgtclsh pgtksh
clean: clean:
rm -f pgtclAppInit.o pgtkAppInit.o pgtclsh pgtksh rm -f pgtclAppInit.o pgtkAppInit.o pgtclsh pgtksh
dep depend:
$(CC) -MM $(CFLAGS) *.c > depend

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.8 1998/04/05 22:01:41 momjian Exp $ # $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.9 1998/04/06 00:29:56 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -42,7 +42,7 @@ install: psql
$(INSTALL) $(INSTL_EXE_OPTS) psql $(BINDIR)/psql $(INSTALL) $(INSTL_EXE_OPTS) psql $(BINDIR)/psql
depend dep: depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
clean: clean:
rm -f psql $(OBJS) rm -f psql $(OBJS)

View File

@ -1,4 +1,4 @@
all install uninstall clean: all install uninstall clean dep depend:
$(MAKE) -C include $@ $(MAKE) -C include $@
$(MAKE) -C lib $@ $(MAKE) -C lib $@
$(MAKE) -C preproc $@ $(MAKE) -C preproc $@

View File

@ -14,3 +14,5 @@ uninstall::
rm -f $(HEADERDIR)/ecpglib.h rm -f $(HEADERDIR)/ecpglib.h
rm -f $(HEADERDIR)/ecpgtype.h rm -f $(HEADERDIR)/ecpgtype.h
rm -f $(HEADERDIR)/sqlca.h rm -f $(HEADERDIR)/sqlca.h
dep depend:

View File

@ -53,6 +53,8 @@ $(shlib): ecpglib.o typename.o
clean: clean:
rm -f *.o *.a core a.out *~ $(shlib) libecpg.so rm -f *.o *.a core a.out *~ $(shlib) libecpg.so
dep depend:
install: libecpg.a $(shlib) $(install-shlib-dep) install: libecpg.a $(shlib) $(install-shlib-dep)
$(INSTALL) $(INSTLOPTS) libecpg.a $(LIBDIR) $(INSTALL) $(INSTLOPTS) libecpg.a $(LIBDIR)

View File

@ -20,6 +20,9 @@ install: all
uninstall: uninstall:
rm -f $(BINDIR)/ecpg rm -f $(BINDIR)/ecpg
dep depend:
$(CC) -MM $(CFLAGS) *.c > depend
# Rule that really do something. # Rule that really do something.
ecpg: y.tab.o pgc.o type.o ecpg.o ../lib/typename.o ecpg: y.tab.o pgc.o type.o ecpg.o ../lib/typename.o
$(CC) -o ecpg y.tab.o pgc.o type.o ecpg.o ../lib/typename.o $(LEXLIB) $(CC) -o ecpg y.tab.o pgc.o type.o ecpg.o ../lib/typename.o $(LEXLIB)

View File

@ -12,3 +12,5 @@ perftest.c: perftest.pgc
clean: clean:
/bin/rm test2 test2.c perftest perftest.c log /bin/rm test2 test2.c perftest perftest.c log
dep depend:

View File

@ -4,7 +4,7 @@
# Makefile for Java JDBC interface # Makefile for Java JDBC interface
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.6 1998/02/09 03:22:30 scrappy Exp $ # $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.7 1998/04/06 00:30:36 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -44,6 +44,8 @@ all: postgresql.jar
@echo ------------------------------------------------------------ @echo ------------------------------------------------------------
@echo @echo
dep depend:
# This rule builds the javadoc documentation # This rule builds the javadoc documentation
doc: doc:
export CLASSPATH=.;\ export CLASSPATH=.;\

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.7 1998/04/05 22:02:29 momjian Exp $ # $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.8 1998/04/06 00:30:46 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -104,3 +104,5 @@ install-shlib: $(shlib)
.PHONY: clean .PHONY: clean
clean: clean:
rm -f $(OBJS) $(shlib) libpgtcl.a libpgtcl.so rm -f $(OBJS) $(shlib) libpgtcl.a libpgtcl.so
dep depend:

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile,v 1.11 1998/04/05 22:02:41 momjian Exp $ # $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile,v 1.12 1998/04/06 00:31:13 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -117,9 +117,9 @@ clean:
rm $(LIBNAME).a $(OBJS) rm $(LIBNAME).a $(OBJS)
$(MAKE) -C examples clean $(MAKE) -C examples clean
dep depend:
$(CXX) -MM $(CXXFLAGS) *.cc > depend
########################################################################### ifeq (depend,$(wildcard depend))
# Dependencies for the library include depend
########################################################################### endif
include ./dependencies

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.10 1998/04/05 22:02:33 momjian Exp $ # $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.11 1998/04/06 00:30:58 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -178,7 +178,7 @@ install-shlib: $(shlib)
ln -s $(shlib) $(LIBDIR)/libpq.so ln -s $(shlib) $(LIBDIR)/libpq.so
depend dep: depend dep:
$(CC) -MM *.c >depend $(CC) -MM $(CFLAGS) *.c >depend
.PHONY: clean .PHONY: clean
clean: clean:

View File

@ -20,3 +20,5 @@ lextest: lextest.c scan.l
clean: clean:
rm -f lextest lex.yy.c lex.yy.o lextest.o rm -f lextest lex.yy.c lex.yy.o lextest.o
dep:

View File

@ -1,11 +1,5 @@
ifdef LINUX_ELF
# test for __ELF__ in C code so do not need LINUX_ELF defined
# - thomas 1997-12-29
#CFLAGS+= -DLINUX_ELF
LDFLAGS+= -export-dynamic -Wl,-rpath -Wl,$(LIBDIR) LDFLAGS+= -export-dynamic -Wl,-rpath -Wl,$(LIBDIR)
endif
MK_NO_LORDER= true MK_NO_LORDER= true
%.so: %.o %.so: %.o
$(CC) -shared -o $@ $< $(CC) -shared -o $@ $<

View File

@ -8,28 +8,26 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/man/Attic/Makefile,v 1.3 1996/11/20 22:53:49 momjian Exp $ # $Header: /cvsroot/pgsql/src/man/Attic/Makefile,v 1.4 1998/04/06 00:31:52 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR=.. SRCDIR=..
include ../Makefile.global include ../Makefile.global
install-man: install:
-mkdir -p $(POSTMANDIR) -mkdir -p $(POSTMANDIR)
-mkdir $(POSTMANDIR)/man1 -mkdir -p $(POSTMANDIR)/man1
-mkdir $(POSTMANDIR)/man3 -mkdir -p $(POSTMANDIR)/man3
-mkdir $(POSTMANDIR)/man5 -mkdir -p $(POSTMANDIR)/man5
-mkdir $(POSTMANDIR)/manl -mkdir -p $(POSTMANDIR)/manl
cp *.1* $(POSTMANDIR)/man1 cp *.1* $(POSTMANDIR)/man1
cp *.3* $(POSTMANDIR)/man3 cp *.3* $(POSTMANDIR)/man3
cp *.5* $(POSTMANDIR)/man5 cp *.5* $(POSTMANDIR)/man5
cp *.l* $(POSTMANDIR)/manl cp *.l* $(POSTMANDIR)/manl
install:: install-man
clean: clean:
# do nothing
all: all:
# do nothing
dep depend:

View File

@ -4,7 +4,7 @@
# Makefile for the pltcl shared object # Makefile for the pltcl shared object
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.2 1998/04/05 22:02:56 momjian Exp $ # $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.3 1998/04/06 00:31:59 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -89,3 +89,4 @@ clean:
install: all install: all
$(INSTALL) $(INSTL_LIB_OPTS) $(DLOBJS) $(LIBDIR)/$(DLOBJS) $(INSTALL) $(INSTL_LIB_OPTS) $(DLOBJS) $(LIBDIR)/$(DLOBJS)
dep depend:

View File

@ -1,8 +1,8 @@
AROPT:crs AROPT:crs
CFLAGS:-O2 CFLAGS:-O2 -g
SHARED_LIB:-fpic SHARED_LIB:-fpic
ALL: ALL:
SRCH_INC:/usr/include/ncurses /usr/include/readline SRCH_INC:
SRCH_LIB: SRCH_LIB:
USE_LOCALE:no USE_LOCALE:no
DLSUFFIX:.so DLSUFFIX:.so

View File

@ -2,7 +2,7 @@ AROPT:crs
CFLAGS:-O2 CFLAGS:-O2
SHARED_LIB:-fpic SHARED_LIB:-fpic
ALL: ALL:
SRCH_INC:/usr/include/ncurses /usr/include/readline SRCH_INC:
SRCH_LIB: SRCH_LIB:
USE_LOCALE:no USE_LOCALE:no
DLSUFFIX:.so DLSUFFIX:.so

View File

@ -2,7 +2,7 @@ AROPT:crs
CFLAGS:-O2 CFLAGS:-O2
SHARED_LIB:-fpic SHARED_LIB:-fpic
ALL: ALL:
SRCH_INC:/usr/include/ncurses /usr/include/readline SRCH_INC:
SRCH_LIB: SRCH_LIB:
USE_LOCALE:no USE_LOCALE:no
DLSUFFIX:.so DLSUFFIX:.so

View File

@ -4,7 +4,7 @@
# Makefile for utils # Makefile for utils
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/utils/Attic/Makefile,v 1.4 1998/02/27 02:41:21 scrappy Exp $ # $Header: /cvsroot/pgsql/src/utils/Attic/Makefile,v 1.5 1998/04/06 00:32:26 momjian Exp $
# #
# About strdup: Some systems have strdup in their standard library, others # About strdup: Some systems have strdup in their standard library, others
# don't. Ones that don't will use this make file to compile the strdup.c # don't. Ones that don't will use this make file to compile the strdup.c
@ -23,7 +23,7 @@ all: version.o
install: install:
depend dep: depend dep:
$(CC) -MM *.c >depend $(CC) $(CFLAGS) -MM *.c >depend
clean: clean:
rm -f version.o rm -f version.o