4
4
#
5
5
# Copyright (c) 1994, Regents of the University of California
6
6
#
7
- # $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.74 2003/03/29 11:31:51 petere Exp $
7
+ # $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.75 2003/04/14 21:15:13 tgl Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
@@ -21,9 +21,9 @@ SO_MINOR_VERSION= 1
21
21
override CPPFLAGS := -I$(srcdir ) $(CPPFLAGS ) -DFRONTEND -DSYSCONFDIR='"$(sysconfdir ) "'
22
22
23
23
OBJS = fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o\
24
- pqexpbuffer.odllist.o pqsignal.o fe-secure.o wchar.o encnames.o ip .o\
25
- md5.o\
26
- $(filter getaddrinfo.o inet_aton.o snprintf.o strerror.o,$(LIBOBJS ) )
24
+ pqexpbuffer.o pqsignal.o fe-secure.o\
25
+ dllist.o md5.o ip.o wchar.o encnames .o\
26
+ $(filter getaddrinfo.o inet_aton.o snprintf.o strerror.o path.o ,$(LIBOBJS ) )
27
27
28
28
29
29
# Add libraries that libpq depends (or might depend) on into the
@@ -39,6 +39,16 @@ include $(top_srcdir)/src/Makefile.shlib
39
39
backend_src =$(top_srcdir ) /src/backend
40
40
41
41
42
+ # We use several backend modules verbatim, but since we need to
43
+ # compile with appropriate options to build a shared lib, we can't
44
+ # necessarily use the same object files as the backend uses. Instead,
45
+ # symlink the source files in here and build our own object file.
46
+ # For port modules, this only happens if configure decides the module
47
+ # is needed (see filter hack in OBJS, above).
48
+
49
+ getaddrinfo.c inet_aton.c snprintf.c strerror.c path.c :% .c :$(top_srcdir ) /src/port/% .c
50
+ rm -f$@ && $(LN_S ) $< .
51
+
42
52
dllist.c :$(backend_src ) /lib/dllist.c
43
53
rm -f$@ && $(LN_S ) $< .
44
54
@@ -48,15 +58,6 @@ md5.c: $(backend_src)/libpq/md5.c
48
58
ip.c :$(backend_src ) /libpq/ip.c
49
59
rm -f$@ && $(LN_S ) $< .
50
60
51
- # We use several backend modules verbatim, but since we need to
52
- # compile with appropriate options to build a shared lib, we can't
53
- # necessarily use the same object files as the backend uses. Instead,
54
- # symlink the source files in here and build our own object file.
55
- # this only gets done if configure finds system doesn't have inet_aton()
56
-
57
- getaddrinfo.c inet_aton.c snprintf.c strerror.c :% .c :$(top_srcdir ) /src/port/% .c
58
- rm -f$@ && $(LN_S ) $< .
59
-
60
61
encnames.c wchar.c :% :$(backend_src ) /utils/mb/%
61
62
rm -f$@ && $(LN_S ) $< .
62
63
@@ -74,5 +75,5 @@ uninstall: uninstall-lib
74
75
rm -f$(DESTDIR )$(includedir ) /libpq-fe.h$(DESTDIR )$(includedir_internal ) /libpq-int.h$(includedir_internal ) /pqexpbuffer.h
75
76
76
77
clean distclean maintainer-clean : clean-lib
78
+ rm -f$(OBJS ) getaddrinfo.c inet_aton.c snprintf.c strerror.c path.c
77
79
rm -f$(OBJS ) dllist.c md5.c ip.c wchar.c encnames.c
78
- rm -f$(OBJS ) getaddrinfo.c inet_aton.c snprintf.c strerror.c