Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
317f375b
Commit
317f375b
authored
Nov 18, 1996
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename SLSUFF to DLSUFFIX
parent
4a820de1
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
39 deletions
+39
-39
src/Makefile.global
src/Makefile.global
+6
-6
src/mk/postgres.user.mk
src/mk/postgres.user.mk
+7
-8
src/test/regress/Makefile
src/test/regress/Makefile
+4
-4
src/test/regress/create.source
src/test/regress/create.source
+8
-8
src/test/regress/expected.input
src/test/regress/expected.input
+8
-8
src/tutorial/C-code/Makefile
src/tutorial/C-code/Makefile
+3
-2
src/tutorial/Makefile
src/tutorial/Makefile
+3
-3
No files found.
src/Makefile.global
View file @
317f375b
...
...
@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.7
1 1996/11/18 02:23:16 bryanh
Exp $
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.7
2 1996/11/18 06:07:12 momjian
Exp $
#
# NOTES
# Essentially all Postgres make files include this file and use the
...
...
@@ -289,7 +289,7 @@ endif
# Shared libraries.
# This is overridden for many PORTNAMEs below.
SLSUFF
=
.so
DLSUFFIX
=
.so
#----------------------------------------------------------------------
ifeq
($(PORTNAME), BSD44_derived)
...
...
@@ -476,7 +476,7 @@ INSTALL= bsdinst
RANLIB
=
touch
CFLAGS_SL
=
+z
SLSUFF
=
.sl
DLSUFFIX
=
.sl
%.sl
:
%.o
$(LD)
-b
-o
$@
$<
...
...
@@ -547,10 +547,10 @@ endif
ifeq
($(PORTNAME), linux)
ifndef
LINUX_ELF
SLSUFF
=
.o
DLSUFFIX
=
.o
LDADD_BE
=
-ldld
else
SLSUFF
=
.so
DLSUFFIX
=
.so
LDADD_BE
=
-ldl
LDFLAGS_BE
=
-rdynamic
endif
...
...
@@ -675,7 +675,7 @@ INSTALL= /usr/bin/install
RANLIB
=
/usr/bin/ranlib
CFLAGS_SL
=
-G
0
SLSUFF
=
.o
DLSUFFIX
=
.o
endif
...
...
src/mk/postgres.user.mk
View file @
317f375b
...
...
@@ -19,15 +19,14 @@
# values. This is a feeble attempt to provide "portable" scripts.
# _CWD_ - current working directory
# _OBJWD_ - where the generated files (eg. object files) are
# _SLSUFF_ - suffix of the shared library or object for
# dynamic loading
# _DLSUFFIX_ - suffix of the dynamic loading
# _USER_ - the login of the user
#
# Copyright (c) 1994-5, Regents of the University of California
#
#
# 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)
C
=
`
pwd
`
;
\
sed
-e
"s:_CWD_:
$$
C: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
#How to create a dynamic lib
...
...
@@ -58,7 +57,7 @@ CFLAGS+= -I$(includedir) $(CFLAGS_SL)
C
=
"
`
pwd
`
/"
;
\
sed
-e
"s:_CWD_:
$$
C: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
#
...
...
@@ -71,9 +70,9 @@ endif
#
# plus shared libraries
#
ifdef
SLSUFF
ifneq
($(
SLSUFF
), '.o')
CREATEFILES
+=
$
(
DLOBJS:.so
=
$(
SLSUFF
)
)
ifdef
DLSUFFIX
ifneq
($(
DLSUFFIX
), '.o')
CREATEFILES
+=
$
(
DLOBJS:.so
=
$(
DLSUFFIX
)
)
endif
endif
src/test/regress/Makefile
View file @
317f375b
...
...
@@ -7,7 +7,7 @@
#
#
# 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
# DLOBJS is the dynamically-loaded object file. The regression test uses
# this when it does a CREATE FUNCTION ... LANGUAGE 'C').
#
DLOBJS
=
regress
$(
SLSUFF
)
DLOBJS
=
regress
$(
DLSUFFIX
)
#
# ... plus test query inputs
...
...
@@ -69,7 +69,7 @@ expected.out: expected.input
C
=
"
`
pwd
`
"
;
\
sed
-e
"s:_CWD_:
$$
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
@
echo
"YOUR EXPECTED RESULTS ARE NOW IN FILE expected.out."
...
...
@@ -81,7 +81,7 @@ expected.out: expected.input
C
=
`
pwd
`
;
\
sed
-e
"s:_CWD_:
$$
C:g"
\
-e
"s:_OBJWD_:
$$
C:g"
\
-e
"s:_
SLSUFF_:
$(SLSUFF
)
:g"
\
-e
"s:_
DLSUFFIX_:
$(DLSUFFIX
)
:g"
\
-e
"s/_USER_/
$$
USER/g"
<
$<
>
$@
clean
:
...
...
src/test/regress/create.source
View file @
317f375b
...
...
@@ -9,12 +9,12 @@
CREATE FUNCTION circle_in(opaque)
RETURNS circle
AS '_OBJWD_/regress_
SLSUFF
_'
AS '_OBJWD_/regress_
DLSUFFIX
_'
LANGUAGE 'c';
CREATE FUNCTION circle_out(opaque)
RETURNS opaque
AS '_OBJWD_/regress_
SLSUFF
_'
AS '_OBJWD_/regress_
DLSUFFIX
_'
LANGUAGE 'c';
CREATE TYPE circle (
...
...
@@ -288,33 +288,33 @@ CREATE FUNCTION user_relns()
CREATE FUNCTION pt_in_circle(point, circle)
RETURNS int4
AS '_OBJWD_/regress_
SLSUFF
_'
AS '_OBJWD_/regress_
DLSUFFIX
_'
LANGUAGE 'c';
CREATE FUNCTION overpaid(emp)
RETURNS bool
AS '_OBJWD_/regress_
SLSUFF
_'
AS '_OBJWD_/regress_
DLSUFFIX
_'
LANGUAGE 'c';
CREATE FUNCTION boxarea(box)
RETURNS int4
AS '_OBJWD_/regress_
SLSUFF
_'
AS '_OBJWD_/regress_
DLSUFFIX
_'
LANGUAGE 'c';
CREATE FUNCTION interpt_pp(path, path)
RETURNS point
AS '_OBJWD_/regress_
SLSUFF
_'
AS '_OBJWD_/regress_
DLSUFFIX
_'
LANGUAGE 'c';
CREATE FUNCTION reverse_c16(char16)
RETURNS char16
AS '_OBJWD_/regress_
SLSUFF
_'
AS '_OBJWD_/regress_
DLSUFFIX
_'
LANGUAGE 'c';
--
-- FUNCTION DYNAMIC LOADING
--
LOAD '_OBJWD_/regress_
SLSUFF
_'
LOAD '_OBJWD_/regress_
DLSUFFIX
_'
--
-- CLASS POPULATION
...
...
src/test/regress/expected.input
View file @
317f375b
...
...
@@ -4,12 +4,12 @@ destroydb: database destroy failed on regression.
=============== creating new regression database... =================
QUERY: CREATE FUNCTION circle_in(opaque)
RETURNS circle
AS '_CWD_/obj/regress_
SLSUFF
_'
AS '_CWD_/obj/regress_
DLSUFFIX
_'
LANGUAGE 'c';
NOTICE:ProcedureCreate: type 'circle' is not yet defined
QUERY: CREATE FUNCTION circle_out(opaque)
RETURNS opaque
AS '_CWD_/obj/regress_
SLSUFF
_'
AS '_CWD_/obj/regress_
DLSUFFIX
_'
LANGUAGE 'c';
QUERY: CREATE TYPE circle (
internallength = 24,
...
...
@@ -211,25 +211,25 @@ QUERY: CREATE FUNCTION user_relns()
LANGUAGE 'sql';
QUERY: CREATE FUNCTION pt_in_circle(point, circle)
RETURNS int4
AS '_CWD_/obj/regress_
SLSUFF
_'
AS '_CWD_/obj/regress_
DLSUFFIX
_'
LANGUAGE 'c';
QUERY: CREATE FUNCTION overpaid(emp)
RETURNS bool
AS '_CWD_/obj/regress_
SLSUFF
_'
AS '_CWD_/obj/regress_
DLSUFFIX
_'
LANGUAGE 'c';
QUERY: CREATE FUNCTION boxarea(box)
RETURNS int4
AS '_CWD_/obj/regress_
SLSUFF
_'
AS '_CWD_/obj/regress_
DLSUFFIX
_'
LANGUAGE 'c';
QUERY: CREATE FUNCTION interpt_pp(path, path)
RETURNS point
AS '_CWD_/obj/regress_
SLSUFF
_'
AS '_CWD_/obj/regress_
DLSUFFIX
_'
LANGUAGE 'c';
QUERY: CREATE FUNCTION reverse_c16(char16)
RETURNS char16
AS '_CWD_/obj/regress_
SLSUFF
_'
AS '_CWD_/obj/regress_
DLSUFFIX
_'
LANGUAGE 'c';
QUERY: LOAD '_CWD_/obj/regress_
SLSUFF
_'
QUERY: LOAD '_CWD_/obj/regress_
DLSUFFIX
_'
COPY onek FROM '_CWD_/data/onek.data';
QUERY: COPY tenk1 FROM '_CWD_/data/tenk.data';
QUERY: INSERT INTO tenk2 VALUES (tenk1.*);
...
...
src/tutorial/C-code/Makefile
View file @
317f375b
...
...
@@ -3,7 +3,8 @@ include ../../Makefile.global
CFLAGS
+=
-I
../../include
-I
$(LIBPQDIR)
all
:
complex$(
SLSUFF) funcs$(SLSUFF
)
all
:
complex$(
DLSUFFIX) funcs$(DLSUFFIX
)
clean
:
rm
-f
complex
$(SLSUFF)
funcs
$(SLSUFF)
\ No newline at end of file
rm
-f
complex
$(DLSUFFIX)
funcs
$(DLSUFFIX)
src/tutorial/Makefile
View file @
317f375b
...
...
@@ -4,7 +4,7 @@
# Makefile for tutorial
#
# 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
# DLOBJS is the dynamically-loaded object files. The "funcs" queries
# 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
#
...
...
@@ -39,7 +39,7 @@ all: $(QUERIES)
C
=
`
pwd
`
;
\
sed
-e
"s:_CWD_:
$$
C:g"
\
-e
"s:_OBJWD_:
$$
C:g"
\
-e
"s:_
SLSUFF_:
$(SLSUFF
)
:g"
\
-e
"s:_
DLSUFFIX_:
$(DLSUFFIX
)
:g"
\
-e
"s/_USER_/
$$
USER/g"
<
$<
>
$@
funcs.sql
::
$(DLOBJS)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment