# 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 </tmp/IIf.a26474>
# $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).
#

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

# platform:  $XConsortium: sun.cf,v 1.38 89/12/23 16:10:10 jim Exp $
# operating system:  SunOS 4.1.1

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

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

            SHELL = /bin/sh

              TOP = .
      CURRENT_DIR = .

               AR = ar cq
  BOOTSTRAPCFLAGS =
               CC = cc

         COMPRESS = compress
              CPP = /lib/cpp $(STD_CPP_DEFINES)
    PREPROCESSCMD = cc -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
     STD_INCLUDES =
  STD_CPP_DEFINES =
      STD_DEFINES =
 EXTRA_LOAD_FLAGS =
  EXTRA_LIBRARIES =
             TAGS = ctags

    SHAREDCODEDEF = -DSHAREDCODE
         SHLIBDEF = -DSUNSHLIB

    PROTO_DEFINES =

     INSTPGMFLAGS =

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

          DESTDIR =

     TOP_INCLUDES = -I$(INCROOT)

      CDEBUGFLAGS = -O
        CCOPTIONS =
      COMPATFLAGS =

      ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
   LDCOMBINEFLAGS = -X -r

        MACROFILE = sun.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.63 89/12/18 16:46:44 jim Exp $

###########################################################################
# X Window System make variables; this need to be coordinated with rules
# $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $

          PATHSEP = /
        USRLIBDIR = $(DESTDIR)/usr/lib
           BINDIR = $(DESTDIR)/usr/bin/X11
          INCROOT = $(DESTDIR)/usr/include
     BUILDINCROOT = $(TOP)
      BUILDINCDIR = $(BUILDINCROOT)/X11
      BUILDINCTOP = ..
           INCDIR = $(INCROOT)/X11
           ADMDIR = $(DESTDIR)/usr/adm
           LIBDIR = $(USRLIBDIR)/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/man
    MANSOURCEPATH = $(MANPATH)/man
           MANDIR = $(MANSOURCEPATH)n
        LIBMANDIR = $(MANSOURCEPATH)3
      XAPPLOADDIR = $(LIBDIR)/app-defaults

        SOXLIBREV = 4.2
          SOXTREV = 4.0
         SOXAWREV = 4.0
        SOOLDXREV = 4.0
         SOXMUREV = 4.0
        SOXEXTREV = 4.0

       FONTCFLAGS = -t

     INSTAPPFLAGS = $(INSTDATFLAGS)

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

        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

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

          DEPXLIB = $(DEPEXTENSIONLIB)
             XLIB = $(EXTENSIONLIB) -lX11

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

        DEPXMULIB =
           XMULIB = -lXmu

       DEPOLDXLIB =
          OLDXLIB = -loldX

      DEPXTOOLLIB =
         XTOOLLIB = -lXt

        DEPXAWLIB =
           XAWLIB = -lXaw

 LINTEXTENSIONLIB = $(USRLIBDIR)/llib-lXext.ln
         LINTXLIB = $(USRLIBDIR)/llib-lX11.ln
          LINTXMU = $(USRLIBDIR)/llib-lXmu.ln
        LINTXTOOL = $(USRLIBDIR)/llib-lXt.ln
          LINTXAW = $(USRLIBDIR)/llib-lXaw.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.67 89/12/18 17:14:15 jim Exp $

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

# X Desktop Manager version 2.4
# =============================
#
# XDTM has four operating system dependent flags which should be added
# to XDTMOPTIONS:
#
# HAS_STRSTR        This flag should be enabled on systems which
#                   have the strstr(3) string function. If it is
#                   not enabled xdtm will supply a replacement.
#
# USE_CWD           If your system has the getcwd(3) library routine
#                   then define this flag, otherwise the getwd(3)
#                   will be used.
#
# TRUE_SYSV         If your system does NOT have any BSD extensions
#                   like sockets and symbolic links then define
#                   this flag.
#
# ECHO_N            If the echo(1) program on your machine uses the
#                   '-n' flag to specify that a newline should NOT
#                   be printed after the string then define this
#                   flag. If your echo(1) program supports the '\c'
#                   notation then do NOT define this flag.
#                   If your not sure enter '/bin/echo -n hello' if
#                   the '-n' is printed then do not define this flag.
#
# Additionaly I have found that some linkers demand a space between the
# -L flag and the library name (eg. HP-UX) if your system also has
# this problem uncomment the 'insane_linker' define below.
#
# If make fails with a syntax error try expanding any tabs in this
# file to spaces. (use the expand(1) utility)
#

    PROTO_DEFINES =
#    PROTO_DEFINES = -DNeedFunctionPrototypes -DNeedWidePrototypes

#     XDTMOPTIONS = -DHAS_STRSTR -DECHO_N -L/usr/openwin/lib
#     XDTMOPTIONS = -DHAS_STRSTR -DECHO_N -L/usr/local/lib/X11R5
     XDTMOPTIONS = -DHAS_STRSTR -DECHO_N

# Put the name of your C compiler in here, I find gcc best but xdtm
# will now compile with non-ANSI (K&R) compilers (usually cc).
#
# If using the A/UX cc add '-B /usr/lib/big/ to use the compiler
# with the large symbol table.

              CC = cc -I. -I$(PWD)  $(XDTMOPTIONS) -DSYSTEM_HELP=\"$(LIBDIR)/xdtm/help\" -DSYSTEM_XDTMRC=\"$(LIBDIR)/xdtm/xdtmrc\" -DSYSTEM_HELP_PERM=\"$(LIBDIR)/xdtm/perm.help\"
#              CC = cc -I. -I$(PWD) -I/usr/local/share/include/X11R5 $(XDTMOPTIONS) -DSYSTEM_HELP=\"$(LIBDIR)/xdtm/help\" -DSYSTEM_XDTMRC=\"$(LIBDIR)/xdtm/xdtmrc\" -DSYSTEM_HELP_PERM=\"$(LIBDIR)/xdtm/perm.help\"

     CDEBUGFLAGS = -g

            SRCS = main.c menus.c appman.c dirman.c \
                   fileman.c parse.c Ext/termwindow.c Ext/iconman.c \
                   Xedw/XedwList.c Xedw/XedwForm.c lexical.l parser.y \
                   scroll_hack.c mystrstr.c buttons.c \
                   display.c listoption.c map.c newfile.c \
                   quit.c doubleclick.c dialogs.c

            OBJS = appman.o \
                   buttons.o \
                   dialogs.o \
                   display.o \
                   dirman.o \
                   doubleclick.o \
                   fileman.o \
                   listoption.o \
                   map.o \
                   main.o \
                   menus.o \
                   mystrstr.o \
                   newfile.o \
                   parse.o \
                   parser.o \
                   lexical.o \
                   quit.o \
                   scroll_hack.o

         DEPLIBS = Ext Xedw regexp

 LOCAL_LIBRARIES = -L Ext -lExt -LXedw -Lregexp -lregexp -lXedw $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) -lm
# LOCAL_LIBRARIES = -L Ext -lExt -LXedw -Lregexp -lregexp -lXedw -L/usr/local/lib/X11R5 $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) -lm

   SYS_LIBRARIES = -ll
             LEX = lex
          LFLAGS = -t

            YACC = yacc
          YFLAGS = -d

         SUBDIRS = Ext Xedw regexp

# Make xdtm
all:: Message xdtm

 PROGRAM = xdtm

all:: xdtm

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

saber_xdtm:
	#load $(ALLDEFINES) $(SRCS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

osaber_xdtm:
	#load $(ALLDEFINES) $(OBJS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

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

install.man:: xdtm.man
	$(INSTALL) -c $(INSTMANFLAGS) xdtm.man $(MANDIR)/xdtm.n

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

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

clean::
	$(RM) $(PROGRAM)

# Make the lexical analyzer as a seperate program for debugging.

lexical:  lexical.c
	$(RM) $@
	$(CC) -o $@  lexical.c $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) -DDEBUG_LEX $(EXTRA_LOAD_FLAGS)

clean::
	$(RM) lexical

# Make the parser as a seperate program for debugging

parser:  lexical.c parser.c
	$(RM) $@
	$(CC) -o $@  lexical.c parser.c $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) -DDEBUG_YACC $(EXTRA_LOAD_FLAGS)

clean::
	$(RM) parser

Ext::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in  Ext ;\
	do \
	(cd $$i ; echo "making" Ext "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) $(MFLAGS) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' all); \
	done

Xedw::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in  Xedw ;\
	do \
	(cd $$i ; echo "making" Xedw "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) $(MFLAGS) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' all); \
	done

regexp::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in  regexp ;\
	do \
	(cd $$i ; echo "making" regexp "in $(CURRENT_DIR)/$$i..."; \
	$(MAKE) $(MFLAGS) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' all); \
	done

# Insert the icon directory into the system xdtmrc, keep the original
# in xdtmrc.orig, which is moved back to xdtmrc after the modified
# xdtmrc has been installed.

install::
	$(MV) xdtmrc xdtmrc.orig
	sed -e 's^\"{icon dir}\"^\"$(LIBDIR)/xdtm/icons\"^' \
	   xdtmrc.orig > xdtmrc
	sed -e 's^iconfile^$(LIBDIR)/xdtm/new_xdtm.xbm^' Xdtm.ad.tmpl > Xdtm.ad

# Install the xdtm execute script file, used to prevent xterms closing
# when the inferier process dies.

install:: xdtm.sh
	$(INSTALL) -c $(INSTPGMFLAGS)   xdtm.sh  $(BINDIR)

# Install the helpfile, system xdtmrc, icon bitmaps and the default
# application defaults.

install::
	$(MKDIRHIER)  $(LIBDIR)/xdtm

install:: help
	$(INSTALL) -c $(INSTDATFLAGS) help  $(LIBDIR)/xdtm

install:: perm.help
	$(INSTALL) -c $(INSTDATFLAGS) perm.help  $(LIBDIR)/xdtm

install:: xdtmrc
	$(INSTALL) -c $(INSTDATFLAGS) xdtmrc  $(LIBDIR)/xdtm

install:: bitmaps/new_xdtm.xbm
	$(INSTALL) -c $(INSTDATFLAGS) bitmaps/new_xdtm.xbm  $(LIBDIR)/xdtm

install::
	$(MKDIRHIER)  $(LIBDIR)/xdtm/icons

install:: Xdtm.ad
	$(INSTALL) -c $(INSTAPPFLAGS) Xdtm.ad $(XAPPLOADDIR)/Xdtm

install::
	$(CP) icons$(PATHSEP)*$(PATHSEP)*.icon $(LIBDIR)/xdtm/icons
	$(RM) xdtmrc
	$(MV) xdtmrc.orig xdtmrc

# Make the emacs TAGS file

etags:
	etags -t *.h $(SRCS)

clean::
	$(RM) lexical.c parser.c parser.h xdtmrc.new *.tab.*

parser.c parser.h: parser.y
	$(YACC) $(YFLAGS) parser.y
	$(MV) y.tab.c parser.c
	$(MV) y.tab.h parser.h

lexical.c: parser.h lexical.l
	$(LEX) $(LFLAGS) lexical.l > lexical.c

lexical.o: parser.h

tar:
	(make clean;tar cf - .  | compress > ../xdtm-2.4.tar.Z)

shar:
	@echo "This will only work if you have shar 3.49 or later"
	@echo "I have named this version of shar 'shar3.49'"
	(make clean;shar3.49 -a -n xdtm -c -F -o ../xdtm -L 60 ./README .)

Message:
	@( \
	echo "********************************************************"; \
	echo "*        Compiling the X Desktop Manager V2.4          *"; \
	echo "*                                                      *"; \
	echo "*   Have you configured the master Imakefile in this   *"; \
	echo "*            directory for this machine?               *"; \
	echo "*                                                      *"; \
	echo "*   Have you made the Makefiles in Xedw and regexp?    *"; \
	echo "*           if not type 'make Makefiles'               *"; \
	echo "*                                                      *"; \
	echo "* Available targets: xdtm          (default)           *"; \
	echo "*                    install     - install xdtm        *"; \
	echo "*                    install.man - install man page    *"; \
	echo "*                    etags       - Make emacs tags     *"; \
	echo "*                    clean       - Clean directory     *"; \
	echo "*                    tar         - Archive xdtm        *"; \
	echo "*                    shar        - Archive xdtm        *"; \
	echo "********************************************************"; \
	echo ""; \
	)

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

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

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

###########################################################################
# 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)' 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 \
	echo "	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \
	$(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 \
	echo "	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \
	$(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 \
	echo "	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \
	$(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 \
	echo "	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \
	$(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

