Commit 85bbd549 authored by Tom Lane's avatar Tom Lane

Oops, forgot that libpq needs extra steps to make use of src/port/ files.

parent c92f7e25
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group # Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California # Portions Copyright (c) 1994, Regents of the University of California
# #
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.148 2006/09/09 03:15:40 tgl Exp $ # $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.149 2006/09/27 21:29:17 tgl Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -34,7 +34,7 @@ LIBS := $(LIBS:-lpgport=) ...@@ -34,7 +34,7 @@ LIBS := $(LIBS:-lpgport=)
OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \ 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 \ fe-protocol2.o fe-protocol3.o pqexpbuffer.o pqsignal.o fe-secure.o \
md5.o ip.o wchar.o encnames.o noblock.o pgstrcasecmp.o thread.o \ md5.o ip.o wchar.o encnames.o noblock.o pgstrcasecmp.o thread.o \
$(filter crypt.o getaddrinfo.o inet_aton.o open.o snprintf.o strerror.o, $(LIBOBJS)) $(filter crypt.o getaddrinfo.o inet_aton.o open.o snprintf.o strerror.o strlcpy.o, $(LIBOBJS))
ifeq ($(PORTNAME), cygwin) ifeq ($(PORTNAME), cygwin)
override shlib = cyg$(NAME)$(DLSUFFIX) override shlib = cyg$(NAME)$(DLSUFFIX)
...@@ -80,7 +80,7 @@ backend_src = $(top_srcdir)/src/backend ...@@ -80,7 +80,7 @@ backend_src = $(top_srcdir)/src/backend
# For port modules, this only happens if configure decides the module # For port modules, this only happens if configure decides the module
# is needed (see filter hack in OBJS, above). # is needed (see filter hack in OBJS, above).
crypt.c getaddrinfo.c inet_aton.c noblock.c pgstrcasecmp.c snprintf.c strerror.c open.c thread.c: % : $(top_srcdir)/src/port/% crypt.c getaddrinfo.c inet_aton.c noblock.c open.c pgstrcasecmp.c snprintf.c strerror.c strlcpy.c thread.c: % : $(top_srcdir)/src/port/%
rm -f $@ && $(LN_S) $< . rm -f $@ && $(LN_S) $< .
md5.c ip.c: % : $(backend_src)/libpq/% md5.c ip.c: % : $(backend_src)/libpq/%
...@@ -169,7 +169,7 @@ uninstall: uninstall-lib ...@@ -169,7 +169,7 @@ uninstall: uninstall-lib
rm -f '$(DESTDIR)$(includedir)/libpq-fe.h' '$(DESTDIR)$(includedir_internal)/libpq-int.h' '$(DESTDIR)$(includedir_internal)/pqexpbuffer.h' '$(DESTDIR)$(datadir)/pg_service.conf.sample' rm -f '$(DESTDIR)$(includedir)/libpq-fe.h' '$(DESTDIR)$(includedir_internal)/libpq-int.h' '$(DESTDIR)$(includedir_internal)/pqexpbuffer.h' '$(DESTDIR)$(datadir)/pg_service.conf.sample'
clean distclean: clean-lib clean distclean: clean-lib
rm -f $(OBJS) pg_config_paths.h crypt.c getaddrinfo.c inet_aton.c noblock.c pgstrcasecmp.c snprintf.c strerror.c open.c thread.c md5.c ip.c encnames.c wchar.c pthread.h exports.list 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 pthread.h exports.list
rm -f pg_config_paths.h # Might be left over from a Win32 client-only build rm -f pg_config_paths.h # Might be left over from a Win32 client-only build
maintainer-clean: distclean maintainer-clean: distclean
......
...@@ -76,6 +76,7 @@ ALL : config "$(OUTDIR)" "$(OUTDIR)\blibpq.dll" "$(OUTDIR)\blibpq.lib" ...@@ -76,6 +76,7 @@ ALL : config "$(OUTDIR)" "$(OUTDIR)\blibpq.dll" "$(OUTDIR)\blibpq.lib"
CLEAN : CLEAN :
-@erase "$(INTDIR)\getaddrinfo.obj" -@erase "$(INTDIR)\getaddrinfo.obj"
-@erase "$(INTDIR)\pgstrcasecmp.obj" -@erase "$(INTDIR)\pgstrcasecmp.obj"
-@erase "$(INTDIR)\strlcpy.obj"
-@erase "$(INTDIR)\thread.obj" -@erase "$(INTDIR)\thread.obj"
-@erase "$(INTDIR)\inet_aton.obj" -@erase "$(INTDIR)\inet_aton.obj"
-@erase "$(INTDIR)\crypt.obj" -@erase "$(INTDIR)\crypt.obj"
...@@ -112,6 +113,7 @@ LIB32_OBJS= \ ...@@ -112,6 +113,7 @@ LIB32_OBJS= \
"$(INTDIR)\win32.obj" \ "$(INTDIR)\win32.obj" \
"$(INTDIR)\getaddrinfo.obj" \ "$(INTDIR)\getaddrinfo.obj" \
"$(INTDIR)\pgstrcasecmp.obj" \ "$(INTDIR)\pgstrcasecmp.obj" \
"$(INTDIR)\strlcpy.obj" \
"$(INTDIR)\thread.obj" \ "$(INTDIR)\thread.obj" \
"$(INTDIR)\inet_aton.obj" \ "$(INTDIR)\inet_aton.obj" \
"$(INTDIR)\crypt.obj" \ "$(INTDIR)\crypt.obj" \
...@@ -185,6 +187,11 @@ LINK32_OBJS= "$(INTDIR)\libpqdll.obj" ...@@ -185,6 +187,11 @@ LINK32_OBJS= "$(INTDIR)\libpqdll.obj"
$(CPP_PROJ) ..\..\port\pgstrcasecmp.c $(CPP_PROJ) ..\..\port\pgstrcasecmp.c
<< <<
"$(INTDIR)\strlcpy.obj" : ..\..\port\strlcpy.c
$(CPP) @<<
$(CPP_PROJ) ..\..\port\strlcpy.c
<<
"$(INTDIR)\thread.obj" : ..\..\port\thread.c "$(INTDIR)\thread.obj" : ..\..\port\thread.c
$(CPP) @<< $(CPP) @<<
$(CPP_PROJ) ..\..\port\thread.c $(CPP_PROJ) ..\..\port\thread.c
......
...@@ -69,6 +69,7 @@ CLEAN : ...@@ -69,6 +69,7 @@ CLEAN :
-@erase "$(INTDIR)\encnames.obj" -@erase "$(INTDIR)\encnames.obj"
-@erase "$(INTDIR)\pthread-win32.obj" -@erase "$(INTDIR)\pthread-win32.obj"
-@erase "$(INTDIR)\snprintf.obj" -@erase "$(INTDIR)\snprintf.obj"
-@erase "$(INTDIR)\strlcpy.obj"
-@erase "$(OUTDIR)\$(OUTFILENAME).lib" -@erase "$(OUTDIR)\$(OUTFILENAME).lib"
-@erase "$(OUTDIR)\$(OUTFILENAME)dll.lib" -@erase "$(OUTDIR)\$(OUTFILENAME)dll.lib"
-@erase "$(OUTDIR)\libpq.res" -@erase "$(OUTDIR)\libpq.res"
...@@ -105,6 +106,7 @@ LIB32_OBJS= \ ...@@ -105,6 +106,7 @@ LIB32_OBJS= \
"$(INTDIR)\wchar.obj" \ "$(INTDIR)\wchar.obj" \
"$(INTDIR)\encnames.obj" \ "$(INTDIR)\encnames.obj" \
"$(INTDIR)\snprintf.obj" \ "$(INTDIR)\snprintf.obj" \
"$(INTDIR)\strlcpy.obj" \
"$(INTDIR)\pthread-win32.obj" "$(INTDIR)\pthread-win32.obj"
...@@ -220,6 +222,11 @@ LINK32_OBJS= \ ...@@ -220,6 +222,11 @@ LINK32_OBJS= \
$(CPP_PROJ) /I"." ..\..\port\snprintf.c $(CPP_PROJ) /I"." ..\..\port\snprintf.c
<< <<
"$(INTDIR)\strlcpy.obj" : ..\..\port\strlcpy.c
$(CPP) @<<
$(CPP_PROJ) /I"." ..\..\port\strlcpy.c
<<
.c{$(CPP_OBJS)}.obj: .c{$(CPP_OBJS)}.obj:
$(CPP) $(CPP_PROJ) $< $(CPP) $(CPP_PROJ) $<
......
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