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
Hide 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 @@
...
@@ -7,7 +7,7 @@
#
#
#
#
# IDENTIFICATION
# 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
# 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
...
...
src/mk/postgres.user.mk
View file @
317f375b
...
@@ -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
src/test/regress/Makefile
View file @
317f375b
...
@@ -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
:
...
...
src/test/regress/create.source
View file @
317f375b
...
@@ -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
...
...
src/test/regress/expected.input
View file @
317f375b
...
@@ -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.*);
...
...
src/tutorial/C-code/Makefile
View file @
317f375b
...
@@ -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
src/tutorial/Makefile
View file @
317f375b
...
@@ -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)
...
...
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