diff options
Diffstat (limited to 'src/mk/port/postgres.mk.svr4')
-rw-r--r-- | src/mk/port/postgres.mk.svr4 | 48 |
1 files changed, 44 insertions, 4 deletions
diff --git a/src/mk/port/postgres.mk.svr4 b/src/mk/port/postgres.mk.svr4 index 18ce27f071a..f7c132a7d1d 100644 --- a/src/mk/port/postgres.mk.svr4 +++ b/src/mk/port/postgres.mk.svr4 @@ -5,7 +5,7 @@ # # 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 @@ -14,6 +14,11 @@ ifndef MK_PORT MK_PORT= svr4 +# cc won't work? +#CC= gcc +CC= cc -W0 +YACC= bison -y + # # for postgres.mk # @@ -23,13 +28,48 @@ CFLAGS_BE+= -DUSE_POSIX_SIGNALS # 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 |