#
# /usr/local/devel/postgres-v4r2/src/contrib/xposthelp/RCS/Makefile,v 1.1 1993/07/24 03:03:50 aoki Exp
#

.include <postgres.global.mk>

SRCS=	posthelp.c PostgresRoutines.c 

#
#  	Your favorite compiler
#
CC=	cc

#
#  	Compiler flags
#
CFLAGS=	-g

#	Postgres library
CFLAGS+= -I${.CURDIR}/../../backend
LDADD+=	-L${LIBDIR} -lpq

PROG=posthelp

afterinstall:
	${INSTALL} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
		xposthelp ${DESTDIR}${BINDIR}/xposthelp

.include <postgres.prog.mk>

#
#	XView library calls and header files
#
OPENWINHOME=/usr/sww/X11
CFLAGS+= -I$(OPENWINHOME)/include 
LDADD+=	-L$(OPENWINHOME)/lib -lxview -lolgx -lX11

xposthelp: xposthelp.o PostgresRoutines.o
	$(CC) ${LDFLAGS} -o ${.TARGET} xposthelp.o PostgresRoutines.o ${LDADD}

all: xposthelp

CLEANFILES+= xposthelp xposthelp.o
