44#
55# Copyright (c) 1994, Regents of the University of California
66#
7- # $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.47 2000/10/30 10:31:45 ishii Exp $
7+ # $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.48 2001/01/20 23:07:27 tgl Exp $
88#
99# -------------------------------------------------------------------------
1010
@@ -20,7 +20,8 @@ SO_MINOR_VERSION= 1
2020override CPPFLAGS += -DFRONTEND -I$(srcdir ) -DSYSCONFDIR='"$(sysconfdir ) "'
2121
2222OBJS = fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o\
23- pqexpbuffer.o dllist.o pqsignal.o$(SNPRINTF ) $(INET_ATON )
23+ pqexpbuffer.o dllist.o pqsignal.o\
24+ $(INET_ATON ) $(SNPRINTF ) $(STRERROR )
2425
2526ifdef MULTIBYTE
2627OBJS+ = common.o wchar.o
@@ -48,12 +49,16 @@ backend_src = $(top_srcdir)/src/backend
4849dllist.c :$(backend_src ) /lib/dllist.c
4950rm -f$@ && $(LN_S ) $< .
5051
52+ # this only gets done if configure finds system doesn't have inet_aton()
53+ inet_aton.c :$(backend_src ) /port/inet_aton.c
54+ rm -f$@ && $(LN_S ) $< .
55+
5156# this only gets done if configure finds system doesn't have snprintf()
5257snprintf.c :$(backend_src ) /port/snprintf.c
5358rm -f$@ && $(LN_S ) $< .
5459
55- # this only gets done if configure finds system doesn't haveinet_aton ()
56- inet_aton .c :$(backend_src ) /port/inet_aton .c
60+ # this only gets done if configure finds system doesn't havestrerror ()
61+ strerror .c :$(backend_src ) /port/strerror .c
5762rm -f$@ && $(LN_S ) $< .
5863
5964ifdef MULTIBYTE
@@ -77,7 +82,8 @@ uninstall: uninstall-lib
7782rm -f$(addprefix $(DESTDIR )$(includedir ) /, libpq-fe.h libpq-int.h pqexpbuffer.h)
7883
7984clean distclean maintainer-clean : clean-lib
80- rm -f$(OBJS ) dllist.c snprintf.c inet_aton.c common.c wchar.c conv.c big5.c
85+ rm -f$(OBJS ) dllist.c common.c wchar.c conv.c big5.c
86+ rm -f$(OBJS ) inet_aton.c snprintf.c strerror.c
8187
8288depend dep :
8389$(CC ) -MM$(CFLAGS ) * .c> depend