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
c6978ecd
Commit
c6978ecd
authored
Nov 25, 2010
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restructure how libpq includes external C files, for clarity.
parent
cc1ed40d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
14 deletions
+21
-14
src/interfaces/libpq/Makefile
src/interfaces/libpq/Makefile
+21
-14
No files found.
src/interfaces/libpq/Makefile
View file @
c6978ecd
...
...
@@ -25,24 +25,33 @@ override CFLAGS += $(PTHREAD_CFLAGS)
endif
# Need to recompile any libpgport object files because we need these
# object files to use the same compile flags as libpq. If we used
# the object files from libpgport, this would not be true on all
# platforms. We filter some object files so we only use object
# files configure says we need.
# object files to use the same compile flags as libpq; some
# platforms require special flags for all libpq object files.
LIBS
:=
$
(
LIBS:-lpgport
=)
# external object files that are always used by libpq
BACKEND_LIBPQ
=
md5 ip
UTILS_MB
=
encnames wchar
PERM_PGPORT
=
inet_net_ntop noblock pgstrcasecmp thread
ifeq
($(PORTNAME), win32)
PERM_PGPORT
+=
pgsleep
endif
# pgport object files are used by libpq if identified by configure
OPT_PGPORT
=
$(
filter
$(
addsuffix
.o, crypt getaddrinfo inet_aton open snprintf strerror strlcpy win32error
)
,
$(LIBOBJS)
)
OBJS
=
fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o
\
fe-protocol2.o fe-protocol3.o pqexpbuffer.o pqsignal.o fe-secure.o
\
libpq-events.o
\
md5.o ip.o wchar.o encnames.o inet_net_ntop.o noblock.o pgstrcasecmp.o thread.o
\
$(
filter
crypt.o getaddrinfo.o inet_aton.o open.o snprintf.o strerror.o strlcpy.o win32error.o,
$(LIBOBJS)
)
$(
addsuffix
.o,
$(PERM_PGPORT)
$(OPT_PGPORT)
$(BACKEND_LIBPQ)
$(UTILS_MB)
)
ifeq
($(PORTNAME), cygwin)
override
shlib
=
cyg
$(NAME)$(DLSUFFIX)
endif
ifeq
($(PORTNAME), win32)
OBJS
+=
win32.o
pgsleep.o
libpqrc.o
OBJS
+=
win32.o libpqrc.o
libpqrc.o
:
libpq.rc
$(WINDRES)
-i
$<
-o
$@
...
...
@@ -77,17 +86,15 @@ backend_src = $(top_srcdir)/src/backend
# We use several backend modules verbatim, but since we need to
# compile with appropriate options to build a shared lib, we can't
# necessarily use the same object files as the backend uses. Instead,
# symlink the source files in here and build our own object file.
# For port modules, this only happens if configure decides the module
# is needed (see filter hack in OBJS, above).
# we symlink the source files in here and build our own object files.
crypt.c getaddrinfo.c inet_aton.c inet_net_ntop.c noblock.c open.c pgstrcasecmp.c snprintf.c strerror.c strlcpy.c thread.c win32error.c pgsleep.c
:
% : $(top_srcdir)/src/port/%
$(addsuffix .c, $(PERM_PGPORT) $(OPT_PGPORT))
:
% : $(top_srcdir)/src/port/%
rm
-f
$@
&&
$(LN_S)
$<
.
md5.c ip.c
:
% : $(backend_src)/libpq/%
$(addsuffix .c, $(BACKEND_LIBPQ))
:
% : $(backend_src)/libpq/%
rm
-f
$@
&&
$(LN_S)
$<
.
encnames.c wchar.c
:
% : $(backend_src)/utils/mb/%
$(addsuffix .c, $(UTILS_MB))
:
% : $(backend_src)/utils/mb/%
rm
-f
$@
&&
$(LN_S)
$<
.
...
...
@@ -124,7 +131,7 @@ uninstall: uninstall-lib
rm
-f
'
$(DESTDIR)$(datadir)
/pg_service.conf.sample'
clean distclean
:
clean-lib
rm
-f
$(OBJS)
pg_config_paths.h
crypt.c getaddrinfo.c inet_aton.c noblock.c open.c pgstrcasecmp.c snprintf.c strerror.c strlcpy.c thread.c md5.c ip.c encnames.c wchar.c win32error.c pgsleep.c pthread.h libpq.rc
rm
-f
$(OBJS)
pg_config_paths.h
pthread.h libpq.rc
$(
addsuffix
.c,
$(BACKEND_LIBPQ)
$(UTILS_MB)
$(PERM_PGPORT)
$(OPT_PGPORT)
)
# Might be left over from a Win32 client-only build
rm
-f
pg_config_paths.h
...
...
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