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
# $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
# This is seen by any Makefiles that include mk/postgres.mk. To
@ -37,29 +37,30 @@
# of the port.
# The name of the port. Valid choices are:
# alpha - DEC Alpha AXP on OSF/1 2.0
# hpux - HP PA-RISC on HP-UX 9.0
# i386_solaris - i386 Solaris
# sparc_solaris - SUN SPARC on Solaris 2.4
# sparc - SUN SPARC on SunOS 4.1.3
# ultrix4 - DEC MIPS on Ultrix 4.4
# linux - Intel x86 on Linux 1.2 and Linux ELF
# alpha DEC Alpha AXP on OSF/1 2.0
# hpux HP PA-RISC on HP-UX 9.0
# i386_solaris i386 Solaris
# sparc_solaris SUN SPARC on Solaris 2.4
# sparc SUN SPARC on SunOS 4.1.3
# ultrix4 DEC MIPS on Ultrix 4.4
# linux Intel x86 on Linux 1.2 and Linux ELF
# (For non-ELF Linux, see LINUX_ELF below).
# BSD44_derived - OSs derived from 4.4-lite BSD (NetBSD, FreeBSD)
# bsdi - BSD/OS 2.0, 2.01, 2.1
# aix - IBM on AIX 3.2.5
# irix5 - SGI MIPS on IRIX 5.3
# dgux - DG/UX 5.4R3.10
# BSD44_derived OSs derived from 4.4-lite BSD (NetBSD, FreeBSD)
# bsdi BSD/OS 2.0, 2.01, 2.1
# aix IBM on AIX 3.2.5
# irix5 SGI MIPS on IRIX 5.3
# dgux DG/UX 5.4R3.10
# Some hooks are provided for
# svr4 - Intel x86 on Intel SVR4
# next - Motorola MC68K or Intel x86 on NeXTSTEP 3.2
# svr4 Intel x86 on Intel SVR4
# next Motorola MC68K or Intel x86 on NeXTSTEP 3.2
# but these are guaranteed not to work as of yet.
#
# Note that portname is defined here to be UNDEFINED to remind you
# to change it in Makefile.custom.
#
# make sure that you have no whitespaces after the PORTNAME setting
# 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
# 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
# we are included, but for transition purposes, we put this default here.
ifdef SRCDIR
MKDIR= $(SRCDIR)/mk
MKDIR:= $(SRCDIR)/mk
else
SRCDIR= /usr/local/pgsql/src
SRCDIR:= $(MKDIR)/..
endif
LIBPQDIR:= $(SRCDIR)/libpq
# For convenience, POSTGRESDIR is where DATADIR, BINDIR, and LIBDIR
# and other target destinations are rooted. Of course, each of these is
# changable separately.
@ -248,6 +251,21 @@ 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".
DASH_N= -n
BACKSLASH_C=
objdir= obj
@ -420,9 +438,6 @@ SLSUFF= .so
CLEANFILES+= so_locations
#
# for postgres.shell.mk
#
DASH_N=
BACKSLASH_C= '\\\\c'
@ -542,9 +557,6 @@ SLSUFF= .sl
%.sl: %.o
$(LD) -b -o $(objdir)/$(@F) $(objdir)/$(<F)
#
# for postgres.shell.mk
#
DASH_N= ''
BACKSLASH_C= '\\\\c'
@ -592,9 +604,6 @@ SLSUFF= .so
%.so: %.o
$(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F)
#
# for postgres.shell.mk
#
DASH_N=''
BACKSLASH_C='\\\\c'
@ -634,9 +643,6 @@ SLSUFF= .so
%.so: %.o
$(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F)
#
# for postgres.shell.mk
#
DASH_N=''
BACKSLASH_C='\\\\c'
@ -702,7 +708,6 @@ SLSUFF= .so
%.so: %.o
$(LD) -dc -dp -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F)
endif
#----------------------------------------------------------------------------
@ -747,9 +752,6 @@ SLSUFF= .so
%.so: %.o
$(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F)
#
# for postgres.shell.mk
#
DASH_N= ''
BACKSLASH_C= '\\\\c'
@ -760,9 +762,7 @@ endif
ifeq ($(PORTNAME), svr4)
MK_PORT= svr4
# cc won't work?
#CC= gcc
CC= cc -W0
CFLAGS+= -W0
YACC= bison -y
#
@ -790,14 +790,9 @@ LDADD_BE+= -lsocket -lnsl -lc /usr/ucblib/libucb.a
LD_ADD+= $(LDADD_BE)
#
# for postgres.mk
#
#
# for postgres.user.mk
#
#CFLAGS_SL= -K pic
ifeq ($(CC), cc)
#CFLAGS_SL= -K PIC
else
@ -811,9 +806,6 @@ SLSUFF= .so
%.so: %.o
$(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F)
#
# for postgres.shell.mk
#
DASH_N= ''
BACKSLASH_C= '\\\\c'
endif
@ -855,8 +847,7 @@ srcdir= $(SRCDIR)
includedir= $(HEADERDIR)
# This goes here so that customizations in Makefile.custom and port
# specific changes above are effective
# This goes here so that customization in Makefile.custom is effective
##############################################################################
#
# Flags for CC and LD. (depend on COPT and PROFILE)
@ -895,7 +886,3 @@ CFLAGS+= $(CFLAGS_BE)
LDADD+= $(LDADD_BE)
LDFLAGS+= $(LDFLAGS_BE)
ifeq ($(USE_READLINE), false)
CFLAGS += -DNOREADLINE
endif