# (c) Index Data 1995
# See the file LICENSE for details.
# Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile.in,v 1.4 1995-06-22 13:46:52 adam Exp $
+# $Id: Makefile.in,v 1.5 1995-06-23 10:58:10 adam Exp $
SHELL=/bin/sh
# IrTcl Version
all: ir-tk ir-tcl
-ir-tk: $(O) tkmain.o
- $(CC) $(CFLAGS) $(O) tkmain.o -o ir-tk $(YAZLIB) $(TKLIB) \
+ir-tk: libirtcl.a tkmain.o
+ $(CC) $(CFLAGS) tkmain.o -o ir-tk libirtcl.a $(YAZLIB) $(TKLIB) \
$(TCLLIB) $(XLIB) $(LIBS)
-ir-tcl: $(O) tclmain.o
- $(CC) $(CFLAGS) $(O) tclmain.o -o ir-tcl $(YAZLIB) $(TCLLIB) $(LIBS)
+ir-tcl: libirtcl.a tclmain.o
+ $(CC) $(CFLAGS) tclmain.o -o ir-tcl libirtcl.a $(YAZLIB) $(TCLLIB) $(LIBS)
+
+libirtcl.a: $(O)
+ rm -f libirtcl.a
+ ar qc libirtcl.a $(O)
+ $(RANLIB) libirtcl.a
install-tcl: ir-tcl
for d in $(IRTCLDIR) $(IRTCLDIR)/formats $(IRTCLDIR)/bitmaps; do \
dnl IR toolkit for tcl/tk
dnl (c) Index Data 1995
dnl See the file LICENSE for details.
-dnl $Id: configure.in,v 1.4 1995-06-22 13:46:53 adam Exp $
+dnl $Id: configure.in,v 1.5 1995-06-23 10:58:11 adam Exp $
AC_INIT(README)
AC_PROG_CC
AC_PROG_RANLIB
fi
AC_SUBST(XLIBSW)
AC_SUBST(TKLIB)
-AC_CHECK_LIB(tk, Tk_MainLoop, tkFound=1, tkFound=0, $TCLLIB $XLIBSW -lm)
+AC_CHECK_LIB(tk, main, tkFound=1, tkFound=0, $TCLLIB $XLIBSW -lm)
if test "$tkFound" = 1; then
TKLIB=-ltk
else