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

# site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $

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

        VERSION = 		0.0.0.0
            UIL = uil
         DEVICE = Device
           VERS = vers

        PROTLIB =

    MWM_DEFINES = -DNO_REGEX -DPASS_DISPLAY_AND_SCREEN
   INSTPGMFLAGS = -m 0755 -v $(VERSION) -g csc
INSTSCRIPTFLAGS = -m 0755 -g csc
       OPTFLAGS = 	-O
    LINKOPTIONS = LinkOptions
   ILINKOPTIONS = ILinkOptions
     STRIPFLAGS = -r -x
    SECUREFLAGS =
    ALLINCLUDES = $(STD_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES)
         CFLAGS = $(OPTFLAGS) $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
      LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LINKOPTIONS)
     EXAMPLEDIR = $(LIBDIR)/examples
       UNSUPDIR = UnSupDir
  INFOMANSUFFIX = 7
     INFOMANDIR = $(MANSOURCEPATH)$(INFOMANSUFFIX)

       WCLIBSRC = $(LIBSRC)/Wc
       DEPWCLIB =  $(USRLIBDIR)/libWc.a
          WCLIB =   -lWc
      LINTWCLIB =  $(LINTLIBDIR)/llib-lWc.ln

       XPLIBSRC = $(LIBSRC)/Xp
       DEPXPLIB =  $(USRLIBDIR)/libXp.a
          XPLIB =   -lXp
      LINTXPLIB =  $(LINTLIBDIR)/llib-lXp.ln

      XMPLIBSRC = $(LIBSRC)/Xmp
      DEPXMPLIB =  $(USRLIBDIR)/libXmp.a
         XMPLIB =   -lXmp
     LINTXMPLIB =  $(LINTLIBDIR)/llib-lXmp.ln

   MRESOURCESRC = $(LIBSRC)/Mrm
DEPMRESOURCELIB =  $(USRLIBDIR)/libMrm.a
   MRESOURCELIB =   -lMrm
LINTMRESOURCELIB=  $(LINTLIBDIR)/llib-lMrm.ln

       XMLIBSRC = $(LIBSRC)/Xm
       DEPXMLIB =  $(USRLIBDIR)/libXm.a
          XMLIB =   -lXm
      LINTXMLIB =  $(LINTLIBDIR)/llib-lXm.ln

      UILLIBSRC = $(LIBSRC)/uil
      DEPUILLIB =  $(USRLIBDIR)/libUil.a
         UILLIB =   -lUil
     LINTUILLIB =  $(LINTLIBDIR)/llib-lUil.ln

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

# 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 =
# -fstrength-reduce
               CC = gcc -fpcc-struct-return -funsigned-char
               AS = as

         COMPRESS = compress
              CPP = /lib/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
     STD_INCLUDES =
  STD_CPP_DEFINES =
      STD_DEFINES =
 EXTRA_LOAD_FLAGS =
  EXTRA_LIBRARIES =
             TAGS = ctags

    PROTO_DEFINES =

     INSTPGMFLAGS =

     INSTBINFLAGS = -m 0755 -v $(VERSION) -g csc
     INSTUIDFLAGS = -m 4755 -v $(VERSION) -g csc
     INSTLIBFLAGS = -m 0664 -v $(VERSION) -g csc
     INSTINCFLAGS = -m 0444 -g csc
     INSTMANFLAGS = -m 0444 -g csc
     INSTDATFLAGS = -m 0444 -g csc
    INSTKMEMFLAGS = -g kmem -m 2755 -v $(VERSION)

#      CDEBUGFLAGS = -g -O
      CDEBUGFLAGS = -g
        CCOPTIONS = 

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

           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS)

   LDCOMBINEFLAGS = -X -r
      DEPENDFLAGS =

        MACROFILE = convex.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
# $XConsortium: Project.tmpl,v 1.138 91/09/10 09:02:12 rws Exp $

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

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

          FONTDIR = $(LIBDIR)/fonts
         XINITDIR = $(LIBDIR)/xinit
           XDMDIR = $(LIBDIR)/xdm
           TWMDIR = $(LIBDIR)/twm
          MANPATH = /usr/X11/manX
    MANSOURCEPATH = $(MANPATH)/man
        MANSUFFIX = 1
     LIBMANSUFFIX = 3
           MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
        LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
           NLSDIR = $(LIBDIR)/nls
        PEXAPIDIR = $(LIBDIR)/PEX
      XAPPLOADDIR = $(LIBDIR)/app-defaults
       FONTCFLAGS = -t

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

        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
        LINTPHIGS =  $(LINTLIBDIR)/llib-lphigs.ln

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

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

# -------------------------------------------------------------------------
# Imake rules for building libraries, programs, scripts, and data files
# rules:  $XConsortium: Imake.rules,v 1.124 91/11/17 16:57:39 rws Exp $

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

#
# Imakefile for xarchie : X11 Browser interface to Archie
#
# George Ferguson, ferguson@cs.rochester.edu, 12 Sep 1991.
# Version 2.0: 23 Apr 1993.
#
# Unless otherwise indicated, you have to delete both `' and the
# leading `#' sign to uncomment something. To comment something out,
# you need to add both the `' (for cpp via imake) and `#' (for
# make). Just for completeness, if you're reading this in a Makefile,
# there will be some empty `' things above -- see the Imakefile.
#

# Where do you want this stuff? Uncomment and adjust these to change the
# destinations of "make install" and "make install.man" if the defaults
# are not satisfactory.
#BINDIR = bin
#MANDIR = man/man1
# Use this for R5
#MANSUFFIX = 1
# Use this for R4 (leave one # sign since these are cpp commands for imake)
##undef 1
##define 1                1

# Where is the app-defaults to C converter?
# Only needed if you change the app-defaults file Xarchie.ad and want the
# changes compiled into the program. If you don't have ad2c you should
# remove the extra clean target for Xarchie.ad.h below. If you lose
# Xarchie.ad.h and can't remake it, create it to be an empty file. Of
# course then you'll have to be able to find the resource file at run time.
# If your ad2c came from this xarchie distribution, then use the following
# target, otherwise change it to reflect where you put ad2c.
AD2C = Ad2c/ad2c.script

# How excited are you about debugging? This can be -g, -O, or nothing.
#CDEBUGFLAGS = -g

# If the help strings make your executable too large, disable the
# online help by commenting out the following lines.
HELP = -DHELP
HELPC = help.c
HELPO = help.o

# To enable Prospero tracing (controlled by the -debug option),
# uncomment this.
#PDEBUG = -DDEBUG

# Does your system have re_comp() and re_exec(), or regcmp() and regex()
# [in the case of A/UX]? If not, adjust the following definitions.

REGEXC = regex.c
REGEXO = regex.o

# If you don't have <sys/param.h> to define MAXPATHLEN, then adjust
# the following definition.

# If you don't have strcasecmp() and strncasecmp(), adjust the
# following definitions:

# If your system does not use DNS hostname lookup by default, you
# need to uncomment the following definition. This will be apparent
# if the program builds but gives the error: "Can't resolve hostname".
# You can test this by building and running resolv.c.

# You can enable the use of a FileChooser widget for dialogs that
# require a filename (Save, Load, Write, etc). If your system has
# trouble with the subclassing of widgets for the FileChooser
# class or with the device-independent directory routines in FWF/Dir,
# you should remove the #define of UseFileChooser.
# NOTE: If you are reading this in the Makefile and nothing follows,
#       then use of the FileChooser widget was disabled in the Imakefile.

FCHOOSER_DEF = -DFILECHOOSER
FCHOOSER_DIR = FWF/FileChooser
FCHOOSER_INC = -I$(FCHOOSER_DIR)
FCHOOSER_LIB = -L$(FCHOOSER_DIR) -lFChooser
FCHOOSER_DEP = $(FCHOOSER_DIR)/libFChooser.a
DIR_DIR =     FWF/Dir
DIR_INC =     -I$(DIR_DIR)
DIR_LIB =     -L$(DIR_DIR) -lDir
DIR_DEP =     $(DIR_DIR)/libDir.a
FCHOOSER_DIRS = $(FCHOOSER_DIR) $(DIR_DIR)
FCHOOSER_INCS = $(FCHOOSER_INC) $(DIR_INC)
FCHOOSER_LIBS = $(FCHOOSER_LIB) $(DIR_LIB)
FCHOOSER_DEPS = $(FCHOOSER_DEP) $(DIR_DEP)

# You want to use the MultiList widget if possible. If you have problems
# with the subclassing in your version of X, you can use the regular
# Athena List widget by removing the #define of UseMultiList. Of course
# then you will not be able to make multiple selections.
# NOTE: If you are reading this in the Makefile and nothing follows,
#       then use of the MultiList widget was disabled in the Imakefile.

MULTILIST_DEF =	-DMULTILIST
MULTILIST_DIR =	FWF/MultiList
MULTILIST_INC =	-I$(MULTILIST_DIR)
MULTILIST_LIB =	-L$(MULTILIST_DIR) -lMultiList
MULTILIST_DEP =	$(MULTILIST_DIR)/libMultiList.a

#########################################################################
# Nothing to change below here...

PSRCS = atalloc.c dirsend.c get_pauth.c get_vdir.c perrmesg.c ptalloc.c \
	$(REGEXC) stcopy.c support.c vl_comp.c vlalloc.c
CSRCS = query.c browser.c db.c selection.c status.c saveload.c \
	inet_ntoa.c hostname.c username.c \
	weight.c ftp.c syserr.c $(STRCASECMPC)
XSRCS = xarchie.c display-x.c actions.c ftp-actions.c types.c \
	settings.c file-panel.c view-file.c about.c $(HELPC) \
	menu.c m-file.c m-query.c m-settings.c m-file-panel.c \
	fchooser.c popups.c alert.c confirm.c syntax.c xutil.c tilde.c

POBJS = atalloc.o dirsend.o get_pauth.o get_vdir.o perrmesg.o ptalloc.o \
	$(REGEXO) stcopy.o support.o vl_comp.o vlalloc.o
COBJS = query.o browser.o db.o selection.o status.o saveload.o \
	inet_ntoa.o hostname.o username.o \
	weight.o ftp.o syserr.o $(STRCASECMPO)
XOBJS = xarchie.o display-x.o actions.o ftp-actions.o types.o \
	settings.o file-panel.o view-file.o about.o $(HELPO) \
	menu.o m-file.o m-query.o m-settings.o m-file-panel.o \
	fchooser.o popups.o alert.o confirm.o syntax.o xutil.o tilde.o

SRCS = $(PSRCS) $(CSRCS) $(XSRCS)
OBJS = $(POBJS) $(COBJS) $(XOBJS)

DEFINES =	-DARCHIE -DXARCHIE -DX11 $(MAXPATHLEN) $(STRCASECMP) \
		$(HELP) $(FCHOOSER_DEF) $(MULTILIST_DEF)
INCLUDES =	-I. $(FCHOOSER_INCS) $(MULTILIST_INC)
DEPLIBS =	$(FCHOOSER_DEPS) $(MULTILIST_DEP) $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
LOCAL_LIBRARIES=$(FCHOOSER_LIBS) $(MULTILIST_LIB) $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) $(RESOLV_LIB)

SUBDIRS = $(FCHOOSER_DIRS) $(MULTILIST_DIR)

        PROGRAM = xarchie

all:: xarchie

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

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

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

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

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

clean::
	$(RM) $(PROGRAM)

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

$(POBJS):
	$(RM) $@
	$(CC) -c $(CFLAGS) $(PDEBUG) $*.c
	$(VERS) -v $(VERSION) $*.o

$(MULTILIST_DEP):
	(cd $(MULTILIST_DIR); $(MAKE) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'CC=$(CC)')

$(FCHOOSER_DEP):
	(cd $(FCHOOSER_DIR); $(MAKE) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'CC=$(CC)')
$(DIR_DEP):
	(cd $(DIR_DIR); $(MAKE) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'CC=$(CC)')

#
# Make C code for fallback resources from application resource file
#
Xarchie.ad.h: Xarchie.ad
	$(AD2C) Xarchie.ad >Xarchie.ad.h

#
# Make Help text from manpage
#
help-text1.h: xarchie.man
	./help-text1.sh >help-text1.h

help-text2.h: help-text1.h
	./help-text2.sh <help-text1.h >help-text2.h

#
# What to do when there's nothing to do...
#
World:
	make Makefile
	make Makefiles
	make depend
	make clean
	make

#
# For debugging with Saber
#
saberload:
	# setopt ansi
	# source xsaber.suppress
	# load -DNeedFunctionPrototypes $(ALLDEFINES) $(HELP) $(SRCS)
	# cd FWF/MultiList
	# make saber
	# cd ../Dir
	# make saber
	# cd ../FileChooser
	# make saber
	# cd ../..
	# load $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)

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

# -------------------------------------------------------------------------
# rules for building in SUBDIRS - do not edit

install::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
		(cd $$i ; echo "installing" "in $(CURRENT_DIR)/$$i..."; \
			$(MAKE) $(MFLAGS)  			'DESTDIR=$(DESTDIR)' 'VERSION=$(VERSION)' install); \
	done

install.man::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
		(cd $$i ; echo "installing man pages" "in $(CURRENT_DIR)/$$i..."; \
			$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install.man); \
	done

clean::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
		(cd $$i ; echo "cleaning" "in $(CURRENT_DIR)/$$i..."; \
			$(MAKE) $(MFLAGS) RM_CMD='$(RM_CMD)' clean); \
	done

tags::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
		(cd $$i ; echo "tagging" "in $(CURRENT_DIR)/$$i..."; \
			$(MAKE) $(MFLAGS) TAGS='$(TAGS)' tags); \
	done

Makefiles::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
		echo "making Makefiles in $(CURRENT_DIR)/$$i..."; \
		case "$$i" in \
		./?*/?*/?*/?*) newtop=../../../../ sub=subsubsubsub;; \
		./?*/?*/?*) newtop=../../../ sub=subsubsub;; \
		./?*/?*)    newtop=../../ sub=subsub;; \
		./?*)       newtop=../ sub=sub;; \
		*/?*/?*/?*)    newtop=../../../../ sub=subsubsubsub;; \
		*/?*/?*)    newtop=../../../ sub=subsubsub;; \
		*/?*)       newtop=../../ sub=subsub;; \
		*)	    newtop=../ sub=sub;; \
		esac; \
		case "$(TOP)" in \
		/?*) newtop=  upprefix=  ;; \
		*) upprefix=../ ;; \
		esac; \
		$(MAKE) $${sub}dirMakefiles UPPREFIX=$$upprefix NEWTOP=$$newtop \
		MAKEFILE_SUBDIR=$$i NEW_CURRENT_DIR=$(CURRENT_DIR)/$$i;\
	done

subdirMakefiles:
	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
	-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
	else exit 0; fi
	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
	$(MAKE) $(MFLAGS) Makefiles

subsubdirMakefiles:
	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
	-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
	else exit 0; fi
	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
	$(MAKE) $(MFLAGS) Makefiles

subsubsubdirMakefiles:
	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
	-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
	else exit 0; fi
	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
	$(MAKE) $(MFLAGS) Makefiles

subsubsubsubdirMakefiles:
	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
	-@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
	else exit 0; fi
	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
	$(MAKE) $(MFLAGS) Makefiles

includes::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
		(cd $$i ; echo including "in $(CURRENT_DIR)/$$i..."; \
			$(MAKE) $(MFLAGS)  includes); \
	done

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

