Tk-TableMatrix

 view release on metacpan or  search on metacpan

pTk/mTk/Tktable800/Makefile.in  view on Meta::CPAN

# version info in Makefile and C format
include @srcdir@/version.h

# This sets the name that tkTable will define for itself when loaded
# If you change this, then the demos won't work, but it might be necessary
# for those with another built-in "table" command
TBL_COMMAND	= table
TBL_RUNTIME	= tkTable.tcl

SRCDIR		= @srcdir@
TOPDIR		= @srcdir@/..
LIBDIR		= $(TOPDIR)/lib
DOCDIR		= $(TOPDIR)/doc

PACKAGE		= Tktable
OBJS		= tkTable.o tkTableWin.o tkTableTag.o tkTableEdit.o \
		  tkTableCell.o tkTableCmds.o cmd.o
## PostScript is on the drawing board
#OBJS		+= tkTablePs.o
MANS		= tkTable.n

#-------------------------------------------------
prefix		= @prefix@
exec_prefix	= @exec_prefix@

TCL_VERSION	= @TCL_VERSION@
TK_VERSION	= @TK_VERSION@
WISH		= wish$(TK_VERSION)

TCL_SRC_DIR 	= @TCL_SRC_DIR@
TK_SRC_DIR 	= @TK_SRC_DIR@

TCL_BUILD_LIB_SPEC	= @TCL_BUILD_LIB_SPEC@
TK_BUILD_LIB_SPEC	= @TK_BUILD_LIB_SPEC@

TCL_LIB_SPEC	= @TCL_LIB_SPEC@
TK_LIB_SPEC	= @TK_LIB_SPEC@

TCL_LIBS	= @TCL_LIBS@
TK_LIBS		= @TK_LIBS@

TBL_CFLAGS	= -O

## NO_EMBEDDED_RUNTIME means that the tkTable.tcl file will not be embedded
## into the executable, thus the default tkTable.tcl library file will not
## be available when the library is loaded.
## If this is defined, the tkTable.tcl file must be available in a
## predefined set of directories (see docs).
#TBL_CFLAGS	+= -DNO_EMBEDDED_RUNTIME

## USE_EXIT_HANDLER is necessary for 8.1 before b3 and 8.0
## It is a work-around for the improper unloading of DLLs when exiting
#TBL_CFLAGS	+= -DUSE_EXIT_HANDLER

## Experimental, not documented, not complete...
#TBL_CFLAGS	+= -DPROCS

## I use this for helping hunt down the slightest error
#TBL_CFLAGS	+= -DDEBUG -g -Wall -Wno-implicit -Wshadow \
		   -Wpointer-arith -Wmissing-prototypes \
		   -Wmissing-declarations -Wnested-externs -Winline

INSTALL		= @INSTALL@
INSTALL_PROGRAM	= @INSTALL_PROGRAM@
INSTALL_DATA	= @INSTALL_DATA@
CC		= @CC@
RM		= rm -f
RANLIB		= @TCL_RANLIB@
SHLIB_CFLAGS	= @TCL_SHLIB_CFLAGS@
SHLIB_SUFFIX	= @TCL_SHLIB_SUFFIX@
SHLIB_LD	= @TCL_SHLIB_LD@
TCL_PREFIX	= @TCL_PREFIX@
## HP cc sometimes requires -Aa for proper ansi compilation
TCL_CFLAGS	= $(TBL_CFLAGS) @TCL_DEFS@ @TCL_CFLAGS@
TCL_LD_FLAGS	= @TCL_LD_FLAGS@
TK_LD_SEARCH_FLAGS = @TK_LD_SEARCH_FLAGS@
TK_XINCLUDES	= @TK_XINCLUDES@

LIB_RUNTIME_DIR = @libdir@

INCLUDES	= -I@includedir@ $(TK_XINCLUDES)\
		  -I$(TCL_SRC_DIR)/generic\
		  -I$(TK_SRC_DIR)/generic

DLL		= $(PACKAGE)$(SHLIB_SUFFIX)
STATIC_LIB	= $(PACKAGE).a
PACKAGEDIR	= $(PACKAGE)$(TBL_VERSION)
STATIC_EXEC	= tablewish
DLLDIR		= ${exec_prefix}/lib/$(PACKAGEDIR)
RUNDIR		= ${prefix}/lib/$(PACKAGEDIR)

CFLAGS		= -I. -I$(SRCDIR) $(TCL_CFLAGS) $(SHLIB_CFLAGS) $(INCLUDES)\
		  -DTBL_VERSION=\"$(TBL_VERSION)\"\
		  -DTBL_COMMAND=\"$(TBL_COMMAND)\"\
		  -DTBL_RUNTIME=\"$(TBL_RUNTIME)\"\
		  -DTBL_RUNTIME_DIR=\"$(RUNDIR)\"

MAN_INSTALL_DIR = @mandir@/mann

#COMPRESS	= tar cvf $(PACKAGEDIR).tar $(PACKAGEDIR); compress $(PACKAGEDIR).tar
COMPRESS	= gtar zcvf $(PACKAGEDIR).tar.gz $(PACKAGEDIR)

all: $(DLL) pkgIndex.tcl

$(DLL): $(OBJS)
	$(SHLIB_LD) -o $@ $(OBJS)

static $(STATIC_LIB): $(OBJS) pkgIndex.tcl
	$(RM) $(STATIC_LIB)



( run in 0.829 second using v1.01-cache-2.11-cpan-71847e10f99 )