# 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.003288>
# $XFree86: mit/config/Imake.tmpl,v 2.6 1993/10/02 07:11:59 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.23 1993/10/16 17:28:07 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.28 1993/10/21 15:48:52 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.7 1993/10/08 16:11:07 dawes Exp $

# -------------------------------------------------------------------------
# XFree86 version: 2000
# -------------------------------------------------------------------------

# operating system:  		BSD/386

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

# $XFree86: mit/config/site.def,v 2.23 1993/10/16 17:28:07 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

             YACC = yacc

         COMPRESS = compress
              CPP = 		/usr/bin/cpp $(STD_CPP_DEFINES)
    PREPROCESSCMD = 		gcc -E $(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 = 	eqn
     STD_INCLUDES =
  STD_CPP_DEFINES = -traditional 		-D__386BSD__
      STD_DEFINES = 		-D__386BSD__
 EXTRA_LOAD_FLAGS =
  EXTRA_LIBRARIES =
     OS_LIBRARIES =
             TAGS = ctags

    PROTO_DEFINES =

     INSTPGMFLAGS = -s

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

      PROJECTROOT = /usr/X11

     TOP_INCLUDES = -I$(INCROOT)

      CDEBUGFLAGS = -O -fstrength-reduce
        CCOPTIONS =
    ANSICCOPTIONS =

      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)

   LDCOMBINEFLAGS = -X -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.1 1993/09/17 16:10:43 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/X11/lib
           BINDIR = /usr/X11/bin
          INCROOT = /usr/X11/include
     BUILDINCROOT = $(TOP)
      BUILDINCDIR = $(BUILDINCROOT)/X11
      BUILDINCTOP = ..
           INCDIR = $(INCROOT)/X11
           ADMDIR = 		/var/log
           LIBDIR = $(USRLIBDIR)/X11
        CONFIGDIR = $(LIBDIR)/config
       LINTLIBDIR = $(USRLIBDIR)/lint

          FONTDIR = $(LIBDIR)/fonts
         XINITDIR = $(LIBDIR)/xinit
           XDMDIR = $(LIBDIR)/xdm
           TWMDIR = $(LIBDIR)/twm
          MANPATH = /usr/X11/man
    MANSOURCEPATH = 	$(MANPATH)/cat
        MANSUFFIX = 	1
     LIBMANSUFFIX = 	3
    FILEMANSUFFIX = 	5
           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 = makedepend
              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 = $(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
      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

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

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

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

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

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

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

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

        DEPXILIB = $(USRLIBDIR)/libXi.a
           XILIB = 			 -lXi

       DEPPEXLIB = $(USRLIBDIR)/libPEX5.a
          PEXLIB = 			 -lPEX5

        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)

#   $RCSfile: Motif.tmpl,v $ $Revision: 1.5.22.13 $ $Date: 93/06/02 23:04:50 $

              XTOP = $(TOP)
              MTOP = $(TOP)
     XBUILDINCROOT = $(XTOP)
      XBUILDINCDIR = $(XBUILDINCROOT)/X11

         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$(INCROOT)

      UIL_INCLUDES = -I$(USRINCDIR)/uil

      USRINCDIR = /usr/X11/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 = uil
         DEPUIL = $(BINDIR)/uil

   XMEXTRA_LIBS =

DEPXMLIB = $(USRLIBDIR)/libXm.a
XMLIB = 			 -lXm

DEPMRESOURCELIB = $(USRLIBDIR)/libMrm.a
MRESOURCELIB = 			 -lMrm

DEPUILLIB = $(USRLIBDIR)/libUil.a
UILLIB = 			 -lUil

DEPTESTCOMLIB = $(USRLIBDIR)/libCommon.a
TESTCOMLIB = 			 -lCommon

  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   *.Dat

    STD_DEFINES = 		-D__386BSD__

        DEPLIBS = $(DEPXMLIB) $(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 $

#   $RCSfile: Motif.rules,v $ $Revision: 1.5.17.8 $ $Date: 93/05/28 22:04:52 $

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

#
#	 Imakefile for asedit Release 1.2
#	 (C) A. Stochniol, 1993
#	 21.09.1993
#

#   -----------------
#   *** 1. SELECT ***
#
#   which Motif, Xt Toolkit and X library are you using ?
#   Usually you do NOT change the 3 definitions that follows unless you use
#   extra shared libraries (in which case you would probably use "-lXm_s -lPW",
#   "-lXt_s", "-lX11_s" respectively; this is the case for SGI).
#   Note that on some systems you might not need PW library at all (see below).
#
#   If you use libraries located in non-standard tree you might define
#   my LOCAL_X_LIBDIR variable instead of specifiying the full pathname for
#   each library (see the SUN example).
#

LOCAL_X_LIBDIR =

XMLIB    = -lXm
XTOOLLIB = -lXt
XLIB     = -lX11

#  Note about libPW.a: it is the Programmers Workbench library, which is
#    an ATT product not included in Berkeley systems. Hence it is not found
#    in SunOS or Ultrix. The library is needed because of regex(3) routines
#    i.e. regcmp & regex, for systems that do not have them in the libc.a.
#    If you don't have libPW.a (SunOS, Ultrix) simply don't specify "-lPW".
#
#
#  On some systems the libaries and include files might be located
#  in quite strange places. Below there are lines that I've used to install
#  asedit on different systems around my place (you might find it helpful).
#
#  DEC settings (to use uncomment the lines below)
#  XMLIB = /usr/lib/DXM/lib/Xm/libXm.a
#  XTOOLLIB = /usr/lib/DXM/lib/Xt/libXt.a
#  STD_INCLUDES = -I/usr/lib/DXM/lib -I/usr/lib/DXM/lib/Xt
#
#  SUN settings (to use uncomment the lines below)
#  LOCAL_X_LIBDIR =  -L/usr/local/lib
#  STD_INCLUDES = -I/usr/local/include
#
#  for SUN with X11R4 and Motif 1.1.4 I had to declare additionally
#      Xext and m (mathematical) libraries ...
#      XLIB     = -lXext -lX11 -lm

#
#  On most SUN's there are only non-ANSI C compilers available so you might
#  have to uncomment No_proto_def and No_stdarg_def variables (see later
#  in this file).

#   XMULIB library is only needed for X11R4 and X11R5 versions !!
#   (for X11R3 the following line that defines XMULIB should be commented
#   or defined as an empty string !)

XMULIB = -lXmu

SYS_LIBRARIES =  $(LOCAL_X_LIBDIR) $(XMLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)

#   -----------------------------------------------------
#   *** 2. DEFINE *** backup file suffix (default: .bak )
#   (it might be overriden by the user using asedit backupFileSuffix X resource)

Backup_file_suffix = .bak

#   ----------------------------------
#   *** 3. WHERE *** to install asedit
#
#   If you install contributed X applications in their standard place you do
#   NOT have to change the default definitions for BINDIR, XAPPLOADDIR, MANDIR
#   and LIBDIR.  But if you would like to install asedit somewhere else
#   you have to uncomment the lines that defines those names and explicitly

#   are the most often used X-Window defaults obtained after applying standard
#   X11 templates, i.e. they might be different on your system).
#   BINDIR 		- defines where the executables are installed
#   XAPPLOADDIR 	- defines where the app defaults files are installed
#   MANDIR      	- defines where the man pages are installed (standard suffix assumed)
#   LIBDIR      	- defines where the help file(s), etc. are installed
#

#   BINDIR  = /usr/bin/X11
#   XAPPLOADDIR = /usr/lib/X11/app-defaults
#   MANDIR = /usr/man/mann
#   LIBDIR = /usr/lib/X11

#
#   Special note for IBM RS/6000
#   If you would like to install asedit in the standard IBM X examples tree
#   you might do that easily just specifying appropriately the TOP variable.
#   If that's the case uncommenting the following "TOP=..." line should do.
#
   TOP=/usr/lpp/X11/Xamples

#   -------------------------------------------------------------------
#   *** 4. SPECIFY **** where do you want the help file to be installed
#   (it might be overriden by the user using asedit helpDir X resource)

Help_dir = ${LIBDIR}

#
#   --------------------------------------------------------------------
#   *** 5. TUNE **** specifically to your system if something goes wrong
#
#

#   it is needed (because of the fallbacks), simply uncomment the STRING_INC
#   line below (this is the case for SGI).
#
#   STRING_INC  = -Wf,-XNl4096

#   If you find that prototypes are not supported on your system
#   (non ANSI C, etc.) then uncomment the next line
#   No_proto_def = -D_NO_PROTO

#
#   If you find that <stdarg.h> does not exist on your system  then
#   uncomment the next line  (at that case you probably would have to uncomment
#   the line with No_proto_def above !)
#   No_stdarg_def = -D_NO_STDARG

#
#   If you find that MAXPATHLEN is not defined then uncomment the next line
#   No_maxpathlen_def = -DMAXPATHLEN=1024

#   I have used a focusCallback to set focus to a text widget inside  prompt
#   dialogs (& inside other dialogs) when the dialog is first managed.
#   UNFORTUNATELY this trick corrupts the dialog callback list on ONE computer.
#   It is a DEC running X11R4 and Motif 1.1.  So I think it might be a bug.
#   The corruption happens when you manage a dialog (for example Search/Go to line..)
#   & set a focus to the dialog, next take away the focus & next set a focus
#   to the dialog (using for example a pointer). At that stage the program
#   blows up ! I've tried different ways to get around that problem  and preserve
#   setting the focus to the text widget but I've failed. So if you get such
#   a problem the only work around is to define XFOCUS_BUG and rebuild asedit
#   (but you won't get the text widget focused when you first manage dialogs!
#    Define xfocus_bug as -DXFOCUS_BUG below).
#   xfocus_bug  = -DXFOCUS_BUG
#

      DEFINES = $(No_proto_def) $(No_stdarg_def) $(No_maxpathlen_def) $(xfocus_bug)

#   If you are still stuck to X-Windows Release 3 (X11R3)  you should define
#   AD_FILE as X11R3  (actually, if you are, you should really upgrade
#   from that ancient version  :-)  )

AD_FILE = Asedit

#
#    END of customisation part of the Imakefile
#

      SRCS = asedit.c as_menuh.c file_rw.c clipbrd.c 	     write_lw.c find_pos.c asutil.c undo.c ht_help.c  mk_asdat.c	     file_dlg.c file_act.c srch_dlg.c srch_act.c editarea.c

      OBJS = asedit.o as_menuh.o file_rw.o clipbrd.o 	     write_lw.o find_pos.o asutil.o undo.o ht_help.o  mk_asdat.o	     file_dlg.o file_act.o srch_dlg.o srch_act.o editarea.o

#   asedit dependencies .....

asedit.o  :	asedit.h clipbrd.h asedit_icon Asedit.ad.h

as_menuh.o:	asedit.h
asutil.o:	asedit.h  asedit_icon
editarea.o:	asedit.h
file_act.o:	asedit.h
file_dlg.o:	asedit.h warning.xbm question.xbm
file_rw.o:	asedit.h
ht_help.o:	asedit.h
mk_asdat.o:	asedit.h
srch_act.o:	asedit.h
srch_dlg.o:	asedit.h
undo.o:		asedit.h

clipbrd.o :	clipbrd.h

#
#   A rule to convert the X resource file into C declarations,
#   directories (bear in mind that what is currently written for inclusion as fallback resources.
#   The following rule ensures that asedit always has the latest version of its
#   resources compiled into the executable.
#

Asedit.ad.h:    ${AD_FILE}.ad Imakefile
	./ad2c.script ${AD_FILE}.ad > Asedit.ad.h

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

asedit.o:	Imakefile
	$(RM) $@
	$(CC) -c $(CFLAGS) ${STRING_INC} $*.c

ht_help.o:	Imakefile
	$(RM) $@
	$(CC) -c $(CFLAGS) -DHELPDIR=\"${Help_dir}\" $*.c

file_rw.o:	Imakefile
	$(RM) $@
	$(CC) -c $(CFLAGS) -DBACKUP_FILE_SUFFIX=\"${Backup_file_suffix}\" $*.c

 PROGRAM = asedit

all:: asedit

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

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

install.man:: asedit.man
	@if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
	$(RM) $(DESTDIR)$(MANDIR)/asedit.0
	cat asedit.man | $(NEQN) | $(TBL) | $(NROFF) -man >/tmp/asedit.man
	$(INSTALL) -c $(INSTMANFLAGS) /tmp/asedit.man $(DESTDIR)$(MANDIR)/asedit.0
	$(RM) /tmp/asedit.man

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

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

clean::
	$(RM) $(PROGRAM)

all:: asedit

#
#   Install the application default file (version related!)
#

install:: $(AD_FILE).ad
	@if [ -d $(DESTDIR)$(XAPPLOADDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(XAPPLOADDIR)); fi
	$(INSTALL) -c $(INSTAPPFLAGS) $(AD_FILE).ad $(DESTDIR)$(XAPPLOADDIR)/Asedit

#   Install the help file

install:: asedit.hlp
	$(INSTALL) -c $(INSTDATFLAGS) asedit.hlp $(DESTDIR)${Help_dir}

#   That's it !

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

