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


1.3
date	95.05.01.13.53.15;	author andrew;	state Exp;
branches;
next	1.2;

1.2
date	95.02.14.23.59.26;	author jolly;	state Exp;
branches;
next	1.1;

1.1
date	95.02.05.05.02.12;	author jolly;	state Exp;
branches;
next	;


desc
@@


1.3
log
@is now a GNU makefile
@
text
@#-------------------------------------------------------------------------
#
# Makefile
#    Makefile for a tclsh workalike with pgtcl commands installed
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
#    $Header: /usr/local/devel/pglite/cvs/src/bin/pgtclsh/Makefile,v 1.2 1995/02/14 23:59:26 jolly Exp $
#
#-------------------------------------------------------------------------

PROG= pgtksh
#PROG = pgtclsh

MKDIR=	../../mk
include $(MKDIR)/postgres.mk

# location of tcl and tk libraries.
TCL_INCDIR= /usr/local/devel/tcl/include
TCL_LIBDIR= /usr/local/devel/tcl/lib
TK_INCDIR=  /usr/local/devel/tk/include
TK_LIBDIR=  /usr/local/devel/tk/lib

CFLAGS+= -I$(srcdir)/backend/include \
	 -I$(srcdir)/backend \
	 -I$(srcdir)/libpgtcl \
	 -I$(TCL_INCDIR) -I$(TK_INCDIR)

SRCS= pgtkAppInit.c 
#SRCS = pgtclAppInit.c

# try to find libpgtcl.a in either directory
LIBPGTCL= -L$(srcdir)/libpgtcl/$(objdir) -L$(LIBDIR) -lpgtcl

LD_ADD = $(LIBPGTCL) -L$(TCL_LIBDIR) -L$(TK_LIBDIR) -ltk -ltcl -lX11 -lm

ifdef KRBVERS
LDADD+= $(KRBLIBS)
CFLAGS+= $(KRBFLAGS)
endif

include $(MKDIR)/postgres.prog.mk


@


1.2
log
@The Makefile points to /usr/local/devel for tcl/tk stuff by default now.
@
text
@d10 1
a10 1
#    $Header: /usr/local/devel/pglite/cvs/src/bin/pgtclsh/Makefile,v 1.1 1995/02/05 05:02:12 jolly Exp $
d14 5
d20 10
a29 1
.include <postgres.global.mk>
d31 2
a32 9
TCL_INCDIR := /usr/local/devel/tcl/include
TCL_LIBDIR := /usr/local/devel/tcl/lib
TK_INCDIR := /usr/local/devel/tk/include
TK_LIBDIR := /usr/local/devel/tk/lib

CFLAGS+= -I${.CURDIR}/../backend/include \
	 -I${.CURDIR}/../backend \
	 -I${.CURDIR}/../../libpgtcl\
	 -I${TCL_INCDIR} -I${TK_INCDIR}
d34 2
a35 1
LDFLAGS += -L${TCL_LIBDIR} -L${TK_LIBDIR}
d37 1
a37 2
PROG= pgtksh
#PROG = pgtclsh
d39 4
a42 2
SRCS= pgtkAppInit.c 
#SRCS = pgtclAppInit.c
d44 1
a44 12
.if exists(${.CURDIR}/../../libpgtcl/${MAKEOBJDIR}/libpgtcl.a)
LIBPGTCL= ${.CURDIR}/../../libpgtcl/${MAKEOBJDIR}/libpgtcl.a
.elif exists(${LIBDIR}/libpgtcl.a)
LIBPGTCL= ${LIBDIR}/libpgtcl.a
.endif

LDADD = $(LIBPGTCL) -ltk -ltcl -lX11 -lm

.ifdef KRBVERS
LDADD+= ${KRBLIBS}
CFLAGS+= ${KRBFLAGS}
.endif
a45 1
.include <postgres.prog.mk>
@


1.1
log
@Tcl/Tk 'wish' compiled with pgtcl features.
@
text
@d10 1
a10 1
#    $Header: /usr/local/devel/pglite/cvs/src/libpq/Makefile,v 1.4 1995/01/16 22:42:42 jolly Exp $
d17 4
a20 4
TCL_INCDIR := /private/osf/include
TCL_LIBDIR := /private/osf/lib
TK_INCDIR := /private/osf/include
TK_LIBDIR := /private/osf/lib
d27 1
a27 1
LDFLAGS += -L${TCL_LIBDIR}
d30 1
d33 1
@
