# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.91 95/01/12 16:15:47 kaleb Exp $

# ----------------------------------------------------------------------
# Makefile generated from "Imake.tmpl" and <Imakefile>
# $XConsortium: Imake.tmpl,v 1.224.1.1 95/06/19 17:51:01 gildea Exp $
# $XFree86: xc/config/cf/Imake.tmpl,v 3.18 1995/07/12 15:27:23 dawes Exp $
# $Header: /mit/netbsd/dev/XFree863.1.2/lib/X11/config/RCS/Imake.tmpl,v 1.4 1995/08/28 08:21:14 jhawk Exp $
#

.SUFFIXES: .i

# $XConsortium: Imake.cf,v 1.19 95/01/05 19:24:32 kaleb Exp $
# $XFree86: xc/config/cf/Imake.cf,v 3.15 1995/06/08 06:18:39 dawes Exp $

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

# site:  $XConsortium: site.sample,v 1.9 94/04/08 17:02:06 rws Exp $
# site:  $XFree86: xc/config/cf/site.def,v 3.8 1995/05/27 01:56:50 dawes Exp $

# $XFree86: xc/config/cf/xf86site.def,v 3.48 1995/07/22 04:11:45 dawes Exp $

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

# platform:  $XConsortium: NetBSD.cf,v 1.5 95/04/07 19:42:55 kaleb Exp $
# platform:  $XFree86: xc/config/cf/NetBSD.cf,v 3.20 1995/07/22 04:11:38 dawes Exp $

# operating system:  	NetBSD 1.0

          COL = /usr/bin/col
         NEQN = /usr/bin/neqn
        NROFF = /usr/bin/nroff

# Man pages need to be formatted when installed, so override the default
# imake rules.

# $XConsortium: bsdLib.rules,v 1.1 94/03/29 15:34:45 gildea Exp $

# $XConsortium: xfree86.cf,v 1.9 95/01/25 16:42:40 kaleb Exp $
# $XFree86: xc/config/cf/xfree86.cf,v 3.66 1995/07/22 04:11:47 dawes Exp $

LINKKITDIR = $(USRLIBDIR)/Server

       XF86SRC = $(SERVERSRC)/hw/xfree86
  XF86ACCELSRC = $(XF86SRC)/accel
    XF86COMSRC = $(XF86SRC)/common
 XF86CONFIGSRC = $(XF86COMSRC)
     XF86HWSRC = $(XF86SRC)/common_hw
     XF86OSSRC = $(XF86SRC)/os-support
  VGADRIVERSRC = $(XF86SRC)/vga256/drivers
VGA16DRIVERSRC = $(XF86SRC)/vga16/drivers
 VGA2DRIVERSRC = $(XF86SRC)/vga2/drivers
 MONODRIVERSRC = $(XF86SRC)/mono/drivers
   S3DRIVERSRC = $(XF86SRC)/accel/s3/drivers

        XFREE86DOCDIR = $(LIBDIR)/doc
      XFREE86PSDOCDIR = $(XFREE86DOCDIR)/PostScript
    XFREE86HTMLDOCDIR = $(XFREE86DOCDIR)/html
XFREE86JAPANESEDOCDIR = $(XFREE86DOCDIR)/Japanese

# $XConsortium: xf86.rules,v 1.7 95/01/25 16:34:39 kaleb Exp $
# $XFree86: xc/config/cf/xf86.rules,v 3.9 1995/07/12 15:27:38 dawes Exp $

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

# site:  $XConsortium: site.sample,v 1.9 94/04/08 17:02:06 rws Exp $
# site:  $XFree86: xc/config/cf/site.def,v 3.8 1995/05/27 01:56:50 dawes Exp $

# -----------------------------------------------------------------------
# Imake rules for building libraries, programs, scripts, and data files
# rules:  $XConsortium: Imake.rules,v 1.197.1.1 95/06/19 18:01:48 gildea Exp $
# rules:  $XFree86: xc/config/cf/Imake.rules,v 3.18 1995/07/22 09:39:32 dawes Exp $
# rules:  $Header: /afs/sipb/project/netbsd/dev/XFree863.1.2/lib/X11/config/RCS/Imake.rules,v 1.3 1995/08/28 08:20:57 jhawk Exp $

#   $RCSfile: Motif.rules,v $ $Revision: 1.2 $ $Date: 1995/08/28 08:22:13 $
#   $Header: /afs/sipb/project/netbsd/dev/XFree863.1.2/lib/X11/config/RCS/Motif.rules,v 1.2 1995/08/28 08:22:13 jhawk Exp $

 _NULLCMD_ = @ echo -n

#   $RCSfile: Motif.tmpl,v $ $Revision: 1.4 $ $Date: 1995/08/28 08:22:38 $
#   $Header: /afs/sipb/project/netbsd/dev/XFree863.1.2/lib/X11/config/RCS/Motif.tmpl,v 1.4 1995/08/28 08:22:38 jhawk Exp $

          SOXMREV = 1.2
         SOMRMREV = 1.2
         SOUILREV = 1.2
     SOACOMMONREV = 1.2
      SOSCRIPTREV = 1.2
        SOUTILREV = 1.2
      SOCREATEREV = 1.2
      SOVISUALREV = 1.2
       SOSYNTHREV = 1.2
     SOMCOMMONREV = 1.2

              XTOP = /usr/X11R6
              MTOP = /usr/X11R6
     XBUILDINCROOT = $(XTOP)
      XBUILDINCDIR = $(XBUILDINCROOT)/X11

          IRULESRC = $(CONFIGSRC)
         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(NEWTOP)$(IRULESRC) $(IMAKE_DEFINES)

         CLIENTSRC = $(XTOP)/clients
           DEMOSRC = $(XTOP)/demos
            LIBSRC = $(XTOP)/lib
           FONTSRC = $(XTOP)/fonts
        INCLUDESRC = $(XTOP)/X11
         SERVERSRC = $(XTOP)/server
           UTILSRC = $(XTOP)/util
        EXAMPLESRC = $(XTOP)/examples
            DOCSRC = $(XTOP)/doc
            RGBSRC = $(XTOP)/rgb
      EXTENSIONSRC = $(XTOP)/extensions

      TOP_INCLUDES = -I$(MINCLUDESRC) -I$(INCROOT)

      UIL_INCLUDES = -I$(UILSRC)

      USRINCDIR = /usr/X11R6/include
         UIDDIR = $(LIBDIR)/uid
        TESTSRC = $(MTOP)/tests
        TESTLIB = $(TESTSRC)/lib
  GENERALSRCLIB = $(TESTSRC)/General/lib
  GENERALSRCBIN = $(TESTSRC)/General/bin
   MANUALSRCLIB = $(TESTSRC)/Manual/lib
   MANUALSRCBIN = $(TESTSRC)/Manual/bin
     AUTOSRCLIB = $(TESTSRC)/Auto/lib
     AUTOSRCBIN = $(TESTSRC)/Auto/bin
       COMMONPP = $(GENERALSRCBIN)/Commonpp
         GENRUN = $(GENERALSRCBIN)/Genrun
         MANRUN = $(GENERALSRCBIN)/Manrun

     TESTCOMSRC = $(MANUALSRCLIB)/Common

    MTOOLKITSRC = $(TOOLKITSRC)
    MINCLUDESRC = $(MTOP)/X11
        MLIBSRC = $(MTOP)/lib
     MCLIENTSRC = $(MTOP)/clients
       MDEMOSRC = $(MTOP)/demos
     MWIDGETSRC = $(MLIBSRC)/Xm
   MRESOURCESRC = $(MLIBSRC)/Mrm
         UILSRC = $(MCLIENTSRC)/uil

            UIL = $(UILSRC)/uil
         DEPUIL = $(UILSRC)/uil

   XMEXTRA_LIBS =

SOXMREV = 1.2
DEPXMLIBLIB =
XMLIBLIB =  -lXm

LINTXMLIB = $(LINTLIBDIR)/llib-lXm.ln

SOMRMREV = 1.2
DEPMRESOURCELIBLIB =
MRESOURCELIBLIB =  -lMrm

LINTMRESOURCELIB = $(LINTLIBDIR)/llib-lMrm.ln

SOUILREV = 1.2
DEPUILLIBLIB =
UILLIBLIB =  -lUil

LINTUILLIB = $(LINTLIBDIR)/llib-lUil.ln

SOCOMMONREV = 1.2
DEPTESTCOMLIBLIB =
TESTCOMLIBLIB =  -lCommon

LINTTESTCOMLIB = $(LINTLIBDIR)/llib-lCommon.ln

  LINTMRESOURCE = $(MRESOURCESRC)/libMrm.a
LINTXMWIDGETLIB = $(MWIDGETSRC)/llib-l/Xm.ln
     LINTXMTOOL = $(MTOOLKITSRC)/llib-lXt.ln
     LINTUILLIB = $(UILSRC)/llib-lUil.ln

      YACCFLAGS =
       UILFLAGS =

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

    STD_DEFINES = -DCSRG_BASED

          PATHSEP = /
            SHELL = 	/bin/sh

              TOP = .
      CURRENT_DIR = .

            IMAKE = imake
           DEPEND = gccmakedep
        MKDIRHIER = 	mkdir -p
        CONFIGSRC = $(TOP)/config
         IMAKESRC = $(CONFIGSRC)/imake
        DEPENDSRC = $(CONFIGSRC)/util
           IXXSRC = $(UNSUPPORTEDSRC)/programs/ixx
              IXX = ixx
         IXXFLAGS = -s BaseObject -m TypeObj -r RequestObj -p Xf
      IXXINCLUDES = -i '<X11/Fresco/enter-scope.h>'

          INCROOT = /usr/X11R6/include
        USRLIBDIR = /usr/X11R6/lib
         SHLIBDIR = /usr/X11R6/lib
       LINTLIBDIR = $(USRLIBDIR)/lint
          MANPATH = /usr/X11R6/man
    MANSOURCEPATH = $(MANPATH)/cat
           MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
        LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
       FILEMANDIR = $(MANSOURCEPATH)$(FILEMANSUFFIX)

               AR = ar clq
  BOOTSTRAPCFLAGS =
               CC = 			gcc
               AS = as

.SUFFIXES: .cxx

              CXX = g++
    CXXDEBUGFLAGS = 	-m486 -O2
 CXXEXTRA_DEFINES =
CXXEXTRA_INCLUDES =
  CXXIDL_INCLUDES = -I$(TOP)/include
   CXXSTD_DEFINES = -DCSRG_BASED
       CXXOPTIONS =
      CXXINCLUDES = $(INCLUDES) $(TOP_INCLUDES) $(CXXEXTRA_INCLUDES) $(CXXIDL_INCLUDES)
       CXXDEFINES = $(CXXINCLUDES) $(CXXSTD_DEFINES) $(THREADS_CXXDEFINES) $(CXXEXTRA_DEFINES)
         CXXFLAGS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(THREADS_CXXFLAGS) $(CXXDEFINES)

         COMPRESS = compress
              CPP =          	/usr/libexec/cpp $(STD_CPP_DEFINES)
    PREPROCESSCMD =   	         	/usr/libexec/cpp $(STD_CPP_DEFINES)
          INSTALL = install
     INSTALLFLAGS = -c
               LD = ld
              LEX = lex
           LEXLIB = -ll
             YACC = yacc
           CCYACC = yacc
             LINT = lint
      LINTLIBFLAG = -C
         LINTOPTS = -axz
               LN = ln -s
             MAKE = make
               MV = mv
               CP = cp

           RANLIB = ranlib
  RANLIBINSTFLAGS =

               RM = rm -f
        MANSUFFIX = 1
     LIBMANSUFFIX = 3
    FILEMANSUFFIX = 5
            TROFF =        	groff -Tps
         MSMACROS = -ms
              TBL = 			/usr/bin/tbl
              EQN = 			/usr/bin/eqn -Tascii

            DVIPS = dvips
            LATEX = latex

     STD_INCLUDES =
  STD_CPP_DEFINES = -traditional
      STD_DEFINES = -DCSRG_BASED
 EXTRA_LOAD_FLAGS =
  EXTRA_LDOPTIONS =
  EXTRA_LIBRARIES = -lgnumalloc
             TAGS = ctags

    SHAREDCODEDEF =
         SHLIBDEF = -DBSDSHLIB

     SHLIBLDFLAGS = -Bshareable

         PICFLAGS = -fpic

      CXXPICFLAGS = -fpic

    PROTO_DEFINES = -DFUNCPROTO=15 -DNARROWPROTO

     INSTPGMFLAGS = -s

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

      PROJECTROOT = /usr/X11R6

     TOP_INCLUDES = -I$(INCROOT)

      CDEBUGFLAGS = 	-m486 -O2
        CCOPTIONS =

      ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(DEFINES)
           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(THREADS_CFLAGS) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES)
         LDPRELIB = -L$(USRLIBDIR)
        LDPOSTLIB =
        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)  $(EXTRA_LDOPTIONS) $(THREADS_LDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIB)
     CXXLDOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(EXTRA_LDOPTIONS) $(THREADS_CXXLDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIB)

           LDLIBS = $(LDPOSTLIB) $(THREADS_LIBS) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

           CCLINK = $(CC)

          CXXLINK = $(CXX)

     LDSTRIPFLAGS = -x
   LDCOMBINEFLAGS = -X -r
      DEPENDFLAGS =

        MACROFILE = NetBSD.cf
           RM_CMD = $(RM)

    IMAKE_DEFINES =

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

     ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Project.tmpl 			$(IRULESRC)/site.def $(IRULESRC)/$(MACROFILE) 			$(IRULESRC)/xfree86.cf $(IRULESRC)/xf86.rules $(IRULESRC)/xf86site.def $(IRULESRC)/host.def $(EXTRA_ICONFIGFILES)

# ----------------------------------------------------------------------
# X Window System Build Parameters and Rules
# $XConsortium: Project.tmpl,v 1.249 95/05/23 21:36:40 matt Exp $
# $XFree86: xc/config/cf/Project.tmpl,v 3.18 1995/07/22 04:11:42 dawes Exp $

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

           BINDIR = /usr/X11R6/bin
     BUILDINCROOT = $(TOP)
      BUILDINCDIR = $(BUILDINCROOT)/X11
      BUILDINCTOP = ..
      BUILDLIBDIR = $(TOP)/usrlib
      BUILDLIBTOP = ..
           INCDIR = $(INCROOT)/X11
           ADMDIR = /usr/adm
           LIBDIR = $(USRLIBDIR)/X11

          FONTDIR = $(LIBDIR)/fonts
         XINITDIR = $(LIBDIR)/xinit
           XDMDIR = $(LIBDIR)/xdm
           TWMDIR = $(LIBDIR)/twm
           XSMDIR = $(LIBDIR)/xsm
           NLSDIR = $(LIBDIR)/nls
       XLOCALEDIR = $(LIBDIR)/locale
        PEXAPIDIR = $(LIBDIR)/PEX
      XAPPLOADDIR = $(LIBDIR)/app-defaults
       FONTCFLAGS = -t

     INSTAPPFLAGS = $(INSTDATFLAGS)

              RGB = rgb
            FONTC = bdftopcf
        MKFONTDIR = mkfontdir

       DOCUTILSRC = $(TOP)/doc/util
       XDOCMACROS = $(DOCUTILSRC)/macros.t
       XIDXMACROS = $(DOCUTILSRC)/indexmacros.t
       PROGRAMSRC = $(TOP)/programs
           LIBSRC = $(TOP)/lib
          FONTSRC = $(TOP)/fonts
       INCLUDESRC = $(TOP)/X11
        SERVERSRC = $(TOP)/programs/Xserver
       CONTRIBSRC = $(TOP)/../contrib
   UNSUPPORTEDSRC = $(TOP)/unsupported
           DOCSRC = $(TOP)/doc
           RGBSRC = $(TOP)/programs/rgb
      BDFTOPCFSRC = $(PROGRAMSRC)/bdftopcf
     MKFONTDIRSRC = $(PROGRAMSRC)/mkfontdir
    FONTSERVERSRC = $(PROGRAMSRC)/xfs
       FONTINCSRC = $(TOP)/include/fonts
        EXTINCSRC = $(TOP)/include/extensions
     TRANSCOMMSRC = $(LIBSRC)/xtrans
   TRANS_INCLUDES = -I$(TRANSCOMMSRC)

# $XConsortium: bsdLib.tmpl,v 1.2 95/01/23 19:07:12 kaleb Exp $
# $XFree86: xc/config/cf/bsdLib.tmpl,v 3.1 1995/01/28 15:40:19 dawes Exp $

          XLIBSRC = $(LIBSRC)/X11

SOXLIBREV = 6.0
DEPXONLYLIB =
XONLYLIB =  -lX11

LINTXONLY = $(LINTLIBDIR)/llib-lX11.ln

         XLIBONLY = $(XONLYLIB)

      XEXTLIBSRC = $(LIBSRC)/Xext
   LBXXEXTLIBSRC = $(TOP)/workInProgress/lbx/lib/Xext

    XEXEXTLIBSRC = $(LIBSRC)/XExExt

SOXEXTREV = 6.0
DEPXEXTLIB =
XEXTLIB =  -lXext

LINTXEXT = $(LINTLIBDIR)/llib-lXext.ln

SOXEXTREV = 6.0
DEPLBXXEXTLIB =
LBXXEXTLIB =  -llbxXext

LINTLBXXEXT = $(LINTLIBDIR)/llib-llbxXext.ln

DEPXEXEXTLIB = $(USRLIBDIR)/libXExExt.a
XEXEXTLIB =  -lXExExt

LINTXEXEXT = $(LINTLIBDIR)/llib-lXExExt.ln

     EXTENSIONLIB = $(XEXEXTLIB) $(XEXTLIB)
  DEPEXTENSIONLIB = $(DEPXEXEXTLIB) $(DEPXEXTLIB)
    LINTEXTENSION = $(LINTXEXEXT) $(LINTXEXT)

 LINTEXTENSIONLIB = $(LINTEXTENSION)
          DEPXLIB = $(DEPEXTENSIONLIB) $(DEPXONLYLIB)
             XLIB = $(EXTENSIONLIB) $(XONLYLIB)
         LINTXLIB = $(LINTXONLYLIB)

         XAUTHSRC = $(LIBSRC)/Xau

DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
XAUTHLIB =  -lXau

LINTXAUTH = $(LINTLIBDIR)/llib-lXau.ln

      XDMCPLIBSRC = $(LIBSRC)/Xdmcp

DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
XDMCPLIB =  -lXdmcp

LINTXDMCP = $(LINTLIBDIR)/llib-lXdmcp.ln

           XMUSRC = $(LIBSRC)/Xmu

SOXMUREV = 6.0
DEPXMULIB =
XMULIB =  -lXmu $(LDPRELIB) $(XTOOLONLYLIB) $(XONLYLIB)

LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln

       OLDXLIBSRC = $(LIBSRC)/oldX

SOOLDXREV = 6.0
DEPOLDXLIB =
OLDXLIB =  -loldX

LINTOLDX = $(LINTLIBDIR)/llib-loldX.ln

       TOOLKITSRC = $(LIBSRC)/Xt

SOXTREV = 6.0
DEPXTOOLONLYLIB =
XTOOLONLYLIB =  -lXt

LINTXTOOLONLY = $(LINTLIBDIR)/llib-lXt.ln

      DEPXTOOLLIB = $(DEPXTOOLONLYLIB) $(DEPSMLIB) $(DEPICELIB)
         XTOOLLIB = $(XTOOLONLYLIB) $(SMLIB) $(ICELIB)
     LINTXTOOLLIB = $(LINTXTOOLONLYLIB)

       AWIDGETSRC = $(LIBSRC)/Xaw

SOXAWREV = 6.0
DEPXAWLIB =
XAWLIB =  -lXaw

LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln

       XTFSRC = $(TOP)/workInProgress/Xtf

SOXTFREV = 0.7
DEPXTFLIB =
XTFLIB =  -lXtf

LINTXTF = $(LINTLIBDIR)/llib-lXtf.ln

       FRESCOSRC = $(TOP)/workInProgress/Fresco

SOFRESCOREV = 0.7
DEPFRESCOLIB =
FRESCOLIB =  -lFresco

LINTFRESCO = $(LINTLIBDIR)/llib-lFresco.ln

         XILIBSRC = $(LIBSRC)/Xi

SOXINPUTREV = 6.0
DEPXILIB =
XILIB =  -lXi

LINTXI = $(LINTLIBDIR)/llib-lXi.ln

      XTESTLIBSRC = $(LIBSRC)/Xtst

SOXTESTREV = 6.0
DEPXTESTLIB =
XTESTLIB =  -lXtst

LINTXTEST = $(LINTLIBDIR)/llib-lXtst.ln

        PEXLIBSRC = $(LIBSRC)/PEX5

SOPEXREV = 6.0
DEPPEXLIB =
PEXLIB =  -lPEX5

LINTPEX = $(LINTLIBDIR)/llib-lPEX5.ln

        XIELIBSRC = $(LIBSRC)/XIE

SOXIEREV = 6.0
DEPXIELIB =
XIELIB =  -lXIE

LINTXIE = $(LINTLIBDIR)/llib-lXIE.ln

      PHIGSLIBSRC = $(LIBSRC)/PHIGS

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

LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln

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

LINTXBSD = $(LINTLIBDIR)/llib-lXbsd.ln

           ICESRC = $(LIBSRC)/ICE

SOICEREV = 6.0
DEPICELIB =
ICELIB =  -lICE

LINTICE = $(LINTLIBDIR)/llib-lICE.ln

            SMSRC = $(LIBSRC)/SM

SOSMREV = 6.0
DEPSMLIB =
SMLIB =  -lSM

LINTSM = $(LINTLIBDIR)/llib-lSM.ln

         FSLIBSRC = $(LIBSRC)/FS

DEPFSLIB = $(USRLIBDIR)/libFS.a
FSLIB =  -lFS

LINTFS = $(LINTLIBDIR)/llib-lFS.ln

         FONTLIBSRC = $(LIBSRC)/font

DEPFONTLIB = $(USRLIBDIR)/libfont.a
FONTLIB =  -lfont

LINTFONT = $(LINTLIBDIR)/llib-lfont.ln

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

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

        CONFIGDIR = $(LIBDIR)/config

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

#
#  Author:      William Chia-Wei Cheng (william@cs.ucla.edu)
#
#  Copyright (C) 1990-1996, William Chia-Wei Cheng.
#
#  Permission limited to the use, copy, display, distribute without
#  charging for a fee, and produce derivative works of "tgif" and
#  its documentation for not-for-profit purpose is hereby granted by
#  the Author, provided that the above copyright notice appears in
#  all copies made of "tgif" and that both the copyright notice
#  and this permission notice appear in supporting documentation,
#  and that the name of the Author not be used in advertising or
#  publicity pertaining to distribution of the software without
#  specific, written prior permission.  The Author makes no
#  representations about the suitability of this software for any
#  purpose.  It is provided "as is" without express or implied
#  warranty.  All other rights (including, but not limited to, the
#  right to sell "tgif", the right to sell derivative works of
#  "tgif", and the right to distribute "tgif" for a fee) are
#  reserved by the Author.
#
#  THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN 0
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
#  USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
#  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
#  PERFORMANCE OF THIS SOFTWARE.
#
#  @(#)$Header: /n/opus/u/guest/william/src/tgif/v3/RCS/Imakefile,v 3.10 1996/05/30 14:29:07 william Exp $
#

# On Solaris, you probably need to uncomment the next few lines:
#
# CC		= cc
# PREPROCESSCMD	= cc -E $(STD_CPP_DEFINES)
# EXTRA_LDOPTIONS	=

TGIFVERSION	= 3.0-p7
PROGRAMS	= tgif prtgif # frontend11.o testdrive
# CDEBUGFLAGS= -g
# INSTPGMFLAGS= -s
BINDIR	= /mit/sipb/arch/@sys/bin
LIBDIR	= /mit/sipb/share
MANPATH	= /mit/sipb/man
TGIFDIR		= $(LIBDIR)/tgif
DEFINES		= -DTGIF_PATH=\"$(TGIFDIR)\" -DPSFILE_MOD=0664 \
                  -DEPSF_FILE_EXT=\"eps\" -DPS_FILE_EXT=\"ps\" \
                  -DXBM_FILE_EXT=\"xbm\" -DXPM_FILE_EXT=\"xpm\" \
                  -DOBJ_FILE_EXT=\"obj\" -DSYM_FILE_EXT=\"sym\" \
                  -DTEXT_FILE_EXT=\"txt\" \
                  -DTELEPORT_ATTR=\"warp_to=\" -DTMP_DIR=\"/tmp/\" \
                  -DLAUNCH_ATTR=\"launch=\" -DEXEC_ATTR=\"exec=\" \
                  -D_BACKGROUND_DONT_FORK -D_USE_XDRAWPOINT_TO_PUT_A_POINT

# Things to try to add to the DEFINES line above:
#
#    RS6000:  -D_BSD
#    Solaris:
#    Irix:    -D_NO_PROTO
#    SunOS:
#    HP-UX:
#    VMS:     -D_NO_GETTIMEOFDAY
#    Linux:
#    FreeBSD:

LOCAL_LIBRARIES	= $(XLIB)
# LOCAL_LIBRARIES	= $(XMULIB) $(XTOOLLIB) $(XLIB)
DEPLIBS		= $(DEPXLIB)
SYS_LIBRARIES	= -lm

# -D_NO_GETTIMEOFDAY
#    Include the above line if you do not have the gettimeofday()
#    function but have the ftime() function.
# -D_TGIF_WB
#    Include the above line if you want to include the whiteboard feature
#    by Renato Santana <renato@nce.ufrj.br>.
# -DBSD_COMP
#    Include the above line if you are compiling on a Solaris (or
#    possibly an SGI) machine which requires it in <sys/ioctl.h>.
#    (If you see the error that FIONBIO is not defined when compiling
#    tcp.c, then you probably need this.)
# -D_BACKGROUND_DONT_FORK
#    Try the above line if there are defunct tgif child processes.
# -D_NO_LSTAT
#    Include the above line if lstat() is not available.  In this case,
#    using BrowseXBitmap and BrowseXPixmap under the File Menu may cause
#    infinite loop if the directory structure is infinitely recursive.
# -D_USE_XDRAWPOINT_TO_PUT_A_POINT
#    Include the above line if the grid points are not visible.  This can
#    be used to bypass some X server bugs (such as certain Linux X server
#    using VGA16 screen) where the XDrawLine() Xlib call does not work
#    properly.
# -D_NO_EXTERN
#    Include the above line in the DEFINES if you don't want to include
#    the extern definition for functions defined in a module.  For example,
#    if this option is set, then file "foo.c" will not include "foo.e",
#    and certain other extern definition in "foo.c" will be omitted.
# -D_NO_PROTO
#    Include the above line in the DEFINES if checking for function
#    prototypes is not desired.  Checking for function prototypes
#    are automatically enabled if you are using an ANSI or C++ compilor.
#    However, not all ANSI/C++ compilors are created equal.
# -D_BSD
#    Include the above line in the DEFINES if the select() function can
#    does not be found for AIX systems (such as RS6000).  Also, on AIX
#    systems, if you see garbage file names when you try to open files,
#    try this flag to make direct and dirent equivalent (in <sys/dir.h>).
# -DNO_STRSTR
#    Include the above line in the DEFINES if you do not have the strstr()
#    function in your system's string library.
# -DINVERT_CTM_BUG
#    Include the above line in the DEFINES if you are using PostScript
#    utilities which fails when trying to invert non-invertible CTM
#    (e.g., muluti.ps from ftp.ucc.su.oz.au:/pub/ps_printing/multi).
# -DHP_LINE_BUG
#    Include the above line in the DEFINES if two-vertices horizontal and
#    verticle line segments don't draw properly on a buggy HP server.
# -DDONTFREECOLORS
#    Include the above line in the DEFINES if you don't want the black and
#    the white colors to be freed when tgif initializes itself.  You should
#    not need to do this unless you need to get around some server bugs.
# -DUSE_XAPPLRESDIR
#    Include the above line in the DEFINES if $XAPPLRESDIR/Tgif is used to
#    specify the resource file.  If your system does not have putenv()
#    (such as IBM-RT), then this won't work.
# -DXAPPLOADDIR_DEF
#    If you define USE_XAPPLRESDIR, define this to a default directory
#    to use in case $XAPPLRESDIR isn't set.
# -DUSE_XT_INITIALIZE
#    This will cause the XToolkit to be initialized so that the X defaults
#    are obtained from the Xt directories.  This should only be used when
#    USE_XAPPLRESDIR option is NOT used.  Please remember to use the
#    LOCAL_LIBRARIES with $(XTOOLLIB) $(XMULIB) above.
# -DNO_THIN_LINE
#    Include the above line in the DEFINES if a line width of 0 causes
#    your server to crash.  This is to get around a bug in some X servers.
# -DTHIN_OVAL_AND_ARC
#    Include the above line in the DEFINES if you want 0 width arcs to
#    be used when the width of an arc is less than or equal to 1.
#    (Sun3 server has a bug that makes drawing ovals and arcs with
#    width other than 0 VERY slow).
# -DKEEP_WHEN_PRINT
#    Include the above line in the DEFINES if you don't want the temp
#    file to be deleted after sending the print job to the printer.
#    (Some VMS systems might require this flag to be used.)
# -DPRINT_CMD=\"lpr\"
#    Include the above line in the DEFINES if you want to configure tgif
#    to use a default print command.
# -DNOTR4MODE
#    Include the above line in the DEFINES if you are running X11R3.
#    This will cause tgif NOT to use some X11R4 window manager related
#    functions that's not present in R3.
# -DMAPBEFORESELECT
#    Include the above line in the DEFINES to call XMapWindow() before
#    calling XSelectInput().  This might be needed to get around some
#    server bugs.
# -DDONT_FREE_COLORMAP
#    Include the above line in the DEFINES if you don't want the colormap
#    to be freed when tgif exits.
# -DA4PAPER
#    Include the above line in the DEFINES if you want to print on A4 paper
#    (8.25in by 11.7in or about 21cm by 29.7cm).

OBJ1 =	align.o animate.o arc.o attr.o auxtext.o 	box.o button.o 	choice.o choose.o cmd.o color.o cutpaste.o cursor.o 	dialog.o drawing.o dup.o 	edit.o eps.o exec.o expr.o 	file.o font.o ftp.o 	grid.o group.o 	help.o http.o 	imgproc.o import.o 	mainloop.o mainmenu.o mark.o menu.o move.o msg.o 	names.o navigate.o 	obj.o oval.o 	page.o pattern.o poly.o polygon.o ps.o 	raster.o rcbox.o rect.o remote.o ruler.o 	scroll.o select.o setup.o shape.o shortcut.o 		special.o spline.o stk.o stretch.o 	tgif_dbg.o 	tcp.o text.o 	util.o 	version.o vms_comp.o 	wb1.o wb2.o wb3.o 	xbitmap.o xpixmap.o

OBJS1 = tgif.o $(OBJ1)
OBJS2 = prtgif.o
OBJS3 = testdrive.o $(OBJ1)
FRONTENDOBJS = frontend.o $(OBJ1)

CURRENTDIR =./

SRCS1 = $(CURRENTDIR)*.c
SRCS2 =
SRCS3 =

 OBJS = $(OBJS1) $(OBJS2) $(OBJS3)
 SRCS = $(SRCS1) $(SRCS2) $(SRCS3)

all:: $(PROGRAMS)

tgif: $(OBJS1) $(DEPLIBS1)
	$(RM) $@
	$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS1) $(LOCAL_LIBRARIES) $(LDLIBS)  $(EXTRA_LOAD_FLAGS)

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

all:: tgif.0

tgif.0:: tgif.man
	@if [ -f tgif.man ]; \
	then \
	cat tgif.man | $(NEQN) | $(TBL) | $(NROFF) -man | $(COL) >/tmp/$$$$.man; \
	cp /tmp/$$$$.man tgif.0; \
	$(RM) /tmp/$$$$.man; \
	fi

tgif.man::

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

depend::
	$(DEPEND) $(DEPENDFLAGS) -- $(ALLDEFINES) $(DEPEND_DEFINES) -- $(SRCS)

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

clean::
	$(RM) $(PROGRAMS)

prtgif: $(OBJS2) $(DEPLIBS2)
	$(RM) $@
	$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS2)  $(LDLIBS)  $(EXTRA_LOAD_FLAGS)

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

all:: prtgif.0

prtgif.0:: prtgif.man
	@if [ -f prtgif.man ]; \
	then \
	cat prtgif.man | $(NEQN) | $(TBL) | $(NROFF) -man | $(COL) >/tmp/$$$$.man; \
	cp /tmp/$$$$.man prtgif.0; \
	$(RM) /tmp/$$$$.man; \
	fi

prtgif.man::

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

install::
	@case '${MFLAGS}' in *[i]*) set +e;; esac;
	@for i in $(TGIFDIR); do if [ -d $(DESTDIR)$$i ]; then \
	set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i); fi \
	done

install:: tgif.Xdefaults
	$(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) tgif.Xdefaults $(DESTDIR)$(TGIFDIR)

install:: tgificon.eps
	$(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) tgificon.eps $(DESTDIR)$(TGIFDIR)

install:: tgificon.obj
	$(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) tgificon.obj $(DESTDIR)$(TGIFDIR)

install:: tgificon.xbm
	$(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) tgificon.xbm $(DESTDIR)$(TGIFDIR)

install:: tgificon.xpm
	$(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) tgificon.xpm $(DESTDIR)$(TGIFDIR)

install:: tangram.sym
	$(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) tangram.sym $(DESTDIR)$(TGIFDIR)

install:: keys.obj
	$(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) keys.obj $(DESTDIR)$(TGIFDIR)

.SUFFIXES: .l .man

.l.man:
	rm -f $*.man
	cp $*.l $*.man

.e.o:

SPICEDIR =spice/
XBMDIR =xbm/

OBJDEMO = an-sr-flip-flop.obj fonts.obj slide-demo.obj keys.obj 	  $(SPICEDIR)*.obj launch-demo.obj launch-demo-1.obj

SYMDEMO = flip-flop.sym nand2.sym pin.sym tangram.sym $(SPICEDIR)*.sym
MISCTAR = *.man README Copyright tgif.pl $(SPICEDIR)*.mod example.tex 		HISTORY *.uu testdrive.pl frontend.pl

distr: tar versioninfo

uu:
	rm -f *.uu *.cat *.cat.Z
	groff -Tascii -man tgif.man > tgif.cat; compress tgif.cat
	groff -Tascii -man prtgif.man > prtgif.cat; compress prtgif.cat
	uuencode tgif.cat.Z tgif.cat.Z > tgif.cat.Z.uu
	uuencode prtgif.cat.Z prtgif.cat.Z > prtgif.cat.Z.uu

rcstar:
	@rm -f home/RCS3.tar.gz.save
	@if [ -f home/RCS3.tar.gz ]; then 		mv home/RCS3.tar.gz home/RCS3.tar.gz.save;         fi

	tar cf home/RCS3.tar RCS xbm.RCS
	gzip home/RCS3.tar
	ls -l home/RCS3.tar.gz

tar: uu
	rm -f tgif-$(TGIFVERSION).tar*
	tar cvf tgif-$(TGIFVERSION).tar *.c *.e *.h 		Makefile.noimake Imakefile descrip.??? VMS_MAKE_TGIF.COM 		tgificon.obj $(XBMDIR)*.xbm 		tgificon.xbm tgificon.xpm tgif.Xdefaults tgificon.eps 		$(OBJDEMO) 		$(SYMDEMO) 		$(MISCTAR)

	rm -rf tgif-$(TGIFVERSION)
	mkdir tgif-$(TGIFVERSION)
	cd tgif-$(TGIFVERSION); tar xvf ../tgif-$(TGIFVERSION).tar; cd ..
	rm -f tgif-$(TGIFVERSION).tar
	tar cvf tgif-$(TGIFVERSION).tar tgif-$(TGIFVERSION)
	rm -rf tgif-$(TGIFVERSION)
	gzip -c tgif-$(TGIFVERSION).tar > tgif-$(TGIFVERSION).tar.gz
	compress tgif-$(TGIFVERSION).tar

MAN_1 = README *.man Imakefile Copyright
BASIC_1 = Makefile.noimake descrip.* HISTORY tgif.Xdefaults 	  VMS_MAKE_TGIF.COM

MISC_1 = an-sr-flip-flop.obj fonts.obj slide-demo.obj keys.obj 	 launch-demo.obj launch-demo-1.obj 	 flip-flop.sym nand2.sym pin.sym tangram.sym tgificon.xbm

MISC_2 = tgif.pl testdrive.pl frontend.pl tgificon.obj example.tex tangram.sym
MISC_3 = tgificon.xpm tgificon.eps *.uu
SPICE_1 = spice $(SPICEDIR)*.obj $(SPICEDIR)*.sym $(SPICEDIR)*.mod

shar: uu
	rm -f tgif-$(TGIFVERSION).shar.*
	shar -otgif-$(TGIFVERSION).shar.1 -n1 -e38 $(MAN_1)
	shar -otgif-$(TGIFVERSION).shar.2 -n2 -e38 $(BASIC_1)
	shar -otgif-$(TGIFVERSION).shar.3 -n3 -e38 a[a-n]*.c
	shar -otgif-$(TGIFVERSION).shar.4 -n4 -e38 a[o-s]*.c
	shar -otgif-$(TGIFVERSION).shar.5 -n5 -e38 a[t-z]*.c
	shar -otgif-$(TGIFVERSION).shar.6 -n6 -e38 b*.c
	shar -otgif-$(TGIFVERSION).shar.7 -n7 -e38 c[a-m]*.c
	shar -otgif-$(TGIFVERSION).shar.8 -n8 -e38 c[n-z]*.c
	shar -otgif-$(TGIFVERSION).shar.9 -n9 -e38 d*.c
	shar -otgif-$(TGIFVERSION).shar.10 -n10 -e38 e[a-d]*.c
	shar -otgif-$(TGIFVERSION).shar.11 -n11 -e38 e[e-z]*.c
	shar -otgif-$(TGIFVERSION).shar.12 -n12 -e38 f[a-i]*.c
	shar -otgif-$(TGIFVERSION).shar.13 -n13 -e38 f[j-z]*.c
	shar -otgif-$(TGIFVERSION).shar.14 -n14 -e38 [g-l]*.c
	shar -otgif-$(TGIFVERSION).shar.15 -n15 -e38 ma*.c
	shar -otgif-$(TGIFVERSION).shar.16 -n16 -e38 m[b-e]*.c
	shar -otgif-$(TGIFVERSION).shar.17 -n17 -e38 m[f-z]*.c
	shar -otgif-$(TGIFVERSION).shar.18 -n18 -e38 n*.c
	shar -otgif-$(TGIFVERSION).shar.19 -n19 -e38 o*.c p[a-n]*.c
	shar -otgif-$(TGIFVERSION).shar.20 -n20 -e38 poly.c
	shar -otgif-$(TGIFVERSION).shar.21 -n21 -e38 polygon.c p[p-z]*.c
	shar -otgif-$(TGIFVERSION).shar.22 -n22 -e38 r[a-c]*.c stk*.c
	shar -otgif-$(TGIFVERSION).shar.23 -n23 -e38 r[d-z]*.c
	shar -otgif-$(TGIFVERSION).shar.24 -n24 -e38 sc*.c sel*.c
	shar -otgif-$(TGIFVERSION).shar.25 -n25 -e38 set*.c s[f-p]*.c
	shar -otgif-$(TGIFVERSION).shar.26 -n26 -e38 str*.c
	shar -otgif-$(TGIFVERSION).shar.27 -n27 -e38 text.c
	shar -otgif-$(TGIFVERSION).shar.28 -n28 -e38 testdrive.c t[f-z]*.c 				[u-w]*.c

	shar -otgif-$(TGIFVERSION).shar.29 -n29 -e38 x[a-m]*.c
	shar -otgif-$(TGIFVERSION).shar.30 -n30 -e38 x[n-z]*.c
	shar -otgif-$(TGIFVERSION).shar.31 -n31 -e38 [a-n]*.e
	shar -otgif-$(TGIFVERSION).shar.32 -n32 -e38 [o-z]*.e *.h
	shar -otgif-$(TGIFVERSION).shar.33 -n33 -e38 xbm xbm/[a-k]*.xbm 				xbm/l[a-s]*.xbm

	shar -otgif-$(TGIFVERSION).shar.34 -n34 -e38 xbm/l[t-z]*.xbm 				xbm/[m-z]*.xbm

	shar -otgif-$(TGIFVERSION).shar.35 -n35 -e38 $(MISC_1)
	shar -otgif-$(TGIFVERSION).shar.36 -n36 -e38 $(MISC_2)
	shar -otgif-$(TGIFVERSION).shar.37 -n37 -e38 $(MISC_3)
	shar -otgif-$(TGIFVERSION).shar.38 -n38 -e38 $(SPICE_1)

versioninfo:
	what .psmac *.c *.e *.h Makefile.noimake Imakefile 		*.man tgif.pl README example.tex HISTORY 		tgificon.obj an-sr-flip-flop.obj fonts.obj slide-demo.obj 		keys.obj flip-flop.sym nand2.sym pin.sym tangram.sym 		$(SPICEDIR)*.obj $(SPICEDIR)*.sym testdrive.pl frontend.pl 		descrip.mms descrip.opt tgifmacro.ps $(XBMDIR)*.xbm 		tgificon.xbm tgificon.xpm tgif.Xdefaults tgificon.eps 		VMS_MAKE_TGIF.COM launch-demo.obj launch-demo-1.obj 		Copyright 		> VersionInfo/Distribution/tgif-$(TGIFVERSION)

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

.c.i:
	$(RM) $@
	$(CC) -E $(CFLAGS) $(_NOOP_) $*.c > $@

emptyrule::

clean::
	$(RM_CMD) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut  	*.core "#"*

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::

depend::

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

