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

This commit is contained in:
Bryan Henderson 1996-11-11 13:24:43 +00:00
parent 58413fd9fc
commit a7511908e1

View File

@ -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 @@
# 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
# 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.
@ -248,6 +251,21 @@ INSTLOPTS = -c -m 444
INSTL_EXE_OPTS= -c -m 555 INSTL_EXE_OPTS= -c -m 555
INSTL_LIB_OPTS= -c -m 664 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".
DASH_N= -n
BACKSLASH_C=
objdir= obj objdir= obj
@ -420,9 +438,6 @@ SLSUFF= .so
CLEANFILES+= so_locations CLEANFILES+= so_locations
#
# for postgres.shell.mk
#
DASH_N= DASH_N=
BACKSLASH_C= '\\\\c' BACKSLASH_C= '\\\\c'
@ -542,9 +557,6 @@ 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'
@ -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'
@ -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'
@ -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
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
@ -747,9 +752,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'
@ -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
# #
@ -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,9 +806,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'
endif endif
@ -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)
LDADD+= $(LDADD_BE) LDADD+= $(LDADD_BE)
LDFLAGS+= $(LDFLAGS_BE) LDFLAGS+= $(LDFLAGS_BE)
ifeq ($(USE_READLINE), false)
CFLAGS += -DNOREADLINE
endif