77#
88#
99# IDENTIFICATION
10- # $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.64 1996/11/1308:36:31 bryanh Exp $
10+ # $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.65 1996/11/1310:35:00 bryanh Exp $
1111#
1212# NOTES
1313# Essentially all Postgres make files include this file and use the
@@ -68,28 +68,13 @@ PORTNAME= UNDEFINED
6868# library), set LINUX_ELF to null in Makefile.custom.
6969LINUX_ELF= 1
7070
71- # SRCDIR specifies where the source files are. It should be defined before
72- # we are included, but for transition purposes, we put this default here.
73- ifdef SRCDIR
74- MKDIR:= $(SRCDIR)/mk
75- else
76- SRCDIR:= $(MKDIR)/..
77- endif
78-
7971LIBPQDIR:= $(SRCDIR)/libpq
8072
8173# For convenience, POSTGRESDIR is where DATADIR, BINDIR, and LIBDIR
8274# and other target destinations are rooted. Of course, each of these is
8375# changable separately.
8476POSTGRESDIR= /usr/local/pgsql
8577
86- # POSTGRESLOGIN is the login name of the user who gets special
87- # privileges within the database. By default it is "postgres", but
88- # you can change it to any existing login name (such as your own
89- # login if you are compiling a private version or don't have root
90- # access).
91- POSTGRESLOGIN= postgres
92-
9378# DATADIR specifies where the postmaster expects to find its database.
9479# This may be overridden by command line options or the PGDATA environment
9580# variable.
@@ -268,17 +253,15 @@ DASH_N= -n
268253BACKSLASH_C=
269254
270255
271- objdir= obj
272-
273256##############################################################################
274257#
275258# Customization.
276259#
277260# This includes your local customizations if Makefile.custom exists
278261# in the source directory. This file doesn't exist in the original
279262# distribution so that it doesn't get overwritten when you upgrade.
280- ifneq ($(wildcard $(MKDIR)/.. /Makefile.custom), )
281- include $(MKDIR)/.. /Makefile.custom
263+ ifneq ($(wildcard $(SRCDIR /Makefile.custom), )
264+ include $(SRCDIR) /Makefile.custom
282265endif
283266
284267#############################################################################
@@ -304,10 +287,9 @@ endif
304287# HISTORY: Before October 1996, this file included the following line:
305288# -include $(MKDIR)/port/postgres.mk.$(PORTNAME)
306289# Now, we instead have all the former contents of those .mk files inline
307- # with ifeq ($(PORTNAME) ...). This makes it a little bit easier to use
308- # Makefile.global because you don't have to set MKDIR too. It also makes
309- # it easier to read the make files. Finally, it should help with
310- # migration to autoconf. - Bryan
290+ # with ifeq ($(PORTNAME) ...). This makes it easier to read the make
291+ # files and to make certain updates. It should also help with the migration
292+ # to autoconf. -Bryan
311293
312294# Since there are no longer separate files for each platform, much of the
313295# commonality among the platforms ought to be factored out of the following.
@@ -548,7 +530,7 @@ INSTALL= /usr/ucb/install
548530# everything to compile. :-/
549531#
550532# The extra -I flag is to scoop up extra BSD-emulating headers.
551- CFLAGS_BE+= -DSYSV_DIRENT -I$(POSTGRESDIR)/src /backend/port/sparc_solaris
533+ CFLAGS_BE+= -DSYSV_DIRENT -I$(SRCDIR) /backend/port/sparc_solaris
552534LDADD_BE+= -lsocket -lnsl
553535
554536LD_ADD+= $(LDADD_BE)
@@ -715,7 +697,7 @@ INSTALL= /home/tools/bin/install
715697# everything to compile. :-/
716698#
717699# The extra -I flag is to scoop up extra BSD-emulating headers.
718- CFLAGS_BE+= -DSYSV_DIRENT -I$(POSTGRESDIR)/src /backend/port/svr4
700+ CFLAGS_BE+= -DSYSV_DIRENT -I$(SRCDIR) /backend/port/svr4
719701LDADD_BE+= -lsocket -lnsl -lc /usr/ucblib/libucb.a
720702
721703LD_ADD+= $(LDADD_BE)
@@ -755,15 +737,6 @@ endif
755737
756738
757739
758- ##############################################################################
759- #
760- # Miscellaneous configuration
761- #
762-
763- srcdir= $(SRCDIR)
764- includedir= $(HEADERDIR)
765-
766-
767740# This goes here so that customization in Makefile.custom is effective
768741##############################################################################
769742#