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
7d55b1c7
Commit
7d55b1c7
authored
Feb 12, 1998
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
There, fixed
parent
ced5b1ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
+62
-0
src/interfaces/ecpg/lib/Makefile
src/interfaces/ecpg/lib/Makefile
+62
-0
No files found.
src/interfaces/ecpg/lib/Makefile
0 → 100644
View file @
7d55b1c7
SRCDIR
=
../../..
include
$(SRCDIR)/Makefile.global
PQ_INCLUDE
=
-I
$(SRCDIR)
/include
-I
$(SRCDIR)
/interfaces/libpq
SO_MAJOR_VERSION
=
0
SO_MINOR_VERSION
=
5
# Shared library stuff
shlib
:=
install-shlib-dep
:=
ifeq
($(PORTNAME), linux)
ifdef
LINUX_ELF
install-shlib-dep
:=
install-shlib
shlib
:=
libecpg.so.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LDFLAGS_SL
=
-shared
CFLAGS
+=
$(CFLAGS_SL)
endif
endif
ifeq
($(PORTNAME), bsd)
install-shlib-dep
:=
install-shlib
shlib
:=
libecpg.so.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LDFLAGS_SL
=
-x
-Bshareable
-Bforcearchive
CFLAGS
+=
$(CFLAGS_SL)
endif
ifeq
($(PORTNAME), i386_solaris)
install-shlib-dep
:=
install-shlib
shlib
:=
libecpg.so.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LDFLAGS_SL
=
-G
-z
text
CFLAGS
+=
$(CFLAGS_SL)
endif
ifeq
($(PORTNAME), univel)
install-shlib-dep
:=
install-shlib
shlib
:=
libecpg.so.1
LDFLAGS_SL
=
-G
-z
text
CFLAGS
+=
$(CFLAGS_SL)
endif
all
:
libecpg.a $(shlib)
$(shlib)
:
ecpglib.o typename.o
$(LD)
$(LDFLAGS_SL)
-o
$@
ecpglib.o typename.o
ln
-sf
$@
libecpg.so
clean
:
rm
-f
*
.o
*
.a core a.out
*
~
$(shlib)
libecpg.so
install
:
libecpg.a
install
-m
644 libecpg.a
$(DESTDIR)$(LIBDIR)
install
-m
644
$(shlib)
$(DESTDIR)$(LIBDIR)
ln
-sf
$(shlib)
$(DESTDIR)$(LIBDIR)
/libecpg.so
uninstall
::
rm
-f
$(DESTDIR)$(LIBDIR)
/libecpg.a
$(DESTDIR)$(LIBDIR)
/
$(shlib)
# Rules that do something
libecpg.a
:
libecpg.a(ecpglib.o) libecpg.a(typename.o)
ecpglib.o
:
ecpglib.c ../include/ecpglib.h ../include/ecpgtype.h
$(CC)
-O2
-g
-Wall
-I
../include
$(PQ_INCLUDE)
-c
ecpglib.c
typename.o
:
typename.c ../include/ecpgtype.h
$(CC)
-g
-O2
-Wall
-I
../include
$(PQ_INCLUDE)
-c
typename.c
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