Commit a7511908 authored by Bryan Henderson's avatar Bryan Henderson

Add DASH_N, BACKSLASH_C variables, moved from postgres.shell.mk.

parent 58413fd9
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.61 1996/11/11 12:19:05 scrappy Exp $ # $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.62 1996/11/11 13:24:43 bryanh Exp $
# #
# NOTES # NOTES
# This is seen by any Makefiles that include mk/postgres.mk. To # This is seen by any Makefiles that include mk/postgres.mk. To
...@@ -37,29 +37,30 @@ ...@@ -37,29 +37,30 @@
# of the port. # of the port.
# The name of the port. Valid choices are: # The name of the port. Valid choices are:
# alpha - DEC Alpha AXP on OSF/1 2.0 # alpha DEC Alpha AXP on OSF/1 2.0
# hpux - HP PA-RISC on HP-UX 9.0 # hpux HP PA-RISC on HP-UX 9.0
# i386_solaris - i386 Solaris # i386_solaris i386 Solaris
# sparc_solaris - SUN SPARC on Solaris 2.4 # sparc_solaris SUN SPARC on Solaris 2.4
# sparc - SUN SPARC on SunOS 4.1.3 # sparc SUN SPARC on SunOS 4.1.3
# ultrix4 - DEC MIPS on Ultrix 4.4 # ultrix4 DEC MIPS on Ultrix 4.4
# linux - Intel x86 on Linux 1.2 and Linux ELF # linux Intel x86 on Linux 1.2 and Linux ELF
# (For non-ELF Linux, see LINUX_ELF below). # (For non-ELF Linux, see LINUX_ELF below).
# BSD44_derived - OSs derived from 4.4-lite BSD (NetBSD, FreeBSD) # BSD44_derived OSs derived from 4.4-lite BSD (NetBSD, FreeBSD)
# bsdi - BSD/OS 2.0, 2.01, 2.1 # bsdi BSD/OS 2.0, 2.01, 2.1
# aix - IBM on AIX 3.2.5 # aix IBM on AIX 3.2.5
# irix5 - SGI MIPS on IRIX 5.3 # irix5 SGI MIPS on IRIX 5.3
# dgux - DG/UX 5.4R3.10 # dgux DG/UX 5.4R3.10
# Some hooks are provided for # Some hooks are provided for
# svr4 - Intel x86 on Intel SVR4 # svr4 Intel x86 on Intel SVR4
# next - Motorola MC68K or Intel x86 on NeXTSTEP 3.2 # next Motorola MC68K or Intel x86 on NeXTSTEP 3.2
# but these are guaranteed not to work as of yet. # but these are guaranteed not to work as of yet.
# #
# Note that portname is defined here to be UNDEFINED to remind you # Note that portname is defined here to be UNDEFINED to remind you
# to change it in Makefile.custom. # to change it in Makefile.custom.
#
# make sure that you have no whitespaces after the PORTNAME setting # make sure that you have no whitespaces after the PORTNAME setting
# or the makefiles can get confused # or the makefiles can get confused
PORTNAME= UNKNOWN PORTNAME= UNDEFINED
# Ignore LINUX_ELF if you're not using Linux. But if you are, and you're # 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 # compiling to a.out (which means you're using the dld dynamic loading
...@@ -69,11 +70,13 @@ LINUX_ELF= 1 ...@@ -69,11 +70,13 @@ LINUX_ELF= 1
# SRCDIR specifies where the source files are. It should be defined before # SRCDIR specifies where the source files are. It should be defined before
# we are included, but for transition purposes, we put this default here. # we are included, but for transition purposes, we put this default here.
ifdef SRCDIR ifdef SRCDIR
MKDIR= $(SRCDIR)/mk MKDIR:= $(SRCDIR)/mk
else else
SRCDIR= /usr/local/pgsql/src SRCDIR:= $(MKDIR)/..
endif endif
LIBPQDIR:= $(SRCDIR)/libpq
# For convenience, POSTGRESDIR is where DATADIR, BINDIR, and LIBDIR # For convenience, POSTGRESDIR is where DATADIR, BINDIR, and LIBDIR
# and other target destinations are rooted. Of course, each of these is # and other target destinations are rooted. Of course, each of these is
# changable separately. # changable separately.
...@@ -130,9 +133,9 @@ POSTPORT= 5432 ...@@ -130,9 +133,9 @@ POSTPORT= 5432
# THERE ARE REDUNDANT DEFINITIONS OF THESE VALUES IN config.h. # THERE ARE REDUNDANT DEFINITIONS OF THESE VALUES IN config.h.
# Don't change anything here without changing it there too. # Don't change anything here without changing it there too.
NAMEDATALEN = 32 NAMEDATALEN= 32
# OIDNAMELEN should be set to NAMEDATALEN + sizeof(Oid) # OIDNAMELEN should be set to NAMEDATALEN + sizeof(Oid)
OIDNAMELEN = 36 OIDNAMELEN= 36
############################################################################## ##############################################################################
# #
...@@ -221,32 +224,47 @@ endif ...@@ -221,32 +224,47 @@ endif
# #
TCL_INCDIR= /home/tools/include TCL_INCDIR= /home/tools/include
TCL_LIBDIR= /home/tools/lib TCL_LIBDIR= /home/tools/lib
TCL_LIB = -ltcl7.5 TCL_LIB= -ltcl7.5
TK_INCDIR= /home/tools/include TK_INCDIR= /home/tools/include
TK_LIBDIR= /home/tools/lib TK_LIBDIR= /home/tools/lib
TK_LIB = -ltk4.1 TK_LIB= -ltk4.1
X11_INCDIR = /usr/include X11_INCDIR= /usr/include
X11_LIBDIR = /usr/lib X11_LIBDIR= /usr/lib
X11_LIB = -lX11 -lsocket -lnsl X11_LIB= -lX11 -lsocket -lnsl
############################################################################## ##############################################################################
# #
# YACC # YACC
YFLAGS = -d YFLAGS= -d
############################################################################## ##############################################################################
# #
# Installation. # Installation.
# #
# For many ports, INSTALL is overridden below. # For many ports, INSTALL is overridden below.
INSTALL = install INSTALL= install
RANLIB = ranlib RANLIB= ranlib
INSTLOPTS= -c -m 444
INSTL_EXE_OPTS= -c -m 555
INSTL_LIB_OPTS= -c -m 664
##############################################################################
#
# For building shell scripts:
#
# For many ports, these are overridden below.
# DASH_N is what we put before the text on an echo command when we don't
# want a trailing newline. BACKSLASH_C is what we put at the end of the
# string on a echo command when we don't want a trailing newline. On
# some systems, you do echo -n "no newline after this", while on others
# you do echo "no newline after this\c".
INSTLOPTS = -c -m 444 DASH_N= -n
INSTL_EXE_OPTS = -c -m 555 BACKSLASH_C=
INSTL_LIB_OPTS = -c -m 664
objdir= obj objdir= obj
...@@ -314,13 +332,13 @@ INSTALL= /usr/bin/install ...@@ -314,13 +332,13 @@ INSTALL= /usr/bin/install
RANLIB= /usr/bin/ranlib RANLIB= /usr/bin/ranlib
# FreeBSD 2.1R with new Flex v2.5.2 in /usr/local # FreeBSD 2.1R with new Flex v2.5.2 in /usr/local
LEX = flex LEX= flex
LDADD+= -L/usr/local/lib -lfl LDADD+= -L/usr/local/lib -lfl
# #
# for postgres.user.mk # for postgres.user.mk
# #
CFLAGS_SL = -fpic -DPIC CFLAGS_SL= -fpic -DPIC
ifneq ($(HOSTTYPE), mips) ifneq ($(HOSTTYPE), mips)
SLSUFF= .so SLSUFF= .so
...@@ -407,7 +425,7 @@ CFLAGS_BE+= -DNOPRINTADE ...@@ -407,7 +425,7 @@ CFLAGS_BE+= -DNOPRINTADE
endif endif
# use the regex library # use the regex library
USE_REGEX = 1 USE_REGEX= 1
# #
# for postgres.user.mk # for postgres.user.mk
...@@ -420,11 +438,8 @@ SLSUFF= .so ...@@ -420,11 +438,8 @@ SLSUFF= .so
CLEANFILES+= so_locations CLEANFILES+= so_locations
#
# for postgres.shell.mk
#
DASH_N= DASH_N=
BACKSLASH_C='\\\\c' BACKSLASH_C= '\\\\c'
endif endif
...@@ -453,9 +468,9 @@ else ...@@ -453,9 +468,9 @@ else
# gcc is gcc v2.6.3 # gcc is gcc v2.6.3
LEX= flex LEX= flex
# use the regex library # use the regex library
USE_REGEX = 1 USE_REGEX= 1
CFLAGS_BE = -DPRE_BSDI_2_1 CFLAGS_BE= -DPRE_BSDI_2_1
LDADD_BE = -ldld -lcompat LDADD_BE= -ldld -lcompat
endif endif
# #
...@@ -486,8 +501,8 @@ CC= gcc ...@@ -486,8 +501,8 @@ CC= gcc
CFLAGS_BE= -D__USE_POSIX_SIGNALS -DUSE_POSIX_SIGNALS CFLAGS_BE= -D__USE_POSIX_SIGNALS -DUSE_POSIX_SIGNALS
LDADD_BE= -ldl -lfl LDADD_BE= -ldl -lfl
LEX = flex LEX= flex
YACC = bison -y YACC= bison -y
INSTALL=/usr/bin/X11/bsdinst INSTALL=/usr/bin/X11/bsdinst
...@@ -507,8 +522,8 @@ ifdef ENFORCE_ALIGNMENT ...@@ -507,8 +522,8 @@ ifdef ENFORCE_ALIGNMENT
CFLAGS_BE= -DNOFIXADE CFLAGS_BE= -DNOFIXADE
else else
HPUX_VERS:= $(shell uname -r) HPUX_VERS:= $(shell uname -r)
HPUX_MAJOR=${HPUX_VERS:R:E} HPUX_MAJOR= ${HPUX_VERS:R:E}
HPUX_MINOR=${HPUX_VERS:E} HPUX_MINOR= ${HPUX_VERS:E}
ifeq ($(HPUX_MAJOR), 08) ifeq ($(HPUX_MAJOR), 08)
CFLAGS_BE+= +u -DHP_S500_ALIGN CFLAGS_BE+= +u -DHP_S500_ALIGN
LDFLAGS_BE+= +u LDFLAGS_BE+= +u
...@@ -531,7 +546,7 @@ endif ...@@ -531,7 +546,7 @@ endif
INSTALL= bsdinst INSTALL= bsdinst
# RANLIB is not used on HP-UX # RANLIB is not used on HP-UX
RANLIB=touch RANLIB= touch
# #
# for postgres.user.mk # for postgres.user.mk
...@@ -542,11 +557,8 @@ SLSUFF= .sl ...@@ -542,11 +557,8 @@ SLSUFF= .sl
%.sl: %.o %.sl: %.o
$(LD) -b -o $(objdir)/$(@F) $(objdir)/$(<F) $(LD) -b -o $(objdir)/$(@F) $(objdir)/$(<F)
#
# for postgres.shell.mk
#
DASH_N= '' DASH_N= ''
BACKSLASH_C='\\\\c' BACKSLASH_C= '\\\\c'
endif endif
...@@ -564,9 +576,9 @@ CC= gcc ...@@ -564,9 +576,9 @@ CC= gcc
CFLAGS_BE+= -DUSE_POSIX_SIGNALS CFLAGS_BE+= -DUSE_POSIX_SIGNALS
# RANLIB is not used on solaris # RANLIB is not used on solaris
RANLIB=touch RANLIB= touch
INSTALL=/usr/ucb/install INSTALL= /usr/ucb/install
# #
# Random things that must be passed everywhere to enable # Random things that must be passed everywhere to enable
...@@ -592,9 +604,6 @@ SLSUFF= .so ...@@ -592,9 +604,6 @@ SLSUFF= .so
%.so: %.o %.so: %.o
$(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F) $(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F)
#
# for postgres.shell.mk
#
DASH_N='' DASH_N=''
BACKSLASH_C='\\\\c' BACKSLASH_C='\\\\c'
...@@ -613,9 +622,9 @@ CC= cc ...@@ -613,9 +622,9 @@ CC= cc
CFLAGS_BE+= -DUSE_POSIX_SIGNALS CFLAGS_BE+= -DUSE_POSIX_SIGNALS
# RANLIB is not used on IRIX 5 # RANLIB is not used on IRIX 5
RANLIB=touch RANLIB= touch
INSTALL=/sbin/bsdinst INSTALL= /sbin/bsdinst
INSTLOPTS= -m 444 INSTLOPTS= -m 444
INSTL_EXE_OPTS= -m 555 INSTL_EXE_OPTS= -m 555
...@@ -634,9 +643,6 @@ SLSUFF= .so ...@@ -634,9 +643,6 @@ SLSUFF= .so
%.so: %.o %.so: %.o
$(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F) $(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F)
#
# for postgres.shell.mk
#
DASH_N='' DASH_N=''
BACKSLASH_C='\\\\c' BACKSLASH_C='\\\\c'
...@@ -656,7 +662,7 @@ endif ...@@ -656,7 +662,7 @@ endif
MK_NO_LORDER= true MK_NO_LORDER= true
# use the regex library # use the regex library
USE_REGEX = 1 USE_REGEX= 1
# #
# for postgres.user.mk # for postgres.user.mk
...@@ -674,7 +680,7 @@ CFLAGS_SL= -fpic ...@@ -674,7 +680,7 @@ CFLAGS_SL= -fpic
CFLAGS_BE= -D__USE_BSD -D__USE_BSD_SIGNAL CFLAGS_BE= -D__USE_BSD -D__USE_BSD_SIGNAL
LDADD_BE= -lbsd LDADD_BE= -lbsd
LEX = flex LEX= flex
endif endif
...@@ -702,7 +708,6 @@ SLSUFF= .so ...@@ -702,7 +708,6 @@ SLSUFF= .so
%.so: %.o %.so: %.o
$(LD) -dc -dp -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F) $(LD) -dc -dp -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F)
endif endif
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
...@@ -719,9 +724,9 @@ CC= gcc ...@@ -719,9 +724,9 @@ CC= gcc
CFLAGS_BE+= -DUSE_POSIX_SIGNALS CFLAGS_BE+= -DUSE_POSIX_SIGNALS
# RANLIB is not used on solaris # RANLIB is not used on solaris
RANLIB=touch RANLIB= touch
INSTALL=/usr/ucb/install INSTALL= /usr/ucb/install
# #
# Random things that must be passed everywhere to enable # Random things that must be passed everywhere to enable
...@@ -747,11 +752,8 @@ SLSUFF= .so ...@@ -747,11 +752,8 @@ SLSUFF= .so
%.so: %.o %.so: %.o
$(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F) $(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F)
# DASH_N= ''
# for postgres.shell.mk BACKSLASH_C= '\\\\c'
#
DASH_N=''
BACKSLASH_C='\\\\c'
endif endif
...@@ -760,9 +762,7 @@ endif ...@@ -760,9 +762,7 @@ endif
ifeq ($(PORTNAME), svr4) ifeq ($(PORTNAME), svr4)
MK_PORT= svr4 MK_PORT= svr4
# cc won't work? CFLAGS+= -W0
#CC= gcc
CC= cc -W0
YACC= bison -y YACC= bison -y
# #
...@@ -775,10 +775,10 @@ CFLAGS_BE+= -DUSE_POSIX_SIGNALS ...@@ -775,10 +775,10 @@ CFLAGS_BE+= -DUSE_POSIX_SIGNALS
MAKE_EXPORTS= true MAKE_EXPORTS= true
# RANLIB is not used on svr4 # RANLIB is not used on svr4
RANLIB=touch RANLIB= touch
# GNU install # GNU install
INSTALL=/home/tools/bin/install INSTALL= /home/tools/bin/install
# #
# Random things that must be passed everywhere to enable # Random things that must be passed everywhere to enable
...@@ -790,14 +790,9 @@ LDADD_BE+= -lsocket -lnsl -lc /usr/ucblib/libucb.a ...@@ -790,14 +790,9 @@ LDADD_BE+= -lsocket -lnsl -lc /usr/ucblib/libucb.a
LD_ADD+= $(LDADD_BE) LD_ADD+= $(LDADD_BE)
#
# for postgres.mk
#
# #
# for postgres.user.mk # for postgres.user.mk
# #
#CFLAGS_SL= -K pic
ifeq ($(CC), cc) ifeq ($(CC), cc)
#CFLAGS_SL= -K PIC #CFLAGS_SL= -K PIC
else else
...@@ -811,11 +806,8 @@ SLSUFF= .so ...@@ -811,11 +806,8 @@ SLSUFF= .so
%.so: %.o %.so: %.o
$(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F) $(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F)
# DASH_N= ''
# for postgres.shell.mk BACKSLASH_C= '\\\\c'
#
DASH_N=''
BACKSLASH_C='\\\\c'
endif endif
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
...@@ -855,8 +847,7 @@ srcdir= $(SRCDIR) ...@@ -855,8 +847,7 @@ srcdir= $(SRCDIR)
includedir= $(HEADERDIR) includedir= $(HEADERDIR)
# This goes here so that customizations in Makefile.custom and port # This goes here so that customization in Makefile.custom is effective
# specific changes above are effective
############################################################################## ##############################################################################
# #
# Flags for CC and LD. (depend on COPT and PROFILE) # Flags for CC and LD. (depend on COPT and PROFILE)
...@@ -895,7 +886,3 @@ CFLAGS+= $(CFLAGS_BE) ...@@ -895,7 +886,3 @@ CFLAGS+= $(CFLAGS_BE)
LDADD+= $(LDADD_BE) LDADD+= $(LDADD_BE)
LDFLAGS+= $(LDFLAGS_BE) LDFLAGS+= $(LDFLAGS_BE)
ifeq ($(USE_READLINE), false)
CFLAGS += -DNOREADLINE
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment