# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.65 91/07/25 17:50:17 rws Exp $

# -------------------------------------------------------------------------
# Makefile generated from "Imake.tmpl" and </tmp/IIf.a04253>
# $XFree86: mit/config/Imake.tmpl,v 2.10 1994/02/28 13:54:37 dawes Exp $
# $XConsortium: Imake.tmpl,v 1.139 91/09/16 08:52:48 rws Exp $
#
# Platform-specific parameters may be set in the appropriate <vendor>.cf
# configuration files.  Site-specific parameters should be set in the file
# site.def.  Full rebuilds are recommended if any parameters are changed.
#
# If your C preprocessor does not define any unique symbols, you will need
# to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
# "make World" the first time).
#

# -------------------------------------------------------------------------
# site-specific configuration parameters that need to come before
# the platform-specific parameters - edit site.def to change

# $XFree86: mit/config/site.def,v 2.41 1994/03/07 13:53:40 dawes Exp $
# site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $

# -------------------------------------------------------------------------
# platform-specific configuration parameters - edit x386.cf to change

# $XFree86: mit/config/x386.cf,v 2.41 1994/03/06 06:41:16 dawes Exp $
# platform:  $XConsortium: x386.cf,v 1.7 91/08/16 19:30:10 gildea Exp $

# -------------------------------------------------------------------------
# XFree86 version definition
# $XFree86: mit/config/xf86_vers.def,v 2.11 1994/03/05 01:56:48 dawes Exp $

# -------------------------------------------------------------------------
# XFree86 version: 2100
# -------------------------------------------------------------------------

# $XFree86: mit/config/lnuxLib.rules,v 2.8 1994/03/08 06:10:55 dawes Exp $

DLL_BINDIR = /usr/dll/bin

# operating system:  		Linux

# -------------------------------------------------------------------------
# site-specific configuration parameters that go after
# the platform-specific parameters - edit site.def to change

# $XFree86: mit/config/site.def,v 2.41 1994/03/07 13:53:40 dawes Exp $
# site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $

            SHELL = 	/bin/sh

              TOP = .
      CURRENT_DIR = .

               AR = ar clq
  BOOTSTRAPCFLAGS =
               CC = 		gcc
               AS = as
              LEX = 		flex
           LEXLIB =
             YACC = 		bison -y

         COMPRESS = compress
              CPP = 		/lib/cpp $(STD_CPP_DEFINES)
    PREPROCESSCMD = 	/lib/cpp $(STD_CPP_DEFINES)
          INSTALL = install
               LD = ld
             LINT = lint
      LINTLIBFLAG = -C
         LINTOPTS = -axz
               LN = ln -s
             MAKE = make
               MV = mv
               CP = cp

           RANLIB = ranlib
  RANLIBINSTFLAGS =

               RM = rm -f
            TROFF = psroff
         MSMACROS = -ms
              TBL = tbl
              EQN = eqn
            NROFF = nroff
             NEQN = neqn
     STD_INCLUDES =
  STD_CPP_DEFINES = -traditional 		-D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE 	-Dlinux
      STD_DEFINES = 		-D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE 	-Dlinux
 EXTRA_LOAD_FLAGS =
  EXTRA_LIBRARIES =
     OS_LIBRARIES =
             TAGS = ctags

    SHAREDCODEDEF =
         SHLIBDEF =

    PROTO_DEFINES = -DFUNCPROTO=11 -DNARROWPROTO

     INSTPGMFLAGS = -s

     INSTBINFLAGS = -m 0755
     INSTUIDFLAGS = -s -m 4755
     INSTLIBFLAGS = -m 0644
     INSTINCFLAGS = -m 0444
     INSTMANFLAGS = -m 0444
     INSTDATFLAGS = -m 0444
    INSTKMEMFLAGS = -s -m 4755

      PROJECTROOT = 	/usr/X386

     TOP_INCLUDES = -I$(INCROOT)

      CDEBUGFLAGS = -O2
        CCOPTIONS = -m486 -DNO_ASM -fwritable-strings
    ANSICCOPTIONS =

        LDRUNPATH =
       LDLINKPATH = LdLinkPath

      ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
           CFLAGS = $(ANSICCOPTIONS) $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)

           LDLIBS = $(OS_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

        LDOPTIONS = $(ANSICCOPTIONS) $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS) -L$(USRLIBDIR) $(LDRUNPATH)

   LDCOMBINEFLAGS = 	-r
      DEPENDFLAGS =

        MACROFILE = x386.cf
           RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut

    IMAKE_DEFINES =

         IRULESRC = $(CONFIGDIR)
        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)

     ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules 			$(IRULESRC)/Project.tmpl $(IRULESRC)/site.def 			$(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)

# -------------------------------------------------------------------------
# X Window System Build Parameters
# $XFree86: mit/config/Project.tmpl,v 2.5 1994/02/27 11:25:48 dawes Exp $
# $XConsortium: Project.tmpl,v 1.138.1.1 92/11/11 09:49:19 rws Exp $

_percentC_ = %C

# -------------------------------------------------------------------------
# X Window System make variables; this need to be coordinated with rules

          PATHSEP = /
        USRLIBDIR = 	/usr/X386/lib
           BINDIR = 	/usr/X386/bin
          INCROOT = 	/usr/X386/include
     BUILDINCROOT = $(TOP)
      BUILDINCDIR = $(BUILDINCROOT)/X11
      BUILDINCTOP = ..
           INCDIR = $(INCROOT)/X11
           ADMDIR = /usr/adm
           LIBDIR = $(USRLIBDIR)/X11
        CONFIGDIR = $(LIBDIR)/config
       LINTLIBDIR = $(USRLIBDIR)/lint

          FONTDIR = $(LIBDIR)/fonts
         XINITDIR = $(LIBDIR)/xinit
           XDMDIR = $(LIBDIR)/xdm
           TWMDIR = $(LIBDIR)/twm
          MANPATH = 	/usr/X386/man
    MANSOURCEPATH = $(MANPATH)/man
        MANSUFFIX = 1x
     LIBMANSUFFIX = 3x
    FILEMANSUFFIX = 5x
           MANDIR = $(MANSOURCEPATH)1
        LIBMANDIR = $(MANSOURCEPATH)3
       FILEMANDIR = $(MANSOURCEPATH)5
           NLSDIR = $(LIBDIR)/nls
        PEXAPIDIR = $(LIBDIR)/PEX
      XAPPLOADDIR = $(LIBDIR)/app-defaults
       FONTCFLAGS = -t
       LINKKITDIR = 	$(USRLIBDIR)/Server

     INSTAPPFLAGS = $(INSTDATFLAGS)

            IMAKE = imake

           DEPEND = gccmakedep

              RGB = rgb

            FONTC = bdftopcf

        MKFONTDIR = mkfontdir
        MKDIRHIER = 	/bin/sh $(BINDIR)/mkdirhier

        CONFIGSRC = $(TOP)/config
       DOCUTILSRC = $(TOP)/doc/util
        CLIENTSRC = $(TOP)/clients
          DEMOSRC = $(TOP)/demos
           LIBSRC = $(TOP)/lib
          FONTSRC = $(TOP)/fonts
       INCLUDESRC = $(TOP)/X11
        SERVERSRC = $(TOP)/server
          UTILSRC = $(TOP)/util
        SCRIPTSRC = $(UTILSRC)/scripts
       EXAMPLESRC = $(TOP)/examples
       CONTRIBSRC = $(TOP)/../contrib
           DOCSRC = $(TOP)/doc
           RGBSRC = $(TOP)/rgb
        DEPENDSRC = $(SCRIPTSRC)
         IMAKESRC = $(CONFIGSRC)
         XAUTHSRC = $(LIBSRC)/Xau
          XLIBSRC = $(LIBSRC)/X
           XMUSRC = $(LIBSRC)/Xmu
       TOOLKITSRC = $(LIBSRC)/Xt
       AWIDGETSRC = $(LIBSRC)/Xaw
       OLDXLIBSRC = $(LIBSRC)/oldX
      XDMCPLIBSRC = $(LIBSRC)/Xdmcp
      BDFTOSNFSRC = $(FONTSRC)/bdftosnf
      BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
      BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
     MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
         FSLIBSRC = $(FONTSRC)/lib/fs
    FONTSERVERSRC = $(FONTSRC)/server
     EXTENSIONSRC = $(TOP)/extensions
         XILIBSRC = $(EXTENSIONSRC)/lib/xinput
        PEXLIBSRC = $(EXTENSIONSRC)/lib/PEXlib
      PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX

# $XFree86: mit/config/lnuxLib.tmpl,v 2.0 1993/08/29 14:15:39 dawes Exp $

SHLIBLDFLAGS =
PICFLAGS = -B/usr/dll/jump/

  DEPEXTENSIONLIB =
     EXTENSIONLIB = -lXext

          DEPXLIB = $(DEPEXTENSIONLIB)
             XLIB = $(EXTENSIONLIB) -lX11

        DEPXMULIB =
           XMULIB = -lXmu

      DEPXTOOLLIB =
         XTOOLLIB = -lXt

        DEPXAWLIB =
           XAWLIB = -lXaw

        DEPXILIB =
           XILIB = -lXi

    DEPXTESTLIB =
       XTESTLIB = -lXtst

        DEPPEXLIB =
         PEXLIB = -lPEX5

        SOXLIBREV = 3.1.0
          SOXTREV = 3.1.0
         SOXAWREV = 3.1.0
        SOOLDXREV = 3.1.0
         SOXMUREV = 3.1.0
        SOXEXTREV = 3.1.0
      SOXINPUTREV = 3.1.0
         SOPEXREV = 1.1.0

      DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
         XAUTHLIB = 			 -lXau
      DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
         XDMCPLIB = 			 -lXdmcp

       DEPOLDXLIB = $(USRLIBDIR)/liboldX.a
          OLDXLIB = 			 -loldX

        DEPPHIGSLIB = $(USRLIBDIR)/libphigs.a
           PHIGSLIB = 			 -lphigs

       DEPXBSDLIB = $(USRLIBDIR)/libXbsd.a
          XBSDLIB = 			 -lXbsd

 LINTEXTENSIONLIB = $(LINTLIBDIR)/llib-lXext.ln
         LINTXLIB = $(LINTLIBDIR)/llib-lX11.ln
          LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln
        LINTXTOOL = $(LINTLIBDIR)/llib-lXt.ln
          LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln
           LINTXI = $(LINTLIBDIR)/llib-lXi.ln
          LINTPEX = $(LINTLIBDIR)/llib-lPEX5.ln
        LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln

          DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)

         DEPLIBS1 = $(DEPLIBS)
         DEPLIBS2 = $(DEPLIBS)
         DEPLIBS3 = $(DEPLIBS)

# -------------------------------------------------------------------------
# Imake rules for building libraries, programs, scripts, and data files
# $XFree86: mit/config/Imake.rules,v 2.1 1993/09/29 11:06:00 dawes Exp $
# rules:  $XConsortium: Imake.rules,v 1.123 91/09/16 20:12:16 rws Exp $

# -------------------------------------------------------------------------
# start of Imakefile

#
#  Copyright (C) 1992 by Gustaf Neumann, Stefan Nusser
#
#       Wirtschaftsuniversitaet Wien,
#       Abteilung fuer Wirtschaftsinformatik
#       Augasse 2-6,
#       A-1090 Vienna, Austria
#       neumann@wu-wien.ac.at, nusser@wu-wien.ac.at
#
#  Permission to use, copy, modify, and distribute this software and its
#  documentation for any purpose and without fee is hereby granted, provided
#  that the above copyright notice appears in all copies and that both that
#  copyright notice and this permission notice appear in all supporting
#  documentation.  This software is provided "as is" without expressed or
#  implied warranty.
#
#  Date: Mon, Apr 13 1992
#  Author: Gustaf Neumann
#  Version: 0.97

#  # ----------------- Wafe configuration -------------------------
#  # uncomment the following line if you have no write
#  # permission in the default X11 BINDIR (usually /usr/bin/X11)
#  # BINDIR is the place where executables will be installed.
#  # BINDIR=${HOME}/bin

#  # if you have no socketpair on your system, you might try
#  # -DPIPES or -DSTREAMS.
#  # in this case uncomment one of the following lines
#  # COMPAT_DEFINES = -DSTREAMS
#  # COMPAT_DEFINES = -DPIPES
#  # COMPAT_DEFINES = -DWIDGETLISTTRACE

#  # CDEBUGFLAGS = -Wall -g
#  # CC=cc

#  # If Perl installed on a different place on your systems change
#  # the path here. Perl might be called during make to execute genc
#  # (the C code generator), when a  .spec file, a .inc file, 'types',
#  # or 'genc' is changed.
GENC = /usr/local/bin/perl ./genc

#  # This is the standard place where wafe/mofe will look for
#  # library scripts etc.
WAFELIB = /usr/lib/X11/wafe

#  # ----------------- Wafe configuration -------------------------

#  # The following variables define the Wafe configuration:
#  # -> If MOTIF11 or MOTIF12 is specified, an OSF/Motif version of
#  #    Wafe (mofe) is being build (using Motif 1.1 or Motif 1.2).
#  #    otherwise
#  #    a version of Wafe using the Athena widget set is built (wafe).
#  #
#  # -> If during the compilation Layout.h is not found, either
#  #    get XAW3D (+patches) or #undef LAYOUT

#  # ----------------- which libraries should be built -------------

#  # The following packages might be already installed on your
#  # system; if they are not and if you want to build them uncomment
#  # the necessary lines. Be aware, that building shared libraries is
#  # a moving target on some operating systems. It might be easier to
#  # obtain a binary distribution in some cases (eg. Linux)

# #define BUILD_XPM
# #define BUILD_XAW3D

#  # ----------------- implied variables --------------------

#  # MOTIF11 implies MOTIF

#  # MOTIF12 implies MOTIF

#  # backward compatibility: MOTIF defined, but not MOTIF11

#  # if MOTIF is defined,  or XAW3d cannot be defined
#  # the wafe executable will be called mofe

#  # if  is defined, the ATHENA_DEFINES flag is added automatically,
#  #  is not allowed.
#  # The wafe executable will be called wafe

WAFE                  = wafe
ATHENA_DEFINES        = -DATHENA

XMLIB                 =

#  # $(WAFESHELL).c is the source of the program containing main()
#  # WAFESHELL=wafe is the standard setup for wafe and mofe.
#  # If libwafe/libmofe should be linked to a different program
#  # it could be specified here
WAFESHELL = wafe

#  # ----------------- configuration of packages --------------------

#  # Dictionary of Variable names:
#  #  *HOME         ... home directroy of the sources of this package
#  #  *LD_PATH      ... linker option to locate library
#  #  *LIBRARY_FLAG ... linker option to use library
#  #  *INCLUDE_FLAG ... compiler option to locate include files
#  #  *DEFINES      ... compiler option to pass preprocessor variables
#  #  *DEP_LIB      ... name of the library used in dependencies

TCL_HOME              = ../lib/tcl7.3
TCL_H                 = $(TCL_HOME)/tcl.h

TCL_LD_PATH           = -L$(TCL_HOME)
TCL_DEP_LIB           = $(TCL_HOME)/libtcl.a
TCL_ENV_VAR           =	TCL_HOME=$(TCL_HOME);export TCL_HOME

TCL_LIBRARY_FLAG      = -ltcl

DBUG_HOME             = ../lib/dbug
DBUG_INCLUDE_FLAG     = -I$(DBUG_HOME)

DBUG_DEP_LIB          = $(DBUG_HOME)/libdbug.a
DBUG_LIBRARY_FLAG     = -ldbug
DBUG_LD_PATH          = -L$(DBUG_HOME)

XPM_LIBRARY_FLAG      = -lXpm
XPM_DEFINES           = -DXPM

RDD_DEFINES           = -DRDD
RDD_SRCS              = rdd.c
RDD_OBJS              = rdd.o
RDD_INCLUDE_FLAG      =

HTML_HOME             = ../lib/libhtmlw
HTML_LIB              = htmlw
HTML_INCLUDE_FLAG     = -I$(HTML_HOME)
HTML_LD_PATH          = -L$(HTML_HOME)
HTML_LIBRARY_FLAG     = -l$(HTML_LIB)
HTML_DEFINES          = -DHTML
HTML_CLEAN            = (cd $(HTML_HOME); $(MAKE) clean)

XAWLIB                = -lXaw3d
XAW3D_DEFINES         = -DXAW3D

#  # we use the Layout widget from the  distribution

LAYOUT_HOME           = ../lib/Xaw3d
LAYOUT_INCLUDE_FLAG   = -I$(LAYOUT_HOME)
LAYOUT_LD_PATH        = -L$(LAYOUT_HOME)
LAYOUT_LIBRARY_FLAG   =
LAYOUT_DEFINES        = -DLAYOUT

PLOTTER_DEFINES       = -DPLOTTER

PLOTTER_HOME          = ../lib/plotter/At
PLOTTER_INCLUDE_FLAG  = -I$(PLOTTER_HOME)
PLOTTER_LD_PATH       = -L$(PLOTTER_HOME)
PLOTTER_LIBRARY_FLAG  = -lAt
PLOTTER_DEP_LIB       = $(PLOTTER_HOME)/libAt.a

HTML_DEP_LIB = $(HTML_HOME)/lib$(HTML_LIB).a

#  # DBMALLOC is a debugging malloc package available from
#  # ftp.cs.toronto.edu; this is for development purposes only

INCLUDES = -I. 	${MCLIENTINCLUDE_FLAG} ${XMGRAPH_INCLUDE_FLAG} 	${XPM_INCLUDE_FLAG} ${DBUG_INCLUDE_FLAG} 	${PLOTTER_INCLUDE_FLAG} ${RDD_INCLUDE_FLAG} 	${LAYOUT_INCLUDE_FLAG} ${HTML_INCLUDE_FLAG} ${DBMALLOC_INCLUDE_FLAG}

NON_X_LIBRARIES = 	${TCL_LIBRARY_FLAG} ${DBUG_LIBRARY_FLAG} -lm ${DBMALLOC_LIBRARY_FLAG}

LOCAL_LDFLAGS =  -L. 	${XPM_LD_PATH} ${TCL_LD_PATH} ${DBUG_LD_PATH} 	${PLOTTER_LD_PATH} ${LAYOUT_LD_PATH} ${HTML_LD_PATH} 	${MOTIF_LD_PATH} ${XMGRAPH_LD_PATH}  ${DBMALLOC_LD_PATH}

LOCAL_LIBRARIES = -l$(WAFE) 	${XPM_LIBRARY_FLAG}  ${PLOTTER_LIBRARY_FLAG} 	${LAYOUT_LIBRARY_FLAG} ${XMGRAPH_LIBRARY_FLAG} ${HTML_LIBRARY_FLAG} 	${XMLIB} $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) ${NON_X_LIBRARIES}

VERSIONDEFINES  = -DATHENAR5
STD_INCLUDES    = -I/usr/local/X11R5/include

DEFINES = ${VERSIONDEFINES} -DWAFELIB=\"${WAFELIB}\" 	${XPM_DEFINES} ${DBUG_DEFINES} ${COMPAT_DEFINES} 	${ATHENA_DEFINES} ${XAW3D_DEFINES}  	${PLOTTER_DEFINES} ${MOTIF_DEFINES} ${XMGRAPH_DEFINES} ${RDD_DEFINES} 	${LAYOUT_DEFINES} ${DBMALLOC_DEFINES} ${HTML_DEFINES}

SRCS =  $(WAFESHELL).c createW.c converters.c selection.c actionsCB.c mm.c 	resources.c handlers.c 	XtGen.c MiscGen.c XawGen.c XawR5Gen.c XmGen.c Xm12Gen.c AtGen.c 	XmGraphGen.c  htmlwGen.c rddGen.c  	callback.c $(RDD_SRCS)

OBJS = $(WAFESHELL).o
LIBOBJS =  	createW.o converters.o selection.o actionsCB.o mm.o 	resources.o handlers.o 	XtGen.o MiscGen.o XawGen.o XawR5Gen.o XmGen.o Xm12Gen.o AtGen.o 	XmGraphGen.o rddGen.o  htmlwGen.o 	callback.o $(RDD_OBJS)

VOBJECTS = XawGen.o XawR5Gen.o XmGen.o Xm12Gen.o XmGraphGen.o AtGen.o XtGen.o 	htmlwGen.o rddGen.o rdd.o converters.o resources.o mm.o 	wafe.o createW.o callback.o actionsCB.o handlers.o

DEPLIBS = $(TCL_DEP_LIB) $(DBUG_DEP_LIB) $(XPM_DEP_LIB) $(PLOTTER_DEP_LIB) 		$(XAW3D_DEP_LIB)  $(HTML_DEP_LIB) $(XMGRAPH_DEP_LIB) 		lib$(WAFE).a

 PROGRAM = $(WAFE)

all:: $(WAFE)

$(WAFE): $(OBJS) $(DEPLIBS)
	$(RM) $@
	$(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)

install:: $(WAFE)
	@if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
	$(INSTALL) -c $(INSTPGMFLAGS)  $(WAFE) $(DESTDIR)$(BINDIR)

install.man:: $(WAFE).man
	@if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
	$(INSTALL) -c $(INSTMANFLAGS) $(WAFE).man $(DESTDIR)$(MANDIR)/$(WAFE).$(MANSUFFIX)

depend::
	$(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)

lint:
	$(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
lint1:
	$(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)

clean::
	$(RM) $(PROGRAM)

all:: tcllib/tclIndex

.c.o:
	$(RM) $@
	$(CC) -c $(CFLAGS) $(_NOOP_) $*.c

all:: lib$(WAFE).a

lib$(WAFE).a: $(LIBOBJS)
	$(RM) $@
	$(AR) $@ $(LIBOBJS)
	$(RANLIB) $@

install:: lib$(WAFE).a
	@if [ -d $(DESTDIR)$(USRLIBDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(USRLIBDIR)); fi
	$(INSTALL) -c $(INSTLIBFLAGS) lib$(WAFE).a $(DESTDIR)$(USRLIBDIR)
	$(RANLIB) $(RANLIBINSTFLAGS) $(DESTDIR)$(USRLIBDIR)/lib$(WAFE).a

tcllib/tclIndex: $(WAFE)
	(cd tcllib; $(TCL_ENV_VAR);../$(WAFE) --f buildIndex)

wafe.o: tcl.h version.h wafe.h
mm.o: wafe.h
converters.o: wafe.h
handlers.o: wafe.h

tcl.h: $(TCL_H)
	$(RM) tcl.h
	ln -s $(TCL_H) .

XtGen.c: genc XtGen.spec Xt.inc xpm.inc types
	$(GENC) XtGen.spec

XawGen.c: genc XawGen.spec athena.inc types
	$(GENC)  XawGen.spec

XawR5Gen.c: genc XawR5Gen.spec athenaR5.inc types
	$(GENC) XawR5Gen.spec

htmlwGen.c: genc htmlwGen.spec types gifread.inc htmlw.inc
	$(GENC) htmlwGen.spec

XmGen.c: genc XmGen.spec motif.inc types
	$(GENC) XmGen.spec

Xm12Gen.c: genc Xm12Gen.spec motif12.inc types
	$(GENC) Xm12Gen.spec

XmGraphGen.c: genc XmGraphGen.spec types
	$(GENC) XmGraphGen.spec

AtGen.c: genc AtGen.spec AtHandCraft.inc types
	$(GENC) AtGen.spec

MiscGen.c: genc MiscGen.spec misc.inc types
	$(GENC) MiscGen.spec

rddGen.c: genc rddGen.spec rdd.inc types
	$(GENC) rddGen.spec

$(TCL_DEP_LIB):
	(cd $(TCL_HOME); ./configure; make)
#	(cd $(TCL_HOME); ./configure; make; make install-libraries)

#	(cd $(HTML_HOME);  $(MAKE) clean;

$(HTML_DEP_LIB):
	(cd $(HTML_HOME); 	$(MAKE) CC="$(CC)" CFLAGS="$(HTML_MDEFINES) $(CFLAGS)"	 RANLIB="$(RANLIB)" $(HTML_MV))

$(DBUG_DEP_LIB):
	(cd $(DBUG_HOME); make lib)

$(PLOTTER_DEP_LIB):
	(cd $(PLOTTER_HOME); xmkmf; make)

clean_version:
	rm -f ${VOBJECTS}
	$(HTML_CLEAN)

doc:
	latex wafedoc.tex
	makeindex wafedoc.idx
	latex wafedoc.tex
	dvips -o ../hardcopy/wafedoc-a4.ps -t a4 wafedoc.dvi
	dvips -o ../hardcopy/wafedoc.ps -t a4 wafedoc.dvi

install::
	-@mkdir ${WAFELIB}
	-@mkdir ${WAFELIB}/tcllib
	cp -r ./tcllib ${WAFELIB}

runtimedist:
	find wafe mofe libwafe.a libmofe.a tcl tcllib 		-regex ".*[a-z]$$" -type f -print | sort > distfiles

# -------------------------------------------------------------------------
# common rules for all Makefiles - do not edit

emptyrule::

clean::
	$(RM_CMD) "#"*

Makefile::
	-@if [ -f Makefile ]; then set -x; \
	$(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
	else exit 0; fi
	$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)

tags::
	$(TAGS) -w *.[ch]
	$(TAGS) -xw *.[ch] > TAGS

# -------------------------------------------------------------------------
# empty rules for directories that do not have SUBDIRS - do not edit

install::
	@echo "install in $(CURRENT_DIR) done"

install.man::
	@echo "install.man in $(CURRENT_DIR) done"

install.linkkit::
	@echo "install.linkkit in $(CURRENT_DIR) done"

Makefiles::

includes::

# -------------------------------------------------------------------------
# dependencies generated by makedepend

