#
#########################################################################
#
# makefile for The Hessling Editor (THE)
#
#########################################################################
#
# THE - The Hessling Editor. A text editor similar to VM/CMS xedit.
# Copyright (C) 1991-1993 Mark Hessling
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to:
#
#    The Free Software Foundation, Inc.
#    675 Mass Ave,
#    Cambridge, MA 02139 USA.
#
#
# If you make modifications to this software that you feel increases
# it usefulness for the rest of the community, please email the
# changes, enhancements, bug fixes as well as any and all ideas to me.
# This software is going to be maintained and enhanced as deemed
# necessary by the community.
#
# Mark Hessling                     email: M.Hessling@gu.edu.au
# 36 David Road                     Phone: +61 7 849 7731
# Holland Park                      Fax:   +61 7 875 5314
# QLD 4121
# Australia
#
#########################################################################
#
# The available features of curses library are different on just about 
# every machine. System V curses has more features that BSD curses, so if
# your system gives you a choice of curses libraries, use the System V one.
# The later the version of your System V operating system, the more features
# are supplied in the curses library and the more features THE can use.
# To help you determine which of the options below should be used, then
# the following will help.
#
# Determine where your curses.h file is located. It is generally in
# /usr/include or /usr/5include. 
# Once you know the location of curses.h, run the following commands:
#
# grep A_COLOR /usr/include/curses.h  (or whereever your curses.h file is)
# If this results in any output, then use the System V R3.2 section.
# next try:
# grep attrset /usr/include/curses.h  (or whereever your curses.h file is)
# If this results in any output, then use the System V R3.1 section.
# If neither of these commands resulut in any output, then I'm affraid you
# will have to use the BSD option.
#
# If when you compile and link THE, you get errors, then you might have to
# come down one version. eg If you used the System V R3.2 section and got
# errors, try using the System V 3.1 section.
#
#########################################################################
#
# THE is REXX-aware under all platforms; DOS, OS/2 and Unix.
# By default, the OS/2 REXX support is enabled when compiling with the
# C Set/2 compiler, as this is the only platform where one is almost
# guaranteed to have REXX support available.
#
# To enable REXX support under Unix you need to do the following:
# - obtain version 0.05d or later of Regina from flipper.pvv.unit.no
#   in /pub/rexx. The file is called regina-0.05d.tar.Z
#   you can also get Regina from rexx.uwaterloo.ca in /pub/freerexx/regina
# - check the README file to see if your platform is supported.
#   if it isn't, then ignore the rest of these instructions :-)
# - build regina as per its instructions
#   this should result in a rexx executable file and a libregina.a file
# - copy rexxsaa.h from the regina src directory into the THE source
#   directory. Also copy libregina.a from the regina src directory into
#   the THE source directory. You may need to run ranlib again on the
#   libregina.a file)
# - append to the LD variable "-L. -lregina"
# - append to the CFLAGS variable "-DUSE_REGINA"
# - remove "-DNOREXX" from the CFLAGS variable
# - copy/move the rexx executable into a directory in your PATH
#
#########################################################################
#$Header: C:\THE\RCS\makefile 1.4 1993/09/01 16:26:39 MH Interim MH $
#########################################################################

VER = 15
PROJ = proj   # this will get replaced by uncommenting a section
MAN  = man    # this will get replaced by uncommenting a section

#########################################################################
# Borland C++ 2.0 and above compiler on DOS - with Personal REXX (incomplete)
#########################################################################
#SRC       = c:/the
#PROJ      = the.exe
#OBJ       = obj
#CC        = bcc
#CURSINC   = -Ic:/curses
#CFLAGS    = -O -d -K -w-aus -w-par -ml -DPROTO -DUSE_QUERCUS -I$(SRC) $(CURSINC)
#LD        = tlink @dos-trc.rsp
#XTRAOBJ   = getopt.obj rxiface.obj
#MAN       = manext.exe
#MANLD     = tlink /c /Td c:\c\lib\c0l+manext+getopt+c:\c\lib\wildargs,manext,,c:\c\lib\cl.lib
#CHMODTHE  =
#CHMODMAN  =
#########################################################################
# Borland C++ 2.0 and above compiler on DOS - without Personal REXX
#########################################################################
#SRC       = c:/the
#PROJ      = the.exe
#OBJ       = obj
#CC        = bcc
#CURSINC   = -Ic:/curses
#CFLAGS    = -O -d -K -w-aus -w-par -ml -DPROTO -DNOREXX -I$(SRC) $(CURSINC)
#LD        = tlink @dos-trcx.rsp
#XTRAOBJ   = getopt.obj
#MAN       = manext.exe
#MANLD     = tlink /c /Td c:\c\lib\c0l+manext+getopt+c:\c\lib\wildargs,manext,,c:\c\lib\cl.lib
#CHMODTHE  =
#CHMODMAN  =
#########################################################################
# MSC 6.0ax compiler on DOS
#########################################################################
#SRC       = c:/the
#PROJ      = the.exe
#OBJ       = obj
#CC        = cl
#CURSINC   = -Ic:/curses
#CFLAGS    = -O -J -EM -AL -DSTDC_HEADERS -DPROTO -DNOREXX -I$(SRC) $(CURSINC)
#LD        = link @dos-msc.rsp
#XTRAOBJ   = getopt.obj
#MAN       = manext.exe
#MANLD     = link manext+getopt+c:\c600\lib\setargv,,,c:\c600\lib\Llibce /CO /NOE /NOI /NOD;
#CHMODTHE  =
#CHMODMAN  =
#########################################################################
# djgpp compiler on DOS - no REXX (should be complete with djgpp 1.11)
#########################################################################
#SRC       = c:/the
#PROJ      = the
#OBJ       = o
#CC        = gcc
#CURSINC   = -Ic:/curses
#CURSLIB   = c:/djgpp/curses/curseso.a
#REXXINC   =
#REXXLIB   =
#CFLAGS    = -O -D__MSDOS__ -DSTDC_HEADERS -DNOREXX -DPROTO -I$(SRC) $(CURSINC) -o$*.o
#LD        = $(CC) -o $(PROJ) @dos-go32.rsp -Lc:/djgpp/lib $(CURSLIB)
#XTRAOBJ   =
#MAN       = manext
#MANLD     = $(CC) -o manext manext.o -Lc:/djgpp/lib
#CHMODTHE  = aout2exe $(PROJ)
#CHMODMAN  = aout2exe $(MAN)
#########################################################################
# djgpp compiler on DOS with Regina 0.05i (should be complete with djgpp 1.11)
#########################################################################
#SRC       = c:/the
#PROJ      = the
#OBJ       = o
#CC        = gcc
#CURSINC   = -Ic:/curses
#CURSLIB   = c:/djgpp/curses/curseso.a
#REXXINC   = -If:/regina-d/src
#REXXLIB   = -Lf:/regina-d/src -lrexx -lsaa -lrexx
#CFLAGS    = -O -D__MSDOS__ -DSTDC_HEADERS -DUSE_REGINA -DPROTO -I$(SRC) $(CURSINC) $(REXXINC) -o$*.o
#LD        = $(CC) -O -o $(PROJ) @dos-go32.rsp -Lc:/djgpp/lib $(CURSLIB) $(REXXLIB)
#XTRAOBJ   =
#MAN       = manext
#MANLD     = $(CC) -o manext manext.o -Lc:/djgpp/lib
#CHMODTHE  = aout2exe $(PROJ)
#CHMODMAN  = aout2exe $(MAN)
#########################################################################
# MSC 6.0ax compiler on OS/2
#########################################################################
#SRC       = c:/the
#PROJ      = the.exe
#OBJ       = obj
#CC        = cl
#CURSINC   = -Ic:/curses
#CFLAGS    = -O -J -EM -AL -D__OS2__ -DSTDC_HEADERS -DPROTO -DUSE_OS2_H -I$(SRC) $(CURSINC)
#LD        = link @os2-msc.rsp
#XTRAOBJ   = getopt.obj
#MAN       = manext.exe
#MANLD     = link manext+getopt+c:\c600\os2lib\setargv,,,c:\c600\os2lib\Llibce,msc-man.def /NOE /NOI /NOD;
#CHMODTHE  =
#CHMODMAN  =
#########################################################################
# C Set/2 compiler on OS/2
#########################################################################
#SRC       = c:/the
#PROJ      = the.exe
#OBJ       = obj
#CC        = icc
#CURSINC   = -Ic:/curses
#CFLAGS    = -O -J+ -Sm -Q+ -DSTDC_HEADERS -DPROTO -DUSE_OS2REXX -I$(SRC) $(CURSINC)
#LD        = link386 @os2-ibm.rsp
#XTRAOBJ   = getopt.obj
#MAN       = manext.exe
#MANLD     = link386 manext+getopt+g:\ibmc\lib\setargv,,,,ibm-man.def /NOE /NOI /EXEPACK /ALIGN:4;
#CHMODTHE  =
#CHMODMAN  =
#########################################################################
# emx .08g compiler on OS/2
#########################################################################
#SRC       = c:/the
#PROJ      = the
#OBJ       = o
#CC        = gcc
#CURSINC   = -Ic:/curses
#CURSLIB   = -Lf:/emx/curses -lcurso
#CFLAGS    = -O -D__OS2__ -DUSE_OS2REXX -DNOVIO -DSTDC_HEADERS -DPROTO -I$(SRC) $(CURSINC) -o$*.o
#LD        = $(CC) -o $(PROJ) $(OBJS) -Lf:/emx/lib -los2 -lc $(CURSLIB) $(SRC)/emx-the.def
#XTRAOBJ   =
#MAN       = manext
#MANLD     = $(CC) -o manext manext.o -Lf:/emx/lib -los2 -lc $(SRC)/emx-man.def
#CHMODTHE  = emxbind $(PROJ)
#CHMODMAN  = emxbind $(MAN)
#########################################################################
# Borland C++ Compiler on OS/2
#########################################################################
#SRC       = c:/the
#PROJ      = the.exe
#OBJ       = obj
#CC        = bcc
#CURSINC   = -Ic:/curses
#CFLAGS    = -O -d -K -w-aus -w-par -D__32BIT__ -DSTDC_HEADERS -DPROTO -DUSE_OS2REXX -I$(SRC) $(CURSINC)
#LD        = tlink @os2-bcc.rsp
#XTRAOBJ   = getopt.obj
#MAN       = manext.exe
#MANLD     = tlink manext+getopt+f:\ibmc\lib\setargv,,,,bcc-man.def /NOE /NOI /EXEPACK /ALIGN:4;
#CHMODTHE  =
#CHMODMAN  =
#########################################################################
# System V compiler on Sun
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = /usr/5bin/cc
#CFLAGS    = -O -DSUN -DSYSVR31 -I$(SRC)
#LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
#XTRAOBJ   =
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# ANSI C compiler on Sun - acc (with Regina 0.05h or above)
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = acc
#CURSINC   = -I/usr/5include
#CURSLIB   = -L/usr/5lib -lcurses
#REXXINC   = -I.
#REXXLIB   = -L. -lregina
#CFLAGS    = -O -DUSE_REGINA -DSUN -DSYSVR31 -DPROTO $(CURSINC) $(REXXINC) -I$(SRC)
#LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB) 
#XTRAOBJ   =
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# ANSI C compiler on Sun - acc (no REXX)
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = acc
#CURSINC   = -I/usr/5include
#CURSLIB   = -L/usr/5lib -lcurses
#REXXINC   = 
#REXXLIB   = 
#CFLAGS    = -O -DNOREXX -DSUN -DSYSVR31 -DPROTO $(CURSINC) $(REXXINC) -I$(SRC)
#LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB) 
#XTRAOBJ   =
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# gcc compiler on Sun (with Regina 0.05h or above)
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = gcc
#CURSINC   = -I/usr/5include
#CURSLIB   = -L/usr/5lib -lcurses
#REXXINC   = -I.
#REXXLIB   = -L. -lregina
#CFLAGS    = -O -DUSE_REGINA -DSUN -DSYSVR31 -DPROTO -traditional -I$(SRC) $(CURSINC) $(REXXINC)
#LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXINC)
#XTRAOBJ   =
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# gcc compiler on Linux using PDCurses (experimental)
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = gcc
#CFLAGS    = -O -DSYSVR32 -DPROTO -I$(SRC) -I/home/mark/curses -I/home/mark/mytinfo
#LD        = $(CC) -o $(PROJ) $(OBJS) /home/mark/mytinfo/libmytinfo.a /home/mark/curses/libpdcurses.a
#XTRAOBJ   =
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# gcc compiler using ncurses (no Regina)
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = gcc
#CFLAGS    = -O -DUSE_NCURSES -DNOREXX -DPROTO -I/usr/local/include -I$(SRC)
#LD        = $(CC) -o $(PROJ) $(OBJS) -L/usr/local/lib -lncurses
#XTRAOBJ   =
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# System V compiler on System V R4 systems
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = /bin/cc
#CFLAGS    = -O -DSYSVR4 -DPROTO -DNOREXX -I$(SRC)
#LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
#XTRAOBJ   =
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# System V compiler on System V R3.2 systems
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = cc
#CFLAGS    = -O -DSYSVR32 -DNOREXX -I$(SRC)
#LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
#XTRAOBJ   =
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# System V compiler on System V R3.1 systems
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = cc
#CFLAGS    = -O -DSYSVR31 -DNOREXX -I$(SRC)
#LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
#XTRAOBJ   =
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# System V compiler on System V R3 systems
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = cc
#CFLAGS    = -O -DSYSVR3 -DNOREXX -I$(SRC)
#LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
#XTRAOBJ   =
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# System V compiler on System V systems eg AIX, HP-UX
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = cc
#CFLAGS    = -O -DSYSV -DNOREXX -I$(SRC)
#LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
#XTRAOBJ   =
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# AIX System V compiler on AIX using extended curses (incomplete)
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = cc
#CFLAGS    = -g -DUSE_EXTCURSES -DNOREXX -I$(SRC)
#LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
#XTRAOBJ   = extcurs.o
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# AIX System V compiler on AIX using REXX/6000
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = cc
#CURSINC   = 
#CURSLIB   = -lcurses
#REXXINC   = 
#REXXLIB   = -lrexx
#CFLAGS    = -g -DUSE_AIXREXX -I$(SRC) $(CURSINC) $(REXXINC)
#LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ   = 
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# C compiler on BSD or BSDish systems eg. Linux, 386BSD (no REXX)
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = cc
#CURSINC   = 
#CURSLIB   = -lcurses -ltermcap
#REXXINC   = 
#REXXLIB   = 
#CFLAGS    = -O -DBSD -DNOREXX -I$(SRC) $(CURSINC) $(REXXINC)
#LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ   = bsd.o
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# C compiler on BSD or BSDish systems eg. Linux, 386BSD (with REXX)
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = cc
#CURSINC   = 
#CURSLIB   = -lcurses -ltermcap
#REXXINC   = 
#REXXLIB   = -L. -lregina
#CFLAGS    = -O -DBSD -DUSE_REGINA -I$(SRC) $(CURSINC) $(REXXINC)
#LD        = $(CC) -o $(PROJ) $(OBJS) $(CURSLIB) $(REXXLIB)
#XTRAOBJ   = bsd.o
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# C compiler under ATT System V R3.2
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = cc
#CFLAGS    = -O -DATT -DSYSVR32 -DNOREXX -DNO_RENAME -I$(SRC)
#LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses
#XTRAOBJ   = 
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
# C compiler under SCO Xenix R2.3
#########################################################################
#SRC       = .
#PROJ      = the
#OBJ       = o
#CC        = cc
#CFLAGS    = -O -DNOREXX -DNO_RENAME -I$(SRC)
#LD        = $(CC) -o $(PROJ) $(OBJS) -lcurses -lx
#XTRAOBJ   = 
#MAN       = manext
#MANLD     = $(CC) -o $(MAN) manext.o
#CHMODTHE  = chmod 755 $(PROJ)
#CHMODMAN  = chmod 755 $(MAN)
#########################################################################
#
#
# Object files
#
OBJ1 = comm1.$(OBJ) comm2.$(OBJ) comm3.$(OBJ) comm4.$(OBJ) comm5.$(OBJ) \
	commsos.$(OBJ) commset1.$(OBJ) commset2.$(OBJ) default.$(OBJ) edit.$(OBJ) error.$(OBJ) \
	nonansi.$(OBJ) show.$(OBJ) the.$(OBJ) util.$(OBJ) prefix.$(OBJ) \
	execute.$(OBJ) box.$(OBJ) sort.$(OBJ)
OBJ2 = commutil.$(OBJ)
OBJ3 = getch.$(OBJ)
OBJ4 = query.$(OBJ)
OBJ5 = fnmatch.$(OBJ)
OBJ6 = directry.$(OBJ) file.$(OBJ)
OBJ7 = rexx.$(OBJ)
OBJ8 = quercus.$(OBJ)
OBJX = $(XTRAOBJ)
OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8) $(OBJX)

COMM = $(SRC)/comm1.c $(SRC)/comm2.c $(SRC)/comm3.c $(SRC)/comm4.c $(SRC)/comm5.c \
	$(SRC)/commsos.c $(SRC)/commset1.c $(SRC)/commset2.c $(SRC)/query.c

APPENDIX = $(SRC)/appendix.1

#
#########################################################################
$(PROJ):	$(OBJS)
	$(LD)
	$(CHMODTHE)
#########################################################################
%.$(OBJ):$(SRC)/%.c
	$(CC) $(CFLAGS) -c $(SRC)/$*.c
#########################################################################
$(OBJ1):	$(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
$(OBJ2):	$(SRC)/the.h $(SRC)/command.h $(SRC)/defines.h $(SRC)/proto.h $(SRC)/getch.h $(SRC)/key.h
$(OBJ3):	$(SRC)/getch.h $(SRC)/defines.h $(SRC)/proto.h
$(OBJ4):	$(SRC)/query.h $(SRC)/the.h $(SRC)/defines.h $(SRC)/proto.h
$(OBJ5):	$(SRC)/the.h $(SRC)/fnmatch.h
$(OBJ6):	$(SRC)/the.h $(SRC)/directry.h $(SRC)/defines.h $(SRC)/proto.h
$(OBJ7):	$(SRC)/the.h $(SRC)/rexx.h $(SRC)/proto.h $(SRC)/defines.h $(SRC)/query.h
$(OBJ8):	$(SRC)/the.h $(SRC)/rexx.h $(SRC)/defines.h $(SRC)/regina.h
#
#########################################################################
manual:	$(MAN) $(SRC)/overview $(COMM) $(APPENDIX)
	manext $(SRC)/overview $(COMM) $(APPENDIX) > the.man
#
$(MAN):	$(XTRAOBJ) manext.$(OBJ)
	$(MANLD)
	$(CHMODMAN)
#########################################################################
zoosrc:
	zoo a thesrc$(VER) COPYING readme.src readme.exc overview appendix.1 the.his
	zoo a thesrc$(VER) the.c the.h comm*.c util.c bsd.c command.h default.c directry.c defines.h
	zoo a thesrc$(VER) box.c execute.c trace.c prefix.c rexx.c quercus.c query.c sort.c
	zoo a thesrc$(VER) directry.h edit.c error.c file.c fnmatch.c fnmatch.h getch.c extcurs.c
	zoo a thesrc$(VER) getch.h getopt.c nonansi.c show.c vax.c key.h query.h rexx.h regina.h
	zoo a thesrc$(VER) *.hlp *.rsp *.def makefile manext.c proto.h profile.the
	zoo a thesrc$(VER) append.the comm.the uncomm.the total.the files.rcs
#########################################################################
zipsrc:
	zip  thesrc$(VER) COPYING readme.src readme.exc overview appendix.1 the.his
	zip  thesrc$(VER) the.c the.h comm*.c util.c bsd.c command.h default.c directry.c defines.h
	zip  thesrc$(VER) box.c execute.c trace.c prefix.c rexx.c quercus.c query.c sort.c
	zip  thesrc$(VER) directry.h edit.c error.c file.c fnmatch.c fnmatch.h getch.c extcurs.c
	zip  thesrc$(VER) getch.h getopt.c nonansi.c show.c vax.c key.h query.h rexx.h regina.h
	zip  thesrc$(VER) *.hlp *.rsp *.def makefile manext.c proto.h profile.the match.the
	zip  thesrc$(VER) append.the comm.the uncomm.the total.the files.rcs
#########################################################################
tarsrc:
	tar cvf thesrc$(VER).tar COPYING readme.src readme.exc overview appendix.1 the.his \
	the.c the.h comm*.c util.c bsd.c command.h default.c directry.c defines.h \
	directry.h edit.c error.c file.c fnmatch.c fnmatch.h getch.c extcurs.c   \
	getch.h getopt.c nonansi.c show.c vax.c key.h query.h rexx.h regina.h \
	box.c execute.c trace.c prefix.c rexx.c quercus.c query.c sort.c \
	*.hlp *.rsp *.def makefile manext.c proto.h  \
	profile.the append.the comm.the uncomm.the total.the match.the files.rcs
	compress thesrc$(VER).tar
#########################################################################
zoodos:
	+copy d:\tools\the.exe .
	zoo a thedos$(VER).zoo COPYING readme.exc the.exe
	zoo a thedos$(VER).zoo the.man the.his dos.hlp *.the
	+del the.exe
#########################################################################
zipdos:
	+copy d:\tools\the.exe .
	zip  thedos$(VER).zip COPYING readme.exc the.exe
	zip  thedos$(VER).zip the.man the.his dos.hlp *.the
	+del the.exe
#########################################################################
zoogo32:
	+copy c:\the\dos\go32\the.exe
	+copy c:\djgpp\bin\go32.exe
	zoo a thedjg$(VER).zoo COPYING readme.exc the.exe go32.exe
	zoo a thedjg$(VER).zoo the.man the.his dos.hlp *.the
	+del the.exe
	+del go32.exe
#########################################################################
zipgo32:
	+copy c:\the\dos\go32\the.exe
	+copy c:\djgpp\bin\go32.exe
	zip  thedjg$(VER).zip COPYING readme.exc the.exe go32.exe
	zip  thedjg$(VER).zip the.man the.his dos.hlp *.the
	+del the.exe
	+del go32.exe
#########################################################################
zooos2:
	+copy f:\usr\bin\the.exe .
	zoo a theos2$(VER).zoo COPYING readme.exc the.exe
	zoo a theos2$(VER).zoo the.man the.his os2.hlp *.the
	+del the.exe
#########################################################################
zipos2:
	+copy f:\usr\bin\the.exe .
	zip  theos2$(VER).zip COPYING readme.exc the.exe
	zip  theos2$(VER).zip the.man the.his os2.hlp *.the
	+del the.exe
#########################################################################
zipexe:
	+copy f:\usr\bin\the.exe theos2.exe
	+copy d:\tools\the.exe thedos.exe
	zip  theexe$(VER).zip COPYING readme.exc thedos.exe theos2.exe
	zip  theexe$(VER).zip the.man the.his dos.hlp os2.hlp *.the
	+del thedos.exe
	+del theos2.exe
#########################################################################
