#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.20 1996/08/06 16:05:56 scrappy Exp $
+# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.21 1996/08/19 13:50:41 scrappy Exp $
#
# NOTES
# This is seen by any Makefiles that include mk/postgres.mk. To
# until after this file is processed!
# make sure that you have no whitespaces after the PORTNAME setting
# or the makefiles can get confused
-PORTNAME= BSD44_derived
+PORTNAME= svr4
# SRCDIR specifies where the source files are.
-SRCDIR= /home/staff/scrappy/cvs/postgres95/src
+SRCDIR= /home/tools/postgres95-1.02/src
# For convenience, POSTGRESDIR is where DATADIR, BINDIR, and LIBDIR
# and other target destinations are rooted. Of course, each of these is
# changable separately.
-POSTGRESDIR= /home/staff/scrappy/cvs/postgres95
+POSTGRESDIR= /home/tools/postgres95-1.02
# POSTGRESLOGIN is the login name of the user who gets special
# privileges within the database. By default it is "postgres", but
# Comment out CDEBUG to turn off debugging and sanity-checking.
#
# XXX on MIPS, use -g3 if you want to compile with -O
-#CDEBUG= -g
+CDEBUG= -O
# Comment out ENFORCE_ALIGNMENT if you do NOT want unaligned access to
# multi-byte types to generate a bus error.
# turn this on if you prefer European style dates instead of American
# style dates
-# EUROPEAN_DATES = 1
+EUROPEAN_DATES = 1
# Comment out PROFILE to disable profiling.
#
# and READLINE_LIBDIR to reflect the location of the readline and history
# headers and libraries.
#
-#USE_READLINE= true
+USE_READLINE= true
# directories for the readline and history libraries.
-READLINE_INCDIR= /usr/local/include
-HISTORY_INCDIR= /usr/local/include
-READLINE_LIBDIR= /usr/local/lib
-HISTORY_LIBDIR= /usr/local/lib
+READLINE_INCDIR= /home/tools/include
+HISTORY_INCDIR= /home/tools/include -I/home/tools/include/readline
+READLINE_LIBDIR= /home/tools/lib
+HISTORY_LIBDIR= /home/tools/lib
# If you do not plan to use Host based authentication,
# comment out the following line
# location of Tcl/Tk headers and libraries
#
# Uncomment this to build the tcl utilities.
-#USE_TCL= true
+USE_TCL= true
# customize these to your site's needs
#
-TCL_INCDIR= /usr/local/include
-TCL_LIBDIR= /usr/local/lib
+TCL_INCDIR= /home/tools/include
+TCL_LIBDIR= /home/tools/lib
TCL_LIB = -ltcl7.5
-TK_INCDIR= /usr/local/include
-TK_LIBDIR= /usr/local/lib
+TK_INCDIR= /home/tools/include
+TK_LIBDIR= /home/tools/lib
TK_LIB = -ltk4.1
-X11_INCDIR = /usr/X11R6.1/include
-X11_LIBDIR = /usr/X11R6.1/lib
-X11_LIB = -lX11
+X11_INCDIR = /usr/include
+X11_LIBDIR = /usr/lib
+X11_LIB = -lX11 -lsocket -lnsl
#
# include port specific rules and variables. For instance:
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.2 1996/07/31 17:19:49 scrappy Exp $
+# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.3 1996/08/19 13:51:55 scrappy Exp $
#
#-------------------------------------------------------------------------
LDADD+= -lc
endif
+# the following is special for Reliant UNIX SVR4 (formerly SINIX)
+ifeq ($(PORTNAME), svr4)
+LDFLAGS+= -LD-Blargedynsym
+endif
+
postgres: $(POSTGRES_DEPEND) $(OBJS) $(EXPORTS)
$(CC) $(LDFLAGS) -o $(objdir)/$(@F) $(addprefix $(objdir)/,$(notdir $(OBJS))) $(LDADD)
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh,v 1.1.1.1 1996/07/09 06:21:15 scrappy Exp $
+# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh,v 1.2 1996/08/19 13:52:02 scrappy Exp $
#
# NOTES
# non-essential whitespace is removed from the generated file.
-e 's/\ NameData/\ name/g' \
-e 's/(NameData/(name/g' \
-e 's/(Oid/(oid/g' | \
-awk '
+gawk '
# ----------------
# now use awk to process remaining .h file..
#
time(&cur_time_secs);
cur_time_expanded = localtime(&cur_time_secs);
+#if defined(EUROPEAN_DATES) || defined(EUROPEAN_STYLE)
+ sprintf(buf, "%02.2d-%02.2d-%04.4d", cur_time_expanded->tm_mday,
+ cur_time_expanded->tm_mon+1, cur_time_expanded->tm_year+1900);
+#else
sprintf(buf, "%02.2d-%02.2d-%04.4d", cur_time_expanded->tm_mon+1,
cur_time_expanded->tm_mday, cur_time_expanded->tm_year+1900);
+#endif
return &buf[0];
}
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: ipc.h,v 1.5 1996/08/04 21:03:23 scrappy Exp $
+ * $Id: ipc.h,v 1.6 1996/08/19 13:52:20 scrappy Exp $
*
* NOTES
* This file is very architecture-specific. This stuff should actually
defined(PORTNAME_i386_solaris) || \
defined(PORTNAME_sparc_solaris) || \
defined(PORTNAME_ultrix4) || \
+ defined(PORTNAME_svr4) || \
defined(WIN32)
union semun {
int val;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.2 1996/07/20 08:36:17 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.3 1996/08/19 13:52:35 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
}
#endif /* PORTNAME_alpha */
-#if defined(PORTNAME_sparc_solaris)||defined(PORTNAME_i386_solaris)
+#if defined(PORTNAME_sparc_solaris)||defined(PORTNAME_i386_solaris) || defined(PORTNAME_svr4)
#include <ieeefp.h>
static int
isinf(d)
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.3 1996/07/22 21:56:03 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.4 1996/08/19 13:52:40 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
defined(PORTNAME_i386_solaris) || \
defined(PORTNAME_irix5) || \
defined(PORTNAME_sparc_solaris) || \
+ defined(PORTNAME_svr4) || \
defined(WIN32)
tzset();
#ifndef WIN32
#
# Copyright (c) 1994-5, Regents of the University of California
#
-# $Id: postgres.mk.svr4,v 1.1.1.1 1996/07/09 06:22:20 scrappy Exp $
+# $Id: postgres.mk.svr4,v 1.2 1996/08/19 13:52:54 scrappy Exp $
#
# NOTE
# This file has not been tested. -ay 3/95
ifndef MK_PORT
MK_PORT= svr4
+# cc won't work?
+#CC= gcc
+CC= cc -W0
+YACC= bison -y
+
#
# for postgres.mk
#
# symbol names to tell them what to export/import.
MAKE_EXPORTS= true
+# RANLIB is not used on svr4
+RANLIB=touch
+
+# GNU install
+INSTALL=/home/tools/bin/install
+
+#
+# Random things that must be passed everywhere to enable
+# everything to compile. :-/
+#
+# The extra -I flag is to scoop up extra BSD-emulating headers.
+CFLAGS_BE+= -DSYSV_DIRENT -I$(POSTGRESDIR)/src/backend/port/svr4
+LDADD_BE+= -lsocket -lnsl -lc /usr/ucblib/libucb.a
+
+LD_ADD+= $(LDADD_BE)
+
+#
+# for postgres.mk
+#
+CFLAGS_OPT= -O
+
#
# for postgres.user.mk
#
-CFLAGS_SL= -K pic
+#CFLAGS_SL= -K pic
+ifeq ($(CC), cc)
+#CFLAGS_SL= -K PIC
+else
+#CFLAGS_SL= -fPIC
+endif
+
SLSUFF= .so
-%.so: %.o
- $(LD) -G $(LDFLAGS) -o $(objdir)/$(@F) $(objdir)/$(<F)
+#%.so: %.o
+# $(LD) -G $(LDFLAGS) -o $(objdir)/$(@F) $(objdir)/$(<F)
+%.so: %.o
+ $(LD) -G -Bdynamic -o $(objdir)/$(@F) $(objdir)/$(<F)
+
+#
+# for postgres.shell.mk
+#
+DASH_N=''
+BACKSLASH_C='\\\\c'
endif