#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.22 1996/12/10 07:05:09 bryanh Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.23 1997/01/05 23:52:21 scrappy Exp $
#
#-------------------------------------------------------------------------
ifeq ($(PORTNAME), linux)
shlib := libpq.so.1
endif
+ifeq ($(PORTNAME), BSD44_derived)
+shlib := libpq.so.1.0
+CFLAGS+= -fpic -DPIC
+LDFLAGS=-Bshareable -Bforcearchive
+endif
endif
all: libpq.a $(shlib) c.h
$(MAKE) -C ../backend/lib dllist.o
libpq.so.1: $(OBJS)
- $(CC) $(LDFLAGS) -shared $(OBJS) -o libpq.so.1
+ $(LD) $(LDFLAGS) -shared $(OBJS) -o $(shlib)
c.h: ../include/c.h
rm -f c.h
$(INSTALL) $(INSTL_LIB_OPTS) libpq.a $(DESTDIR)$(LIBDIR)/libpq.a
install-shlib: libpq.so.1
- $(INSTALL) $(INSTL_LIB_OPTS) libpq.so.1 $(DESTDIR)$(LIBDIR)/libpq.so.1
+ $(INSTALL) $(INSTL_LIB_OPTS) $(shlib) $(DESTDIR)$(LIBDIR)/$(shlib)
depend dep:
$(CC) -MM $(INCLUDE_OPT) *.c >depend