head	1.19;
access;
symbols
	release_4_2:1.19
	aix_ok:1.16;
locks; strict;
comment	@# @;


1.19
date	94.06.16.03.23.06;	author aoki;	state Exp;
branches;
next	1.18;

1.18
date	94.02.09.00.12.24;	author aoki;	state Exp;
branches;
next	1.17;

1.17
date	94.01.30.04.17.52;	author aoki;	state Exp;
branches;
next	1.16;

1.16
date	93.09.17.23.03.59;	author avi;	state Exp;
branches;
next	1.15;

1.15
date	93.08.14.11.37.37;	author aoki;	state Exp;
branches;
next	1.14;

1.14
date	93.07.28.23.41.43;	author aoki;	state Exp;
branches;
next	1.13;

1.13
date	93.07.14.02.25.04;	author aoki;	state Exp;
branches;
next	1.12;

1.12
date	93.07.14.02.19.15;	author aoki;	state Exp;
branches;
next	1.11;

1.11
date	93.06.25.22.14.49;	author aoki;	state Exp;
branches;
next	1.10;

1.10
date	93.06.24.03.48.11;	author aoki;	state Exp;
branches;
next	1.9;

1.9
date	93.04.21.20.55.02;	author marc;	state Exp;
branches;
next	1.8;

1.8
date	93.03.10.22.05.08;	author marc;	state Exp;
branches;
next	1.7;

1.7
date	93.02.22.02.03.36;	author marc;	state Exp;
branches;
next	1.6;

1.6
date	93.02.12.21.41.26;	author marc;	state Exp;
branches;
next	1.5;

1.5
date	93.01.16.03.14.59;	author aoki;	state Exp;
branches;
next	1.4;

1.4
date	93.01.09.02.49.20;	author aoki;	state Exp;
branches;
next	1.3;

1.3
date	93.01.05.02.31.00;	author aoki;	state Exp;
branches;
next	1.2;

1.2
date	92.12.29.01.51.51;	author aoki;	state Exp;
branches;
next	1.1;

1.1
date	92.12.05.02.18.50;	author marc;	state Exp;
branches;
next	;


desc
@@


1.19
log
@never generate profiled lib
@
text
@#
# $Header: /import/faerie/faerie/aoki/postgres/src/libpq/RCS/Makefile,v 1.18 1994/02/09 00:12:24 aoki Exp aoki $
#

.include <postgres.global.mk>

LIB= pq

.PATH:	${.CURDIR}/../backend/libpq \
	${.CURDIR}/../backend/utils/error \
	${.CURDIR}/../backend/utils/hash \
	${.CURDIR}/../backend/lib

CFLAGS+= -DFRONTEND \
	-I${.CURDIR}/../backend/${MAKEOBJDIR} \
	-I${.CURDIR}/../backend

.ifdef KRBVERS
CFLAGS+= ${KRBFLAGS}
.endif

SRCS=	fe-dumpdata.c fe-pqexec.c fe-pqstubs.c fe-pqufs.c \
	auth.c portal.c portalbuf.c pqcomm.c pqpacket.c pqsignal.c \
	dynahash.c format.c hashfn.c simplelists.c

NOPROFILE=1

.if defined(OLD_MKDIR)
beforeinstall:
	@@-if test ! -d ${DESTDIR}${LIBDIR}; \
		then mkdir ${DESTDIR}${LIBDIR}; fi
.endif

#
# We install the necessary header files from the backend directory
# into ${HEADERDIR}.  If this is installed into /usr/include/postgres
# (not the default), then frontend programs could just reference
# the header files as
#
#	#include <postgres/...>
#
# otherwise, the compile line will have to include a directive
# such as in the following example:
#
#	cc -I/usr/local/postgres/include foo.c
#
# -----
#
# We take advantage of the fact that frontend applications
# all will include "tmp/c.h" by prepending macro definitions
# to define PORTNAME and PORTNAME_name to tmp/c.h.  Otherwise
# the applications would have to define these by hand to get
# the right behavior.
#
# By the way, this is of course a total crock.  The headers
# should be laid out such that the visible public headers
# are all in a separate directory, and just that directory
# would need to be copied out or symlinked to.
#

HEADERFILES= port/${PORTNAME}/machine.h catalog/pg_user.h catalog/pg_lobj.h \
	storage/execipc.h storage/ipc.h storage/ipci.h \
	tmp/fastpath.h tmp/libpq-be.h tmp/libpq-fe.h \
	tmp/libpq-fs.h tmp/libpq.h tmp/postgres.h tmp/pqcomm.h \
	tmp/simplelists.h utils/dynamic_loader.h utils/exc.h \
	utils/exception.h utils/log.h utils/geo-decls.h \
	libpq/auth.h libpq/pqsignal.h

.if (${PORTNAME} == "hpux")
HEADERFILES+= port/${PORTNAME}/fixade.h
.endif

install-headers::
.if defined(OLD_MKDIR)
	@@-if [ ! -d ${HEADERDIR} ]; then mkdir ${HEADERDIR}; fi
	@@-if [ ! -d ${HEADERDIR}/port ]; then mkdir ${HEADERDIR}/port; fi
	@@-if [ ! -d ${HEADERDIR}/port/${PORTNAME} ]; \
		then mkdir ${HEADERDIR}/port/${PORTNAME}; fi
	@@-if [ ! -d ${HEADERDIR}/catalog ]; \
		then mkdir ${HEADERDIR}/catalog; fi
	@@-if [ ! -d ${HEADERDIR}/storage ]; \
		then mkdir ${HEADERDIR}/storage; fi
	@@-if [ ! -d ${HEADERDIR}/tmp ]; \
		then mkdir ${HEADERDIR}/tmp; fi
	@@-if [ ! -d ${HEADERDIR}/utils ]; \
		then mkdir ${HEADERDIR}/utils; fi
	@@-if [ ! -d ${HEADERDIR}/libpq ]; \
		then mkdir ${HEADERDIR}/libpq; fi
.endif
	-for i in ${HEADERFILES}; do \
		${INSTALL} -c -m 444 \
			${.CURDIR}/../backend/$$i ${HEADERDIR}/$$i; \
	done
	-ln -f ${HEADERDIR}/tmp/libpq.h ${HEADERDIR}
#	XXX - installing fmgr.h depends on the backend being built
	${INSTALL} -c -m 444 \
		${.CURDIR}/../backend/${MAKEOBJDIR}/fmgr.h ${HEADERDIR}/fmgr.h
	${INSTALL} -c -m 444 \
		${.CURDIR}/../backend/${MAKEOBJDIR}/tags.h ${HEADERDIR}/tags.h
	-rm -f ${HEADERDIR}/tmp/c.h
	-echo "#define PORTNAME ${PORTNAME}" > ${HEADERDIR}/tmp/c.h
	-echo "#define PORTNAME_${PORTNAME}" >> ${HEADERDIR}/tmp/c.h
	-cat ${.CURDIR}/../backend/tmp/c.h >> ${HEADERDIR}/tmp/c.h
	-chmod 444 ${HEADERDIR}/tmp/c.h

.include <postgres.lib.mk>

install: install-headers
@


1.18
log
@add pqsignal
@
text
@d2 1
a2 1
# $Header: Makefile,v 1.17 94/01/30 04:17:52 aoki Exp $
a25 1
.if (${PORTNAME} == "sparc")
a26 1
.endif
@


1.17
log
@hpux needs another port/ file
@
text
@d2 1
a2 1
# $Header: /faerie/aoki/postgres/src/libpq/RCS/Makefile,v 1.16 1993/09/17 23:03:59 avi Exp aoki $
d23 1
a23 1
	auth.c portal.c portalbuf.c pqcomm.c pqpacket.c \
d68 2
a69 1
	utils/exception.h utils/log.h utils/geo-decls.h libpq/auth.h
@


1.16
log
@added -f flag to ln
@
text
@d2 1
a2 1
# $Header: /private/src/postgres/src/libpq/RCS/Makefile,v 1.15 1993/08/14 11:37:37 aoki Exp avi $
d69 4
@


1.15
log
@added hash stuff from backend
@
text
@d2 1
a2 1
# $Header: /home2/aoki/postgres/src/libpq/RCS/Makefile,v 1.14 1993/07/28 23:41:43 aoki Exp aoki $
d91 1
a91 1
	-ln ${HEADERDIR}/tmp/libpq.h ${HEADERDIR}
@


1.14
log
@MAKEOBJDIR changes
@
text
@d2 1
a2 1
# $Header: /home2/aoki/postgres/src/libpq/RCS/Makefile,v 1.13 1993/07/14 02:25:04 aoki Exp aoki $
d11 1
d24 1
a24 1
	format.c simplelists.c
@


1.13
log
@whoops, forgot to @@ out the test's
@
text
@d2 1
a2 1
# $Header: /home2/aoki/master/src/libpq/RCS/Makefile,v 1.12 1993/07/14 02:19:15 aoki Exp aoki $
d14 1
a14 1
	-I${.CURDIR}/../backend/obj \
d93 1
a93 1
		${.CURDIR}/../backend/obj/fmgr.h ${HEADERDIR}/fmgr.h
d95 1
a95 1
		${.CURDIR}/../backend/obj/tags.h ${HEADERDIR}/tags.h
@


1.12
log
@added mkdir for LIBDIR
@
text
@d2 1
a2 1
# $Header: /home2/aoki/master/src/libpq/RCS/Makefile,v 1.11 1993/06/25 22:14:49 aoki Exp aoki $
d31 1
a31 1
	-if test ! -d ${DESTDIR}${LIBDIR}; \
@


1.11
log
@cosmetic change.  a line ended in \ that shouldn't have.
(the next line is blank, so it doesn't matter, but i hate
the way it looks :-)
@
text
@d2 1
a2 1
# $Header: /home2/aoki/master/src/libpq/RCS/Makefile,v 1.10 1993/06/24 03:48:11 aoki Exp aoki $
d28 6
@


1.10
log
@includes utils/error/format.c into libpq
parameterized "install"
parameterized mkdir -p
@
text
@d2 1
a2 1
# $Header$
d23 1
a23 1
	format.c simplelists.c \
@


1.9
log
@add tags.h to installed header files
@
text
@d1 4
d10 1
d22 2
a23 1
	auth.c portal.c portalbuf.c pqcomm.c pqpacket.c simplelists.c
d64 1
a64 1
.if ${PORTNAME} == "sparc"
d81 2
a82 1
		install -c -m 444 ${.CURDIR}/../backend/$$i ${HEADERDIR}/$$i; \
d86 4
a89 2
	install -c -m 444 ${.CURDIR}/../backend/obj/fmgr.h ${HEADERDIR}/fmgr.h
	install -c -m 444 ${.CURDIR}/../backend/obj/tags.h ${HEADERDIR}/tags.h
@


1.8
log
@copyout libpq/auth.h utils/geo-decls.h
@
text
@d80 1
@


1.7
log
@copy out necessary header files to build frontend porgrams
@
text
@d50 1
a50 1
HEADERFILES= port/${PORTNAME}/machine.h catalog/pg_user.h \
d55 1
a55 1
	utils/exception.h utils/log.h
d71 2
d78 2
@


1.6
log
@sparc doesn't do .po right (yet)
@
text
@d23 59
d83 2
@


1.5
log
@removed references to utils/fmgr.h and parser/parse.h
@
text
@d19 4
@


1.4
log
@added simplelists to (fe) libpq.a since the fe code requires it
@
text
@d8 3
a10 1
CFLAGS+= -I${.CURDIR}/../backend -DFRONTEND
@


1.3
log
@added -DFRONTEND for conditionally-compiled stuff
@
text
@a0 3
#
# $Header$
#
d4 4
a7 1
.PATH: ${.CURDIR}/../backend/libpq
d9 5
d15 1
a15 1
	auth.c portal.c portalbuf.c pqcomm.c pqpacket.c
@


1.2
log
@added auth.c
@
text
@d1 3
d8 1
a8 1
CFLAGS+= -I${.CURDIR}/../backend
@


1.1
log
@Initial revision
@
text
@d7 1
a7 1
	portal.c portalbuf.c pqcomm.c pqpacket.c
@
