head	1.4;
access;
symbols;
locks; strict;
comment	@# @;


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

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

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

1.1
date	93.06.10.05.25.33;	author aoki;	state Exp;
branches;
next	;


desc
@bmake file
@


1.4
log
@empty install: option
@
text
@#
# $Header: /home2/aoki/master/src/contrib/cplusplus/RCS/Makefile,v 1.4 1993/07/21 12:33:54 aoki Exp $
#
# Makefile for Justin Smith's C++/POSTGRES interface package.
#

.include <postgres.global.mk>

NOMAN=
LDFLAGS= -g
CFLAGS= -g
CFLAGS+= -I${HEADERDIR}
LDADD+= -L${LIBDIR}

#
# seems to work with both C++ compilers...
#
#CC= CC
CC= g++

#
# additional stuff required for C++
#

# location of C++ library, if required
#LDADD+= -L/usr/sww/lib

# location of C++ include files, if required
#CFLAGS+= -I/usr/sww/lib/g++-include

# jsmith added these flags for CC (cfront).
.if ${CC} == "CC"
CFLAGS+= -DNO_ALLOCA -DNO_DMINUS -DMATH_H_EXTERNS
.endif

# CenterLine CC wouldn't work without this.  don't know why.
.if ${CC} == "CC"
CFLAGS+= -D__STDLIB_H
.endif

SRCS= pgtest.c

HEADERS= pg.h

LDADD+= -lpq

.MAIN: ${PROG}

PROG= pgtest
TESTOBJ = pgtest.out

runtest: ${TESTOBJ}

${TESTOBJ}:
	./${PROG} 2>&1 | tee ${TESTOBJ}

CLEANFILES+= ${TESTOBJ}

install::

.include <postgres.prog.mk>
@


1.3
log
@added .out file to CLEANFILES
hacked to know about global Makefile.global hierarchy
@
text
@d2 1
a2 1
# $Header: /home2/aoki/postgres/src/contrib/cplusplus/RCS/Makefile,v 1.2 1993/06/10 19:31:20 aoki Exp aoki $
d59 2
@


1.2
log
@cleanups
@
text
@a0 1
# $Header: /home2/aoki/postgres/src/contrib/cplusplus/RCS/Makefile,v 1.1 1993/06/10 05:25:33 aoki Exp aoki $
d2 2
a9 1

a10 1

a11 11

#
# set POSTGRESDIR to the top directory of postgres (one above src/).
#	spog will be installed in BINDIR.
#	HEADERDIR and LIBDIR should point to the install libpq.
#
#POSTGRESDIR=${.CURDIR}/../../..
POSTGRESDIR= /private/devel/postgres
BINDIR= ${POSTGRESDIR}/bin
HEADERDIR= ${POSTGRESDIR}/include
LIBDIR= ${POSTGRESDIR}/lib
d50 6
d57 1
a57 2
runtest: pgtest
	./pgtest
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $Header$
d20 1
a20 2
#POSTGRESDIR= /private/devel/postgres
POSTGRESDIR= /private/aoki/postgres
@
