From a7511908e17788a81f15312263c82c39d08796ce Mon Sep 17 00:00:00 2001 From: Bryan Henderson Date: Mon, 11 Nov 1996 13:24:43 +0000 Subject: [PATCH] Add DASH_N, BACKSLASH_C variables, moved from postgres.shell.mk. --- src/Makefile.global | 375 +++++++++++++++++++++----------------------- 1 file changed, 181 insertions(+), 194 deletions(-) diff --git a/src/Makefile.global b/src/Makefile.global index c963f082ba..88c4fd1d3f 100644 --- a/src/Makefile.global +++ b/src/Makefile.global @@ -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 -# (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 +# 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 # 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. +# 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,50 +70,52 @@ 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. -POSTGRESDIR= /usr/local/pgsql +POSTGRESDIR= /usr/local/pgsql # POSTGRESLOGIN is the login name of the user who gets special # privileges within the database. By default it is "postgres", but # you can change it to any existing login name (such as your own # login if you are compiling a private version or don't have root # access). -POSTGRESLOGIN= postgres +POSTGRESLOGIN= postgres # DATADIR specifies where the postmaster expects to find its database. # This may be overridden by command line options or the PGDATA environment # variable. -DATADIR= $(POSTGRESDIR)/data +DATADIR= $(POSTGRESDIR)/data # Where the postgres executables live (changeable by just putting them # somewhere else and putting that directory in your shell PATH) -BINDIR= $(POSTGRESDIR)/bin +BINDIR= $(POSTGRESDIR)/bin # Where libpq.a gets installed. You must put it where your loader will # look for it if you wish to use the -lpq convention. Otherwise you # can just put the absolute pathname to the library at the end of your # command line. -LIBDIR= $(POSTGRESDIR)/lib +LIBDIR= $(POSTGRESDIR)/lib # This is the directory where IPC utilities ipcs and ipcrm are located # -IPCSDIR= /usr/bin +IPCSDIR= /usr/bin # Where the man pages (suitable for use with "man") get installed. -POSTMANDIR= $(POSTGRESDIR)/man +POSTMANDIR= $(POSTGRESDIR)/man # Where the formatted documents (e.g., the reference manual) get installed. -POSTDOCDIR= $(POSTGRESDIR)/doc +POSTDOCDIR= $(POSTGRESDIR)/doc # Where the header files necessary to build frontend programs get installed. -HEADERDIR= $(POSTGRESDIR)/include +HEADERDIR= $(POSTGRESDIR)/include # The port to run the postmaster on POSTPORT= 5432 @@ -130,9 +133,9 @@ POSTPORT= 5432 # THERE ARE REDUNDANT DEFINITIONS OF THESE VALUES IN config.h. # Don't change anything here without changing it there too. -NAMEDATALEN = 32 +NAMEDATALEN= 32 # OIDNAMELEN should be set to NAMEDATALEN + sizeof(Oid) -OIDNAMELEN = 36 +OIDNAMELEN= 36 ############################################################################## # @@ -171,29 +174,29 @@ ENFORCE_ALIGNMENT= true #USE_READLINE= true # directories for the readline and history libraries. -READLINE_INC= -I/home/tools/include -READLINE_LIB= -L/home/tools/lib -lreadline +READLINE_INC= -I/home/tools/include +READLINE_LIB= -L/home/tools/lib -lreadline # use the following if your readline has a separate history lib -#HISTORY_INC= -I/home/tools/include -I/home/tools/include/readline -#HISTORY_LIB= -L/home/tools/lib -lhistory +#HISTORY_INC= -I/home/tools/include -I/home/tools/include/readline +#HISTORY_LIB= -L/home/tools/lib -lhistory # If you plan to use Kerberos for authentication... # # Comment out KRBVERS if you do not use Kerberos. -# Set KRBVERS to "4" for Kerberos v4, "5" for Kerberos v5. -# XXX Edit the default Kerberos variables below! +# Set KRBVERS to "4" for Kerberos v4, "5" for Kerberos v5. +# XXX Edit the default Kerberos variables below! # -#KRBVERS= 5 +#KRBVERS= 5 # Globally pass Kerberos file locations. -# these are used in the postmaster and all libpq applications. +# these are used in the postmaster and all libpq applications. # -# Adjust KRBINCS and KRBLIBS to reflect where you have Kerberos -# include files and libraries installed. -# PG_KRB_SRVNAM is the name under which POSTGRES is registered in -# the Kerberos database (KDC). -# PG_KRB_SRVTAB is the location of the server's keytab file. +# Adjust KRBINCS and KRBLIBS to reflect where you have Kerberos +# include files and libraries installed. +# PG_KRB_SRVNAM is the name under which POSTGRES is registered in +# the Kerberos database (KDC). +# PG_KRB_SRVTAB is the location of the server's keytab file. # ifdef KRBVERS KRBINCS= -I/usr/athena/include @@ -221,35 +224,50 @@ endif # TCL_INCDIR= /home/tools/include TCL_LIBDIR= /home/tools/lib -TCL_LIB = -ltcl7.5 -TK_INCDIR= /home/tools/include -TK_LIBDIR= /home/tools/lib -TK_LIB = -ltk4.1 +TCL_LIB= -ltcl7.5 +TK_INCDIR= /home/tools/include +TK_LIBDIR= /home/tools/lib +TK_LIB= -ltk4.1 -X11_INCDIR = /usr/include -X11_LIBDIR = /usr/lib -X11_LIB = -lX11 -lsocket -lnsl +X11_INCDIR= /usr/include +X11_LIBDIR= /usr/lib +X11_LIB= -lX11 -lsocket -lnsl ############################################################################## # # YACC -YFLAGS = -d +YFLAGS= -d ############################################################################## # # Installation. # # For many ports, INSTALL is overridden below. -INSTALL = install -RANLIB = ranlib +INSTALL= install +RANLIB= ranlib + +INSTLOPTS= -c -m 444 +INSTL_EXE_OPTS= -c -m 555 +INSTL_LIB_OPTS= -c -m 664 -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". -objdir= obj +DASH_N= -n +BACKSLASH_C= + + +objdir= obj ############################################################################## # @@ -305,25 +323,25 @@ endif #---------------------------------------------------------------------- ifeq ($PORTNAME, BSD44_derived) -MK_PORT= BSD44_derived +MK_PORT= BSD44_derived # cc is gcc, but never mind about that... -CC= gcc +CC= gcc -INSTALL= /usr/bin/install -RANLIB= /usr/bin/ranlib +INSTALL= /usr/bin/install +RANLIB= /usr/bin/ranlib # FreeBSD 2.1R with new Flex v2.5.2 in /usr/local -LEX = flex +LEX= flex LDADD+= -L/usr/local/lib -lfl # # for postgres.user.mk # -CFLAGS_SL = -fpic -DPIC +CFLAGS_SL= -fpic -DPIC ifneq ($(HOSTTYPE), mips) -SLSUFF= .so +SLSUFF= .so endif %.so: %.o @@ -334,13 +352,13 @@ endif ${RANLIB} $(objdir)/$(@F).pic @rm -f $(objdir)/$(@F) $(LD) -x -Bshareable -Bforcearchive \ - -o $(objdir)/$(@F) $(objdir)/$(@F).pic + -o $(objdir)/$(@F) $(objdir)/$(@F).pic endif #-------------------------------------------------------------------------- ifeq ($(PORTNAME), aix) -MK_PORT= aix +MK_PORT= aix # might want to try installbsd instead INSTALL= /usr/ucb/install @@ -350,7 +368,7 @@ INSTALL= /usr/ucb/install # # the -lm is because "pow" is defined in libbsd.a and we want pow(3m) -LDADD_BE= -lm -lbsd +LDADD_BE= -lm -lbsd # MAKE_EXPORTS is required for svr4 loaders that want a file of # symbol names to tell them what to export/import. @@ -370,8 +388,8 @@ CFLAGS_BE+= -qchars=signed -qmaxmem=4000 -DHAVE_ANSI_CPP # # for postgres.user.mk # -EXPSUFF= .exp -SLSUFF= .so +EXPSUFF= .exp +SLSUFF= .so MKLDEXPORT=$(SRCDIR)/backend/port/aix/mkldexport.sh @@ -381,22 +399,22 @@ MKLDEXPORT=$(SRCDIR)/backend/port/aix/mkldexport.sh %.so: %.o %$(EXPSUFF) @echo The link stage here: $(LD) -H512 -T512 -o $(objdir)/$(@F) -e _nostart \ - -bI:$(LIBDIR)/postgres$(EXPSUFF) -bE:$*$(EXPSUFF) \ - $*.o -lm -lc 2>/dev/null + -bI:$(LIBDIR)/postgres$(EXPSUFF) -bE:$*$(EXPSUFF) \ + $*.o -lm -lc 2>/dev/null endif #--------------------------------------------------------------------------- ifeq ($(PORTNAME), alpha) -MK_PORT= alpha +MK_PORT= alpha # # for postgres.mk # CFLAGS_BE+= -DUSE_POSIX_SIGNALS # NOFIXADE disallows unaligned access. -# on Ultrix and OSF/1 it invokes an explicit syscall. -# on HP-UX it turns off certain compiler options. +# on Ultrix and OSF/1 it invokes an explicit syscall. +# on HP-UX it turns off certain compiler options. # This is defined here because a bunch of clients include tmp/c.h, # which is where the work is done on HP-UX. It only affects the # backend on Ultrix and OSF/1. @@ -407,33 +425,30 @@ CFLAGS_BE+= -DNOPRINTADE endif # use the regex library -USE_REGEX = 1 +USE_REGEX= 1 # # for postgres.user.mk # -SLSUFF= .so +SLSUFF= .so # cd into objdir so that so_locations is also in obj %.so: %.o cd $(objdir); $(LD) -shared -expect_unresolved '*' -o $(@F) $(