]> granicus.if.org Git - postgresql/commitdiff
Clean up library names and installation paths.
authorThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 14 Oct 1998 16:13:03 +0000 (16:13 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 14 Oct 1998 16:13:03 +0000 (16:13 +0000)
Include soft links in the installation directory for major version number.
Use the existing $(DLSUFFIX) parameter to name shared library.

src/interfaces/ecpg/lib/Makefile.in
src/interfaces/libpgtcl/Makefile.in
src/interfaces/libpq/Makefile.in

index 8d017f1bc20fce83a5fc70c9dfb2b45017babbf1..e315a1585b46af53b574880bb32563994ba05d50 100644 (file)
@@ -1,12 +1,14 @@
-SRCDIR= ../../..
+NAME= ecpg
+SO_MAJOR_VERSION= 2
+SO_MINOR_VERSION= 6
+SO_PATCHLEVEL= 2
+
+SRCDIR= @top_srcdir@
+
 include $(SRCDIR)/Makefile.global
 
 PQ_INCLUDE=-I$(SRCDIR)/interfaces/libpq
 
-SO_MAJOR_VERSION=2
-SO_MINOR_VERSION=6
-SO_PATCHLEVEL=2
-
 PORTNAME=@PORTNAME@
 
 ifdef KRBVERS
@@ -21,15 +23,15 @@ ifeq ($(PORTNAME), linux)
   LINUX_ELF=@LINUX_ELF@
   ifdef LINUX_ELF
     install-shlib-dep := install-shlib
-    shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_PATCHLEVEL)
-    LDFLAGS_SL = -shared -soname libecpg.so.$(SO_MAJOR_VERSION)
+    shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_PATCHLEVEL)
+    LDFLAGS_SL = -shared -soname lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
   endif
 endif
 
 ifeq ($(PORTNAME), bsd)
   ifdef BSD_SHLIB
     install-shlib-dep := install-shlib
-    shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_PATCHLEVEL)
+    shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_PATCHLEVEL)
     LDFLAGS_SL = -x -Bshareable -Bforcearchive
     CFLAGS += $(CFLAGS_SL)
   endif
@@ -37,62 +39,65 @@ endif
 
 ifeq ($(PORTNAME), solaris_sparc)
   install-shlib-dep := install-shlib
-  shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_PATCHLEVEL)
+  shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_PATCHLEVEL)
   LDFLAGS_SL = -G
   CFLAGS += $(CFLAGS_SL)
 endif
 
 ifeq ($(PORTNAME), solaris_i386)
   install-shlib-dep := install-shlib
-  shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_PATCHLEVEL)
+  shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_PATCHLEVEL)
   LDFLAGS_SL = -G
   CFLAGS += $(CFLAGS_SL)
 endif
 
 ifeq ($(PORTNAME), svr4)
   install-shlib-dep := install-shlib
-  shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_PATCHLEVEL)
+  shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_PATCHLEVEL)
   LDFLAGS_SL = -G
   CFLAGS += $(CFLAGS_SL)
 endif
 
 ifeq ($(PORTNAME), univel)
   install-shlib-dep := install-shlib
-  shlib := libecpg.so.1
+  shlib := lib$(NAME)$(DLSUFFIX).1
   LDFLAGS_SL = -G -z text
   CFLAGS += $(CFLAGS_SL)
 endif
 
 ifeq ($(PORTNAME), unixware)
   install-shlib-dep := install-shlib
-  shlib := libecpg.so.1
+  shlib := lib$(NAME)$(DLSUFFIX).1
   LDFLAGS_SL = -G -z text
   CFLAGS += $(CFLAGS_SL)
 endif
 
-all: libecpg.a $(shlib)
+all: lib$(NAME).a $(shlib)
 
 $(shlib): ecpglib.sho typename.sho
        $(LD) $(LDFLAGS_SL) -o $@ ecpglib.sho typename.sho
-       $(LN_S) -f $@ libecpg.so
 
 clean:
-       rm -f *.o *.sho *.a core a.out *~ $(shlib) libecpg.so
+       rm -f *.o *.sho *.a core a.out *~ $(shlib) lib$(NAME)$(DLSUFFIX)
 
 dep depend:
 
-install: libecpg.a $(shlib) $(install-shlib-dep)
-       $(INSTALL) $(INSTLOPTS) libecpg.a $(LIBDIR)
+install: lib$(NAME).a $(shlib) $(install-shlib-dep)
+       $(INSTALL) $(INSTLOPTS) lib$(NAME).a $(LIBDIR)
 
 install-shlib:
        $(INSTALL) $(INSTLOPTS) $(shlib) $(LIBDIR)
-       $(LN_S) -f $(shlib) $(LIBDIR)/libecpg.so
+       cd $(LIBDIR) && $(LN_S) -f $(shlib) lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
+       cd $(LIBDIR) && $(LN_S) -f $(shlib) lib$(NAME)$(DLSUFFIX)
 
 uninstall::
-       rm -f $(LIBDIR)/libecpg.a $(LIBDIR)/$(shlib)
+       rm -f $(LIBDIR)/lib$(NAME).a $(LIBDIR)/$(shlib)
+       rm -f $(LIBDIR)/lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
+       rm -f $(LIBDIR)/lib$(NAME)$(DLSUFFIX)
 
 # Rules that do something
-libecpg.a : libecpg.a(ecpglib.o) libecpg.a(typename.o)
+lib$(NAME).a : lib$(NAME).a(ecpglib.o) lib$(NAME).a(typename.o)
 
 ecpglib.o : ecpglib.c ../include/ecpglib.h ../include/ecpgtype.h
        $(CC) $(CFLAGS) -I../include $(PQ_INCLUDE) -c $< -o $@
index ec663a961010f92fcbb9fae55aa97cc59a43bd97..9df0dc0d3cd30a8d47932baef739c6716d22e635 100644 (file)
@@ -7,14 +7,15 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.30 1998/10/12 02:40:59 momjian Exp $
+#    $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.31 1998/10/14 16:12:54 thomas Exp $
 #
 #-------------------------------------------------------------------------
 
-SO_MAJOR_VERSION=2
-SO_MINOR_VERSION=0
+NAME= pgtcl
+SO_MAJOR_VERSION= 2
+SO_MINOR_VERSION= 0
 
-SRCDIR= ../..
+SRCDIR= @top_srcdir@
 include $(SRCDIR)/Makefile.global
 
 INCLUDE_OPT= \
@@ -34,21 +35,21 @@ endif
 install-shlib-dep :=
 shlib             := 
 
-LIBPQ                  = -L$(SRCDIR)/interfaces/libpq -lpq
+LIBPQ= -L$(SRCDIR)/interfaces/libpq -lpq
 
 ifeq ($(PORTNAME), linux)
   install-shlib-dep    := install-shlib
-  shlib                        := libpgtcl.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-  CFLAGS               += $(CFLAGS_SL)
+  shlib                                := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+  CFLAGS                       += $(CFLAGS_SL)
   LDFLAGS_SL           = -shared
 endif
 
 ifeq ($(PORTNAME), bsd)
   ifdef BSD_SHLIB
     install-shlib-dep  := install-shlib
-    shlib              := libpgtcl.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-    LDFLAGS_SL         = -x -Bshareable -Bforcearchive
-    CFLAGS             += $(CFLAGS_SL)
+    shlib                              := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+    LDFLAGS_SL                 = -x -Bshareable -Bforcearchive
+    CFLAGS                             += $(CFLAGS_SL)
   endif
 endif
 
@@ -56,78 +57,77 @@ ifeq ($(PORTNAME), bsdi)
   ifdef BSD_SHLIB
     ifeq ($(DLSUFFIX), .so)
       install-shlib-dep        := install-shlib
-      shlib            := libpgtcl.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-      LDFLAGS_SL       += -shared
-      CFLAGS           += $(CFLAGS_SL)
+      shlib                            := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+      LDFLAGS_SL               += -shared
+      CFLAGS                   += $(CFLAGS_SL)
     endif
     ifeq ($(DLSUFFIX), .o)
       install-shlib-dep        := install-shlib
-      shlib            := libpgtcl.o.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-      LD               := shlicc
-      LDFLAGS_SL       += -O -r
-      CFLAGS           += $(CFLAGS_SL)
+      shlib                            := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+      LD                               := shlicc
+      LDFLAGS_SL               += -O -r
+      CFLAGS                   += $(CFLAGS_SL)
     endif
   endif
 endif
 
 ifeq ($(PORTNAME), solaris_sparc)
   install-shlib-dep    := install-shlib
-  shlib                        := libpgtcl.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+  shlib                                := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
   LDFLAGS_SL           := -G
-  CFLAGS               += $(CFLAGS_SL)
+  CFLAGS                       += $(CFLAGS_SL)
 endif
 
 ifeq ($(PORTNAME), solaris_i386)
   install-shlib-dep    := install-shlib
-  shlib                        := libpgtcl.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+  shlib                                := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
   LDFLAGS_SL           := -G
-  CFLAGS               += $(CFLAGS_SL)
+  CFLAGS                       += $(CFLAGS_SL)
 endif
 
 ifeq ($(PORTNAME), svr4)
   install-shlib-dep    := install-shlib
-  shlib                        := libpgtcl.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+  shlib                                := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
   LDFLAGS_SL           := -G
-  CFLAGS               += $(CFLAGS_SL)
+  CFLAGS                       += $(CFLAGS_SL)
 endif
 
 ifeq ($(PORTNAME), unixware)
   install-shlib-dep    := install-shlib
-  shlib                        := libpgtcl.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+  shlib                                := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
   LDFLAGS_SL           := -G -z text
-  CFLAGS               += $(CFLAGS_SL)
+  CFLAGS                       += $(CFLAGS_SL)
 endif
 
 ifeq ($(PORTNAME), univel)
   install-shlib-dep    := install-shlib
-  shlib                        := libpgtcl.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+  shlib                                := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
   LDFLAGS_SL           := -G -z text
-  CFLAGS               += $(CFLAGS_SL)
+  CFLAGS                       += $(CFLAGS_SL)
 endif
 
 ifeq ($(PORTNAME), hpux)
   install-shlib-dep    := install-shlib
-  shlib                        := libpgtcl.sl
+  shlib                                := lib$(NAME)$(DLSUFFIX)
   LDFLAGS_SL           := -b
-  CFLAGS               += $(CFLAGS_SL)
+  CFLAGS                       += $(CFLAGS_SL)
 endif
 
 OBJS= pgtcl.o pgtclCmds.o pgtclId.o
 
 
-all: libpgtcl.a $(shlib)
+all: lib$(NAME).a $(shlib)
 
-libpgtcl.a: $(OBJS)
+lib$(NAME).a: $(OBJS)
 ifdef MK_NO_LORDER
-       $(AR) $(AROPT) libpgtcl.a $(OBJS)
+       $(AR) $(AROPT) lib$(NAME).a $(OBJS)
 else
-       $(AR) $(AROPT) libpgtcl.a `lorder $(OBJS) | tsort`
+       $(AR) $(AROPT) lib$(NAME).a `lorder $(OBJS) | tsort`
 endif
-       $(RANLIB) libpgtcl.a
+       $(RANLIB) lib$(NAME).a
 
 $(shlib): $(OBJS)
        $(LD) $(LDFLAGS_SL) -o $@ $(OBJS) $(LIBPQ)
-       $(LN_S) -f $@ libpgtcl.so
 
 .PHONY: beforeinstall-headers install-headers
 .PHONY: install install-libpgtcl
@@ -140,17 +140,18 @@ install-headers: beforeinstall-headers libpgtcl.h
 beforeinstall-headers:
        @if [ ! -d $(HEADERDIR) ]; then mkdir $(HEADERDIR); fi
 
-install-libpgtcl: libpgtcl.a
-       $(INSTALL) $(INSTL_LIB_OPTS) libpgtcl.a $(LIBDIR)/libpgtcl.a
+install-libpgtcl: lib$(NAME).a
+       $(INSTALL) $(INSTL_LIB_OPTS) lib$(NAME).a $(LIBDIR)/lib$(NAME).a
 
 install-shlib: $(shlib)
        $(INSTALL) $(INSTL_SHLIB_OPTS) $(shlib) \
                $(LIBDIR)/$(shlib)
-       rm -f $(LIBDIR)/libpgtcl.so
-       $(LN_S) -f $(shlib) $(LIBDIR)/libpgtcl.so
+       rm -f $(LIBDIR)/lib$(NAME)$(DLSUFFIX)
+       cd $(LIBDIR) && $(LN_S) -f $(shlib) lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
+       cd $(LIBDIR) && $(LN_S) -f $(shlib) lib$(NAME)$(DLSUFFIX)
 
 .PHONY: clean
 clean: 
-       rm -f $(OBJS) $(shlib) libpgtcl.a libpgtcl.so
+       rm -f $(OBJS) $(shlib) lib$(NAME).a lib$(NAME)$(DLSUFFIX)
 
 dep depend:
index cfc084c305ce2a65de4d00d05d193594b8583f5e..ed2a56109081f6dbaae8f67807f02f7a88ae547e 100644 (file)
@@ -7,19 +7,20 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.37 1998/10/12 01:23:25 momjian Exp $
+#    $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.38 1998/10/14 16:13:03 thomas Exp $
 #
 #-------------------------------------------------------------------------
 
-SO_MAJOR_VERSION=2
-SO_MINOR_VERSION=0
+NAME= pq
+SO_MAJOR_VERSION= 2
+SO_MINOR_VERSION= 0
 
-SRCDIR= ../..
+SRCDIR= @top_srcdir@
 include $(SRCDIR)/Makefile.global
 
-PORTNAME=@PORTNAME@
+PORTNAME= @PORTNAME@
 
-CFLAGS+=-DFRONTEND
+CFLAGS+= -DFRONTEND
 
 ifdef KRBVERS
 CFLAGS+= $(KRBFLAGS)
@@ -42,17 +43,17 @@ install-shlib-dep :=
 
 ifeq ($(PORTNAME), linux)
   install-shlib-dep    := install-shlib
-  shlib                        := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-  LDFLAGS_SL           := -shared -soname libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-  CFLAGS               += $(CFLAGS_SL)
+  shlib                                := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+  LDFLAGS_SL           := -shared -soname lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+  CFLAGS                       += $(CFLAGS_SL)
 endif
 
 ifeq ($(PORTNAME), bsd)
   ifdef BSD_SHLIB
     install-shlib-dep  := install-shlib
-    shlib              := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-    LDFLAGS_SL         := -x -Bshareable -Bforcearchive
-    CFLAGS             += $(CFLAGS_SL)
+    shlib                              := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+    LDFLAGS_SL                 := -x -Bshareable -Bforcearchive
+    CFLAGS                             += $(CFLAGS_SL)
   endif
 endif
 
@@ -60,60 +61,60 @@ ifeq ($(PORTNAME), bsdi)
   ifdef BSD_SHLIB
     ifeq ($(DLSUFFIX), .so)
       install-shlib-dep := install-shlib
-      shlib            := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-      LDFLAGS_SL       += -shared
-      CFLAGS           += $(CFLAGS_SL)
+      shlib                            := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+      LDFLAGS_SL               += -shared
+      CFLAGS                   += $(CFLAGS_SL)
     endif
     ifeq ($(DLSUFFIX), .o)
       install-shlib-dep        := install-shlib
-      shlib            := libpq.o.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-      LD               := shlicc
-      LDFLAGS_SL       += -O -r
-      CFLAGS           += $(CFLAGS_SL)
+      shlib                            := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+      LD                               := shlicc
+      LDFLAGS_SL               += -O -r
+      CFLAGS                   += $(CFLAGS_SL)
     endif
   endif
 endif
 
 ifeq ($(PORTNAME), solaris_sparc)
   install-shlib-dep    := install-shlib
-  shlib                        := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+  shlib                                := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
   LDFLAGS_SL           := -G
-  CFLAGS               += $(CFLAGS_SL)
+  CFLAGS                       += $(CFLAGS_SL)
 endif
 
 ifeq ($(PORTNAME), solaris_i386)
   install-shlib-dep    := install-shlib
-  shlib                        := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+  shlib                                := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
   LDFLAGS_SL           := -G
-  CFLAGS               += $(CFLAGS_SL)
+  CFLAGS                       += $(CFLAGS_SL)
 endif
 
 ifeq ($(PORTNAME), svr4)
   install-shlib-dep    := install-shlib
-  shlib                        := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+  shlib                                := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
   LDFLAGS_SL           := -G
-  CFLAGS               += $(CFLAGS_SL)
+  CFLAGS                       += $(CFLAGS_SL)
 endif
 
 ifeq ($(PORTNAME), unixware)
   install-shlib-dep    := install-shlib
-  shlib                        := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+  shlib                                := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
   LDFLAGS_SL           := -G -z text
-  CFLAGS               += $(CFLAGS_SL)
+  CFLAGS                       += $(CFLAGS_SL)
 endif
 
 ifeq ($(PORTNAME), univel)
   install-shlib-dep    := install-shlib
-  shlib                        := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+  shlib                                := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
   LDFLAGS_SL           := -G -z text
-  CFLAGS               += $(CFLAGS_SL)
+  CFLAGS                       += $(CFLAGS_SL)
 endif
 
 ifeq ($(PORTNAME), hpux)
   install-shlib-dep    := install-shlib
-  shlib                        := libpq.sl
+  shlib                                := lib$(NAME).sl
   LDFLAGS_SL           := -b
-  CFLAGS               += $(CFLAGS_SL)
+  CFLAGS                       += $(CFLAGS_SL)
 endif
 
 all: libpq.a $(shlib)
@@ -154,7 +155,6 @@ $(SRCDIR)/backend/fmgr.h:
 
 $(shlib): $(OBJS)
        $(LD) $(LDFLAGS_SL) -o $@ $(OBJS) 
-       $(LN_S) -f $@ libpq.so
 
 
 .PHONY: beforeinstall-headers install-headers
@@ -228,15 +228,18 @@ install-libpq: libpq.a
 
 install-shlib: $(shlib)
        $(INSTALL) $(INSTL_SHLIB_OPTS) $(shlib) $(LIBDIR)/$(shlib)
-       rm -f $(LIBDIR)/libpq.so
-       $(LN_S) $(shlib) $(LIBDIR)/libpq.so
+       rm -f $(LIBDIR)/lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
+       rm -f $(LIBDIR)/lib$(NAME)$(DLSUFFIX)
+       cd $(LIBDIR) && $(LN_S) -f $(shlib) lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
+       cd $(LIBDIR) && $(LN_S) -f $(shlib) lib$(NAME)$(DLSUFFIX)
+
 
 depend dep:
        $(CC) -MM $(CFLAGS) *.c >depend
 
 .PHONY: clean
 clean:
-       rm -f libpq.a $(shlib) libpq.so $(OBJS)
+       rm -f libpq.a $(shlib) $(OBJS)
        rm -f dllist.c common.c wchar.c conv.c
 
 ifeq (depend,$(wildcard depend))