# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
#
# The cpp used on this machine replaces all newlines and multiple tabs and
# spaces in a macro expansion with a single space.  Imake tries to compensate
# for this, but is not always successful.
#

###########################################################################
# Makefile generated from "Imake.tmpl" and <Imakefile>
# $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
#
# Platform-specific parameters may be set in the appropriate .cf
# configuration files.  Site-wide parameters may be set in the file
# site.def.  Full rebuilds are recommended if any parameters are changed.
#
# If your C preprocessor doesn't define any unique symbols, you'll need
# to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
# "make Makefile", "make Makefiles", or "make World").
#
# If you absolutely can't get imake to work, you'll need to set the
# variables at the top of each Makefile as well as the dependencies at the
# bottom (makedepend will do this automatically).
#

# 59

# 66

# 73

# 87

# 94

# 101

# 108

# 115

# 123

# 131

# 140

# 147

# 156

# 160

# 183

# 192

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

# 18

# platform:  $XConsortium: hp.cf,v 1.24 89/12/10 11:57:02 rws Exp $
# operating system:  HP-UX 6.5

# 55

# 63

# 67

###########################################################################
# site-specific configuration parameters - edit site.def to change

# site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $

# 82

# 88

# 94

# 99

# 128

# 134

# 143

# 163

# 185

# 266

# 279

# 290

# 219

# 222

# 225

# 235

# 245

# 250

# 257

# 264

# 274

# 280

# 284

# 308

# 318

# 328

# 332

# 339

# 342

# 347

# 350

# 389

# 404

# 410

# 420

# 440

# 457

# 462

# 469

# 475

# 483

# 493

# 499

# 505

# 518

# 529

# 533

# 548

            SHELL = /bin/sh

              TOP = .
      CURRENT_DIR = .

               AR = ar cq
  BOOTSTRAPCFLAGS =
               CC = cc
# 577

         COMPRESS = compress
              CPP = /lib/cpp $(STD_CPP_DEFINES)
    PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
          INSTALL = $(SCRIPTSRC)/bsdinst.sh
               LD = ld
             LINT = \:
      LINTLIBFLAG = -o
         LINTOPTS = -ax -DSYSV
               LN = ln -s
             MAKE = make
               MV = mv -f
               CP = cp
           RANLIB = /bin/true
  RANLIBINSTFLAGS =
               RM = rm -f
     STD_INCLUDES =
  STD_CPP_DEFINES = -DSYSV
      STD_DEFINES = -DSYSV
 EXTRA_LOAD_FLAGS =
  EXTRA_LIBRARIES =
             TAGS = ctags

           MFLAGS = -$(MAKEFLAGS)

# 605

# 608

# 614

# 621

    PROTO_DEFINES =

     INSTPGMFLAGS =  -s
# 630

     INSTSCRFLAGS =
     INSTBINFLAGS = -m 0755
     INSTUIDFLAGS = -o root -m 4755
     INSTLIBFLAGS = -m 0664
     INSTINCFLAGS = -m 0444
     INSTMANFLAGS = -m 0444
     INSTDATFLAGS = -m 0444
    INSTKMEMFLAGS = -g kmem -m 2755

          DESTDIR =

     TOP_INCLUDES = -I$(INCROOT)

# 647

      CDEBUGFLAGS = +O1
        CCOPTIONS =
      COMPATFLAGS =
         PICFLAGS = -pic

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

           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) -L$(USRLIBDIR)
# 671

   LDCOMBINEFLAGS = -X -r

        MACROFILE = hp.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)
# 684

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

###########################################################################
# X Window System Build Parameters
# $XConsortium: Project.tmpl,v 1.68 90/07/03 12:14:47 rws Exp $

# 21

# 27

# 39

# 84

# 87

# 90

# 117

# 133

# 136

# 142

# 152

# 155

# 164

# 228

# 234

# 240

# 248

# 255

# 262

# 269

# 276

# 286

# 313

# 328

###########################################################################
# X Window System make variables; this need to be coordinated with rules
# $XConsortium: Project.tmpl,v 1.68 90/07/03 12:14:47 rws Exp $

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

          FONTDIR = $(LIBDIR)/fonts
         XINITDIR = $(LIBDIR)/xinit
           XDMDIR = $(LIBDIR)/xdm
           AWMDIR = $(LIBDIR)/awm
           TWMDIR = $(LIBDIR)/twm
           GWMDIR = $(LIBDIR)/gwm
          MANPATH = $(DESTDIR)/usr/athena/man
    MANSOURCEPATH = $(MANPATH)/man
           MANDIR = $(MANSOURCEPATH)1
        LIBMANDIR = $(MANSOURCEPATH)3
      XAPPLOADDIR = $(LIBDIR)/app-defaults
# 376

       FONTCFLAGS = -t

     INSTAPPFLAGS = $(INSTDATFLAGS)

            IMAKE = imake
           DEPEND = makedepend
              RGB = rgb
            FONTC = bdftosnf
        MKFONTDIR = mkfontdir
        MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier
# 395

        CONFIGSRC = $(TOP)/config
        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 = $(UTILSRC)/makedepend
         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
     MKFONTDIRSRC = $(FONTSRC)/mkfontdir
     EXTENSIONSRC = $(TOP)/extensions

# 431

# 435

#  DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
#     EXTENSIONLIB =  -lXext

# 442

#          DEPXLIB = $(DEPEXTENSIONLIB) $(USRLIBDIR)/libX11.a
             XLIB = $(EXTENSIONLIB)  -lX11

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

#        DEPXMULIB = $(USRLIBDIR)/libXmu.a
           XMULIB =  -lXmu

# 458

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

# 465

#      DEPXTOOLLIB = $(USRLIBDIR)/libXt.a
         XTOOLLIB =  -lXt

# 472

#        DEPXAWLIB = $(USRLIBDIR)/libXaw.a
           XAWLIB =  -lXaw

 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

# 491

# 496

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

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

###########################################################################
# Imake rules for building libraries, programs, scripts, and data files
# rules:  $XConsortium: Imake.rules,v 1.70 90/05/04 16:57:30 keith Exp $

# 134

# 137

# 146

# 522

# 544

# 601

# 1360

###########################################################################
# 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) $@; if [ -f $@ ]; then $(MV) $@ $@~; fi
	$(CC) -o $@ $(LDOPTIONS) $(OBJS1) $(LOCAL_LIBRARIES) $(LDLIBS)  $(EXTRA_LOAD_FLAGS)

install:: tgif
	$(INSTALL) -c $(INSTPGMFLAGS)   tgif $(BINDIR)

install.man:: tgif.man
	$(INSTALL) -c $(INSTMANFLAGS) tgif.man $(MANDIR)/tgif.1

saber_tgif:
	#load $(ALLDEFINES) $(SRCS1) -L$(USRLIBDIR) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

osaber_tgif:
	#load $(ALLDEFINES) $(OBJS1) -L$(USRLIBDIR) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

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

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

clean::
	$(RM) $(PROGRAMS)

prtgif: $(OBJS2) $(DEPLIBS2)
	$(RM) $@; if [ -f $@ ]; then $(MV) $@ $@~; fi
	$(CC) -o $@ $(LDOPTIONS) $(OBJS2)  $(LDLIBS)  $(EXTRA_LOAD_FLAGS)

saber_prtgif:
	#load $(ALLDEFINES) $(SRCS2) -L$(USRLIBDIR)  $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

osaber_prtgif:
	#load $(ALLDEFINES) $(OBJS2) -L$(USRLIBDIR)  $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

install:: prtgif
	$(INSTALL) -c $(INSTPGMFLAGS)   prtgif $(BINDIR)

install.man:: prtgif.man
	$(INSTALL) -c $(INSTMANFLAGS) prtgif.man $(MANDIR)/prtgif.1

install::
	$(MKDIRHIER) $(TGIFDIR)

install:: tgif.Xdefaults
	$(INSTALL) -c $(INSTDATFLAGS) tgif.Xdefaults $(TGIFDIR)

install:: tgificon.eps
	$(INSTALL) -c $(INSTDATFLAGS) tgificon.eps $(TGIFDIR)

install:: tgificon.obj
	$(INSTALL) -c $(INSTDATFLAGS) tgificon.obj $(TGIFDIR)

install:: tgificon.xbm
	$(INSTALL) -c $(INSTDATFLAGS) tgificon.xbm $(TGIFDIR)

install:: tgificon.xpm
	$(INSTALL) -c $(INSTDATFLAGS) tgificon.xpm $(TGIFDIR)

install:: tangram.sym
	$(INSTALL) -c $(INSTDATFLAGS) tangram.sym $(TGIFDIR)

install:: keys.obj
	$(INSTALL) -c $(INSTDATFLAGS) keys.obj $(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

emptyrule::

clean::
	$(RM_CMD) \#*

Makefile::
	-@if [ -f Makefile ]; then \
	echo "	$(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
	$(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
# 721

saber:
	#load $(ALLDEFINES) $(SRCS)

osaber:
	#load $(ALLDEFINES) $(OBJS)

# 743

###########################################################################
# 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"

Makefiles::

includes::

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

