Commit 317f375b authored by Bruce Momjian's avatar Bruce Momjian

Rename SLSUFF to DLSUFFIX

parent 4a820de1
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.71 1996/11/18 02:23:16 bryanh Exp $ # $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.72 1996/11/18 06:07:12 momjian Exp $
# #
# NOTES # NOTES
# Essentially all Postgres make files include this file and use the # Essentially all Postgres make files include this file and use the
...@@ -289,7 +289,7 @@ endif ...@@ -289,7 +289,7 @@ endif
# Shared libraries. # Shared libraries.
# This is overridden for many PORTNAMEs below. # This is overridden for many PORTNAMEs below.
SLSUFF= .so DLSUFFIX= .so
#---------------------------------------------------------------------- #----------------------------------------------------------------------
ifeq ($(PORTNAME), BSD44_derived) ifeq ($(PORTNAME), BSD44_derived)
...@@ -476,7 +476,7 @@ INSTALL= bsdinst ...@@ -476,7 +476,7 @@ INSTALL= bsdinst
RANLIB= touch RANLIB= touch
CFLAGS_SL= +z CFLAGS_SL= +z
SLSUFF= .sl DLSUFFIX= .sl
%.sl: %.o %.sl: %.o
$(LD) -b -o $@ $< $(LD) -b -o $@ $<
...@@ -547,10 +547,10 @@ endif ...@@ -547,10 +547,10 @@ endif
ifeq ($(PORTNAME), linux) ifeq ($(PORTNAME), linux)
ifndef LINUX_ELF ifndef LINUX_ELF
SLSUFF= .o DLSUFFIX= .o
LDADD_BE= -ldld LDADD_BE= -ldld
else else
SLSUFF= .so DLSUFFIX= .so
LDADD_BE= -ldl LDADD_BE= -ldl
LDFLAGS_BE= -rdynamic LDFLAGS_BE= -rdynamic
endif endif
...@@ -675,7 +675,7 @@ INSTALL= /usr/bin/install ...@@ -675,7 +675,7 @@ INSTALL= /usr/bin/install
RANLIB= /usr/bin/ranlib RANLIB= /usr/bin/ranlib
CFLAGS_SL= -G 0 CFLAGS_SL= -G 0
SLSUFF= .o DLSUFFIX= .o
endif endif
......
...@@ -19,15 +19,14 @@ ...@@ -19,15 +19,14 @@
# values. This is a feeble attempt to provide "portable" scripts. # values. This is a feeble attempt to provide "portable" scripts.
# _CWD_ - current working directory # _CWD_ - current working directory
# _OBJWD_ - where the generated files (eg. object files) are # _OBJWD_ - where the generated files (eg. object files) are
# _SLSUFF_ - suffix of the shared library or object for # _DLSUFFIX_ - suffix of the dynamic loading
# dynamic loading
# _USER_ - the login of the user # _USER_ - the login of the user
# #
# Copyright (c) 1994-5, Regents of the University of California # Copyright (c) 1994-5, Regents of the University of California
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.user.mk,v 1.1.1.1 1996/07/09 06:22:19 scrappy Exp $ # $Header: /cvsroot/pgsql/src/mk/Attic/postgres.user.mk,v 1.2 1996/11/18 06:07:23 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -42,7 +41,7 @@ CFLAGS+= -I$(includedir) $(CFLAGS_SL) ...@@ -42,7 +41,7 @@ CFLAGS+= -I$(includedir) $(CFLAGS_SL)
C=`pwd`; \ C=`pwd`; \
sed -e "s:_CWD_:$$C:g" \ sed -e "s:_CWD_:$$C:g" \
-e "s:_OBJWD_:$$C/$(objdir):g" \ -e "s:_OBJWD_:$$C/$(objdir):g" \
-e "s:_SLSUFF_:$(SLSUFF):g" \ -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
-e "s/_USER_/$$USER/g" < $*.source > $(objdir)/$*.sql -e "s/_USER_/$$USER/g" < $*.source > $(objdir)/$*.sql
#How to create a dynamic lib #How to create a dynamic lib
...@@ -58,7 +57,7 @@ CFLAGS+= -I$(includedir) $(CFLAGS_SL) ...@@ -58,7 +57,7 @@ CFLAGS+= -I$(includedir) $(CFLAGS_SL)
C="`pwd`/"; \ C="`pwd`/"; \
sed -e "s:_CWD_:$$C:g" \ sed -e "s:_CWD_:$$C:g" \
-e "s:_OBJWD_:$$C/$(objdir):g" \ -e "s:_OBJWD_:$$C/$(objdir):g" \
-e "s:_SLSUFF_:$(SLSUFF):g" \ -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
-e "s/_USER_/$$USER/g" < $*.source > $(objdir)/$*.sh -e "s/_USER_/$$USER/g" < $*.source > $(objdir)/$*.sh
# #
...@@ -71,9 +70,9 @@ endif ...@@ -71,9 +70,9 @@ endif
# #
# plus shared libraries # plus shared libraries
# #
ifdef SLSUFF ifdef DLSUFFIX
ifneq ($(SLSUFF), '.o') ifneq ($(DLSUFFIX), '.o')
CREATEFILES+= $(DLOBJS:.so=$(SLSUFF)) CREATEFILES+= $(DLOBJS:.so=$(DLSUFFIX))
endif endif
endif endif
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/test/regress/Makefile,v 1.9 1996/11/13 10:36:17 bryanh Exp $ # $Header: /cvsroot/pgsql/src/test/regress/Makefile,v 1.10 1996/11/18 06:07:29 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -22,7 +22,7 @@ LDADD+= -L$(LIBPQDIR) -lpq ...@@ -22,7 +22,7 @@ LDADD+= -L$(LIBPQDIR) -lpq
# DLOBJS is the dynamically-loaded object file. The regression test uses # DLOBJS is the dynamically-loaded object file. The regression test uses
# this when it does a CREATE FUNCTION ... LANGUAGE 'C'). # this when it does a CREATE FUNCTION ... LANGUAGE 'C').
# #
DLOBJS= regress$(SLSUFF) DLOBJS= regress$(DLSUFFIX)
# #
# ... plus test query inputs # ... plus test query inputs
...@@ -69,7 +69,7 @@ expected.out: expected.input ...@@ -69,7 +69,7 @@ expected.out: expected.input
C="`pwd`"; \ C="`pwd`"; \
sed -e "s:_CWD_:$$C:g" \ sed -e "s:_CWD_:$$C:g" \
-e "s:_OBJWD_:$$C:g" \ -e "s:_OBJWD_:$$C:g" \
-e "s:_SLSUFF_:$(SLSUFF):g" \ -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
-e "s/_USER_/$$USER/g" < expected.input > expected.out -e "s/_USER_/$$USER/g" < expected.input > expected.out
@echo "YOUR EXPECTED RESULTS ARE NOW IN FILE expected.out." @echo "YOUR EXPECTED RESULTS ARE NOW IN FILE expected.out."
...@@ -81,7 +81,7 @@ expected.out: expected.input ...@@ -81,7 +81,7 @@ expected.out: expected.input
C=`pwd`; \ C=`pwd`; \
sed -e "s:_CWD_:$$C:g" \ sed -e "s:_CWD_:$$C:g" \
-e "s:_OBJWD_:$$C:g" \ -e "s:_OBJWD_:$$C:g" \
-e "s:_SLSUFF_:$(SLSUFF):g" \ -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
-e "s/_USER_/$$USER/g" < $< > $@ -e "s/_USER_/$$USER/g" < $< > $@
clean: clean:
......
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
CREATE FUNCTION circle_in(opaque) CREATE FUNCTION circle_in(opaque)
RETURNS circle RETURNS circle
AS '_OBJWD_/regress_SLSUFF_' AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
CREATE FUNCTION circle_out(opaque) CREATE FUNCTION circle_out(opaque)
RETURNS opaque RETURNS opaque
AS '_OBJWD_/regress_SLSUFF_' AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
CREATE TYPE circle ( CREATE TYPE circle (
...@@ -288,33 +288,33 @@ CREATE FUNCTION user_relns() ...@@ -288,33 +288,33 @@ CREATE FUNCTION user_relns()
CREATE FUNCTION pt_in_circle(point, circle) CREATE FUNCTION pt_in_circle(point, circle)
RETURNS int4 RETURNS int4
AS '_OBJWD_/regress_SLSUFF_' AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
CREATE FUNCTION overpaid(emp) CREATE FUNCTION overpaid(emp)
RETURNS bool RETURNS bool
AS '_OBJWD_/regress_SLSUFF_' AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
CREATE FUNCTION boxarea(box) CREATE FUNCTION boxarea(box)
RETURNS int4 RETURNS int4
AS '_OBJWD_/regress_SLSUFF_' AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
CREATE FUNCTION interpt_pp(path, path) CREATE FUNCTION interpt_pp(path, path)
RETURNS point RETURNS point
AS '_OBJWD_/regress_SLSUFF_' AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
CREATE FUNCTION reverse_c16(char16) CREATE FUNCTION reverse_c16(char16)
RETURNS char16 RETURNS char16
AS '_OBJWD_/regress_SLSUFF_' AS '_OBJWD_/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
-- --
-- FUNCTION DYNAMIC LOADING -- FUNCTION DYNAMIC LOADING
-- --
LOAD '_OBJWD_/regress_SLSUFF_' LOAD '_OBJWD_/regress_DLSUFFIX_'
-- --
-- CLASS POPULATION -- CLASS POPULATION
......
...@@ -4,12 +4,12 @@ destroydb: database destroy failed on regression. ...@@ -4,12 +4,12 @@ destroydb: database destroy failed on regression.
=============== creating new regression database... ================= =============== creating new regression database... =================
QUERY: CREATE FUNCTION circle_in(opaque) QUERY: CREATE FUNCTION circle_in(opaque)
RETURNS circle RETURNS circle
AS '_CWD_/obj/regress_SLSUFF_' AS '_CWD_/obj/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
NOTICE:ProcedureCreate: type 'circle' is not yet defined NOTICE:ProcedureCreate: type 'circle' is not yet defined
QUERY: CREATE FUNCTION circle_out(opaque) QUERY: CREATE FUNCTION circle_out(opaque)
RETURNS opaque RETURNS opaque
AS '_CWD_/obj/regress_SLSUFF_' AS '_CWD_/obj/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
QUERY: CREATE TYPE circle ( QUERY: CREATE TYPE circle (
internallength = 24, internallength = 24,
...@@ -211,25 +211,25 @@ QUERY: CREATE FUNCTION user_relns() ...@@ -211,25 +211,25 @@ QUERY: CREATE FUNCTION user_relns()
LANGUAGE 'sql'; LANGUAGE 'sql';
QUERY: CREATE FUNCTION pt_in_circle(point, circle) QUERY: CREATE FUNCTION pt_in_circle(point, circle)
RETURNS int4 RETURNS int4
AS '_CWD_/obj/regress_SLSUFF_' AS '_CWD_/obj/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
QUERY: CREATE FUNCTION overpaid(emp) QUERY: CREATE FUNCTION overpaid(emp)
RETURNS bool RETURNS bool
AS '_CWD_/obj/regress_SLSUFF_' AS '_CWD_/obj/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
QUERY: CREATE FUNCTION boxarea(box) QUERY: CREATE FUNCTION boxarea(box)
RETURNS int4 RETURNS int4
AS '_CWD_/obj/regress_SLSUFF_' AS '_CWD_/obj/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
QUERY: CREATE FUNCTION interpt_pp(path, path) QUERY: CREATE FUNCTION interpt_pp(path, path)
RETURNS point RETURNS point
AS '_CWD_/obj/regress_SLSUFF_' AS '_CWD_/obj/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
QUERY: CREATE FUNCTION reverse_c16(char16) QUERY: CREATE FUNCTION reverse_c16(char16)
RETURNS char16 RETURNS char16
AS '_CWD_/obj/regress_SLSUFF_' AS '_CWD_/obj/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
QUERY: LOAD '_CWD_/obj/regress_SLSUFF_' QUERY: LOAD '_CWD_/obj/regress_DLSUFFIX_'
COPY onek FROM '_CWD_/data/onek.data'; COPY onek FROM '_CWD_/data/onek.data';
QUERY: COPY tenk1 FROM '_CWD_/data/tenk.data'; QUERY: COPY tenk1 FROM '_CWD_/data/tenk.data';
QUERY: INSERT INTO tenk2 VALUES (tenk1.*); QUERY: INSERT INTO tenk2 VALUES (tenk1.*);
......
...@@ -3,7 +3,8 @@ include ../../Makefile.global ...@@ -3,7 +3,8 @@ include ../../Makefile.global
CFLAGS+= -I../../include -I$(LIBPQDIR) CFLAGS+= -I../../include -I$(LIBPQDIR)
all: complex$(SLSUFF) funcs$(SLSUFF) all: complex$(DLSUFFIX) funcs$(DLSUFFIX)
clean: clean:
rm -f complex$(SLSUFF) funcs$(SLSUFF) rm -f complex$(DLSUFFIX) funcs$(DLSUFFIX)
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for tutorial # Makefile for tutorial
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/tutorial/Makefile,v 1.3 1996/11/13 10:36:24 bryanh Exp $ # $Header: /cvsroot/pgsql/src/tutorial/Makefile,v 1.4 1996/11/18 06:07:52 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -19,7 +19,7 @@ LDADD+= -L$(LIBPQDIR) -lpq ...@@ -19,7 +19,7 @@ LDADD+= -L$(LIBPQDIR) -lpq
# DLOBJS is the dynamically-loaded object files. The "funcs" queries # DLOBJS is the dynamically-loaded object files. The "funcs" queries
# include CREATE FUNCTIONs that load routines from these files. # include CREATE FUNCTIONs that load routines from these files.
# #
DLOBJS= complex$(SLSUFF) funcs$(SLSUFF) DLOBJS= complex$(DLSUFFIX) funcs$(DLSUFFIX)
QUERIES= advanced.sql basics.sql complex.sql funcs.sql syscat.sql QUERIES= advanced.sql basics.sql complex.sql funcs.sql syscat.sql
# #
...@@ -39,7 +39,7 @@ all: $(QUERIES) ...@@ -39,7 +39,7 @@ all: $(QUERIES)
C=`pwd`; \ C=`pwd`; \
sed -e "s:_CWD_:$$C:g" \ sed -e "s:_CWD_:$$C:g" \
-e "s:_OBJWD_:$$C:g" \ -e "s:_OBJWD_:$$C:g" \
-e "s:_SLSUFF_:$(SLSUFF):g" \ -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
-e "s/_USER_/$$USER/g" < $< > $@ -e "s/_USER_/$$USER/g" < $< > $@
funcs.sql:: $(DLOBJS) funcs.sql:: $(DLOBJS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment