77#
88#
99# IDENTIFICATION
10- # $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.21 1996/11/26 07:38:46 bryanh Exp $
10+ # $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.22 1996/12/10 07:05:09 bryanh Exp $
1111#
1212# -------------------------------------------------------------------------
1313
@@ -40,7 +40,7 @@ shlib := libpq.so.1
4040endif
4141endif
4242
43- all : libpq.a$(shlib ) postgres.h c.h
43+ all : libpq.a$(shlib ) c.h
4444
4545libpq.a :$(OBJS )
4646ifdef MK_NO_LORDER
@@ -64,16 +64,6 @@ fe-lobj.o: ../backend/fmgr.h
6464libpq.so.1 :$(OBJS )
6565$(CC ) $(LDFLAGS ) -shared$(OBJS ) -o libpq.so.1
6666
67- postgres.h : ../include/postgres.h
68- # Note: ../backend/include/postgres.h needs to be named something different
69- # to avoid confusion with this thing we're building now.
70- #
71- # hardwire NAMEDATALEN and OIDNAMELEN into the postgres.h for this installation
72- rm -f postgres.h
73- echo "# define NAMEDATALEN $(NAMEDATALEN)" >> postgres.h
74- echo "# define OIDNAMELEN $(OIDNAMELEN)" >> postgres.h
75- cat ../include/postgres.h >> postgres.h
76-
7767c.h : ../include/c.h
7868rm -f c.h
7969echo " #undef PORTNAME" > c.h
@@ -85,12 +75,20 @@ c.h: ../include/c.h
8575
8676install : install-headers install-libpq$(install-shlib-dep )
8777
88- install-headers : beforeinstall-headers postgres.h c.h\
78+ # Many of the headers we install below have nothing to do with libpq,
79+ # so should be installed by someone else.
80+ #
81+ install-headers : beforeinstall-headers c.h\
82+ ../include/postgres.h ../include/postgres_ext.h \
8983 ../include/config.h ../include/libpq/pqcomm.h \
9084 ../include/libpq/libpq-fs.h ../include/lib/dllist.h \
9185 ../include/utils/geo-decls.h libpq-fe.h
9286$(INSTALL) $(INSTLOPTS) ../include/config.h \
9387 $(HEADERDIR)/config.h
88+ $(INSTALL) $(INSTLOPTS) ../include/postgres.h \
89+ $(HEADERDIR)/postgres.h
90+ $(INSTALL) $(INSTLOPTS) ../include/postgres_ext.h \
91+ $(HEADERDIR)/postgres_ext.h
9492$(INSTALL) $(INSTLOPTS) ../include/libpq/pqcomm.h \
9593 $(HEADERDIR)/libpq/pqcomm.h
9694$(INSTALL) $(INSTLOPTS) ../include/libpq/libpq-fs.h \
@@ -111,7 +109,6 @@ ifeq ($(PORTNAME), hpux)
111109 $(HEADERDIR)/port/hpux/fixade.h
112110endif
113111$(INSTALL) $(INSTLOPTS) c.h $(HEADERDIR)/c.h
114- $(INSTALL) $(INSTLOPTS) postgres.h $(HEADERDIR)/postgres.h
115112
116113beforeinstall-headers :
117114@if [! -d $( HEADERDIR) ]; then mkdir$(HEADERDIR ) ; fi
@@ -146,7 +143,7 @@ depend dep:
146143
147144.PHONY : clean
148145clean :
149- rm -f libpq.a libpq.so.1$(OBJS ) c.h postgres.h
146+ rm -f libpq.a libpq.so.1$(OBJS ) c.h
150147
151148ifeq (depend,$(wildcard depend) )
152149include depend