# $Header: /nfs/mongoose/faculty2/crowley/x/pt/RCS/Imakefile,v 1.9 1992/05/08 15:22:23 crowley Exp crowley $
#
# Point - a text editor for X Windows
#
# Author: Charles Crowley
#         Computer Science Dept.
#         University of New Mexico
#         Albuquerque, NM 87131
#         (office) 505-277-5446
#         (messages) 505-277-3112
#         (net) crowley@unmvax.cs.unm.edu
#
# **************** CHANGES REQUIRED ***************
# This must be set to where you have the Tcl include file
TCL_INCDIR	= LocationOfTclInclude
# This must be set to where you have the Tk include file
TK_INCDIR	= LocationOfTkInclude
# This must be set to where you have the Tcl libary
TCL_LIBDIR	= LocationOfTclLibraries
# This must be set to where you have the Tk libary
TK_LIBDIR	= LocationOfTkLibraries

# POINT_LIBRARY must be set to the library of Point tcl files
POINT_LIBRARY   = FullPathNameOfPointDistribution/tclLib
# **************** END OF REQUIRED CHANGES **********

TK_INCLUDES	= -I${TK_INCDIR} -I${TCL_INCDIR}

EXTRA_INCLUDES	= ${TK_INCLUDES}
CDEBUGFLAGS	= -O
CCOPTIONS	= ${TK_INCLUDES} -DPOINT_LIBRARY=\"${POINT_LIBRARY}\"

SYS_LIBRARIES = ${TK_LIBDIR}/libtk.a ${TCL_LIBDIR}/libtcl.a $(XLIB) -lm

OTHERFILES	= README ToDo KnownBugs Imakefile Make.dist ptsetup.tcl \
			doc/point.man doc/userman.tex doc/cmds.tex \
			doc/userman.ps help/fkeys.help help/index.help \
			help/options.help help/general.help help/mmenus.help \
			help/scroll.help

TCL_FILES     = tclLib/anaBoxes.tcl tclLib/browserMenu.tcl tclLib/cmd.tcl \
			tclLib/down.bm tclLib/macros.tcl tclLib/makeBoxes.tcl \
			tclLib/makeMenus.tcl tclLib/options.tcl \
			tclLib/ptsetup.tcl tclLib/saveOptions.tcl \
			tclLib/scroll.tcl tclLib/sourcing.tcl \
			tclLib/startup.tcl tclLib/subs.tcl tclLib/tclIndex \
			tclLib/textMenu.tcl tclLib/up.bm tclLib/windows.tcl

INCLUDEFILES	= ana.h command.h file.h funcdecl.h pt.h

SOURCES		= anaDialogs.c anaObjects.c anaSources.c \
			browser.c buffers.c cmdTable.c command.c \
			copymove.c cursor.c display.c fileio.c \
			findfiles.c findpos.c goto.c \
			inschar.c insdel.c \
			library.c lines.c mouse.c options.c piece.c \
			point.c pt.c regex.c repaint.c replace.c search.c \
			select.c spans.c stats.c tags.c tcl.c \
			undoredo.c version.c windows.c \
			shellWindow.c

OBJS		= anaDialogs.o anaObjects.o anaSources.o browser.o \
			buffers.o cmdTable.o command.o copymove.o \
			cursor.o display.o fileio.o \
			findfiles.o findpos.o goto.o \
			inschar.o insdel.o \
			library.o lines.o mouse.o options.o piece.o \
			point.o pt.o regex.o repaint.o replace.o search.o \
			select.o spans.o stats.o tags.o tcl.o undoredo.o \
			version.o windows.o shellWindow.o

#define IHaveSubdirs
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' POINT_DIR=$(POINT_DIR)
SUBDIRS = tclLib

ComplexProgramTarget(point)

all::

MakeDirectories(install, $(POINT_LIBRARY))
InstallMultipleFlags($(TCL_FILES), $(POINT_LIBRARY), $(INSTDATAFLAGS))

depend::

clean::

