# Makefile generated by imake - do not edit!
# $XConsortium: imake.c /main/86 1995/08/01 14:42:23 gildea $

# ----------------------------------------------------------------------
# Makefile generated from "Imake.tmpl" and <Imakefile>
# $XConsortium: Imake.tmpl,v 1.227 95/05/05 17:42:07 kaleb Exp $
#

.SUFFIXES: .i

# $XConsortium: Imake.cf,v 1.19 95/01/05 19:24:32 kaleb Exp $

# -----------------------------------------------------------------------
# site-specific configuration parameters that need to come before
# the platform-specific parameters - edit site.def to change

# site:  $XConsortium: site.sample,v 1.9 94/04/08 17:02:06 rws Exp $

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

# platform:  $XConsortium: sgi.cf,v 1.43 94/06/03 21:38:45 matt Exp $

# operating system:				IRIX

        OPTIMIZER = -O2

           MANUSR = /usr/share/local

       CATMAN1DIR = $(MANUSR)/catman/u_man/cat1
       CATMAN3DIR = $(MANUSR)/catman/p_man/cat3
          MAN1DIR = $(MANUSR)/man/u_man/man1
          MAN3DIR = $(MANUSR)/man/p_man/man3

       MANPACKAGE = /X11

# $XConsortium: sgiLib.rules,v 1.8 93/09/11 17:59:30 rws Exp $

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

# site:  $XConsortium: site.sample,v 1.9 94/04/08 17:02:06 rws Exp $

# ---------------------------------------------------------------------
# Imake rules for building libraries, programs, scripts, and data files
# rules:  $XConsortium: Imake.rules,v 1.201 95/06/05 19:43:41 gildea Exp $

          PATHSEP = /
            SHELL = 	/bin/sh

              TOP = .
      CURRENT_DIR = .

            IMAKE = imake
           DEPEND = makedepend
        MKDIRHIER = mkdirhier
        CONFIGSRC = $(TOP)/config
         IMAKESRC = $(CONFIGSRC)/imake
        DEPENDSRC = $(CONFIGSRC)/makedepend
           IXXSRC = $(UNSUPPORTEDSRC)/programs/ixx
              IXX = ixx
         IXXFLAGS = -s BaseObject -m TypeObj -r RequestObj -p Xf
      IXXINCLUDES = -i '<X11/Fresco/enter-scope.h>'

          INCROOT = /usr/include
        USRLIBDIR = /usr/lib
         SHLIBDIR = /usr/lib
        ISALIBDIR = /usr/lib
       LINTLIBDIR = $(USRLIBDIR)/lint
          MANPATH = /usr/share/man
    MANSOURCEPATH = $(MANPATH)/man
           MANDIR = $(CATMAN1DIR)$(MANPACKAGE)
        LIBMANDIR = $(CATMAN3DIR)$(MANPACKAGE)
       FILEMANDIR = $(MANSOURCEPATH)$(FILEMANSUFFIX)

               AR = $(TOOLROOT)/usr/bin/ar cq
  BOOTSTRAPCFLAGS = $(OPTIMIZER)
               CC = $(TOOLROOT)/usr/bin/cc
               AS = $(TOOLROOT)/usr/bin/as

.SUFFIXES: .cxx

              CXX = CC
    CXXDEBUGFLAGS = $(OPTIMIZER)
 CXXEXTRA_DEFINES =
CXXEXTRA_INCLUDES =
  CXXIDL_INCLUDES = -I$(TOP)/include
   CXXSTD_DEFINES = -DSYSV -DSVR4 -nostdinc -I$(ROOT)/usr/include
       CXXOPTIONS =
      CXXINCLUDES = $(INCLUDES) $(TOP_INCLUDES) $(CXXEXTRA_INCLUDES) $(CXXIDL_INCLUDES)
       CXXDEFINES = $(CXXINCLUDES) $(CXXSTD_DEFINES) $(THREADS_CXXDEFINES) $(CXXEXTRA_DEFINES)
         CXXFLAGS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(THREADS_CXXFLAGS) $(CXXDEFINES)

         COMPRESS = compress
              CPP = /lib/cpp $(STD_CPP_DEFINES)
    PREPROCESSCMD = $(TOOLROOT)/usr/bin/cc -E $(STD_CPP_DEFINES)
          INSTALL = bsdinst
     INSTALLFLAGS = -c
               LD = $(TOOLROOT)/usr/bin/ld
              LEX = lex
           LEXLIB = -ll
             YACC = yacc
           CCYACC = yacc
             LINT = lint
      LINTLIBFLAG = -o
         LINTOPTS = -bh
               LN = ln -s

               MV = mv
               CP = cp

               RM = rm -f
        MANSUFFIX = 1
     LIBMANSUFFIX = 3
    FILEMANSUFFIX = 4
            TROFF = psroff -t
         MSMACROS = -ms
              TBL = tbl
              EQN = eqn

            DVIPS = dvips
            LATEX = latex

     STD_INCLUDES = -nostdinc -I$(ROOT)/usr/include
  STD_CPP_DEFINES = -DSYSV -DSVR4
      STD_DEFINES = -DSYSV -DSVR4
 EXTRA_LOAD_FLAGS =
  EXTRA_LDOPTIONS =
  EXTRA_LIBRARIES =
             TAGS = ctags

    SHAREDCODEDEF =
         SHLIBDEF =

    PROTO_DEFINES = -DFUNCPROTO=7 -DNARROWPROTO

     INSTPGMFLAGS =

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

      CDEBUGFLAGS = $(OPTIMIZER)
        CCOPTIONS = -xansi -32 -mips2  -Wf,-XNh2000

      ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(DEFINES)
           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(THREADS_CFLAGS) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES)
         LDPRELIB =
        LDPOSTLIB = -nostdlib -L$(ROOT)$(SHLIBDIR)/mips2 -L$(ROOT)$(SHLIBDIR)
        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)  $(EXTRA_LDOPTIONS) $(THREADS_LDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIB)
     CXXLDOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(EXTRA_LDOPTIONS) $(THREADS_CXXLDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIB)

           LDLIBS = $(LDPOSTLIB) $(THREADS_LIBS) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)

           CCLINK = $(CC)

          CXXLINK = $(CXX)

     LDSTRIPFLAGS = -x
   LDCOMBINEFLAGS = -r
      DEPENDFLAGS =

        MACROFILE = sgi.cf
           RM_CMD = $(RM)

    IMAKE_DEFINES =

         IRULESRC = $(CONFIGDIR)
        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)

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

# -----------------------------------------------------------------------
# X Window System Build Parameters and Rules
# $XConsortium: Project.tmpl,v 1.248 95/01/06 19:12:51 gildea Exp $

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

           BINDIR = /usr/bin/X11
     BUILDINCROOT = $(TOP)
      BUILDINCDIR = $(BUILDINCROOT)/X11
      BUILDINCTOP = ..
      BUILDLIBDIR = $(TOP)/usrlib
      BUILDLIBTOP = ..
           INCDIR = $(INCROOT)/X11
           ADMDIR = /usr/adm
           LIBDIR = $(USRLIBDIR)/X11

          FONTDIR = $(LIBDIR)/fonts
         XINITDIR = $(LIBDIR)/xinit
           XDMDIR = 			/var/X11/xdm
           TWMDIR = $(LIBDIR)/twm
           NLSDIR = $(LIBDIR)/nls
       XLOCALEDIR = $(LIBDIR)/locale
        PEXAPIDIR = $(LIBDIR)/PEX
      XAPPLOADDIR = $(LIBDIR)/app-defaults
       FONTCFLAGS = -t

     INSTAPPFLAGS = $(INSTDATFLAGS)

              RGB = rgb
            FONTC = bdftopcf
        MKFONTDIR = mkfontdir

       DOCUTILSRC = $(TOP)/doc/util
       XDOCMACROS = $(DOCUTILSRC)/macros.t
       XIDXMACROS = $(DOCUTILSRC)/indexmacros.t
       PROGRAMSRC = $(TOP)/programs
           LIBSRC = $(TOP)/lib
          FONTSRC = $(TOP)/fonts
       INCLUDESRC = $(TOP)/X11
        SERVERSRC = $(TOP)/programs/Xserver
       CONTRIBSRC = $(TOP)/../contrib
   UNSUPPORTEDSRC = $(TOP)/unsupported
           DOCSRC = $(TOP)/doc
           RGBSRC = $(TOP)/programs/rgb
      BDFTOPCFSRC = $(PROGRAMSRC)/bdftopcf
     MKFONTDIRSRC = $(PROGRAMSRC)/mkfontdir
    FONTSERVERSRC = $(PROGRAMSRC)/xfs
       FONTINCSRC = $(TOP)/include/fonts
        EXTINCSRC = $(TOP)/include/extensions
     TRANSCOMMSRC = $(LIBSRC)/xtrans
   TRANS_INCLUDES = -I$(TRANSCOMMSRC)

# Supporting dynamic shared object libraries for IRIX 5.0

# These defines mimic what is in /usr/include/make/commondefs
# (Should be in sync with Revision 1.99)

       DSOREGFILE = $$ROOT$(SHLIBDIR)/so_locations
      DSOSTARTOPT = -update_registry $(DSOREGFILE)
       DSONAMEOPT = -soname $@
       DSOVERSION = sgi1.0
    DSOVERSIONOPT = -set_version $(DSOVERSION)
        LDDSOOPTS = -32 -mips2 -shared -no_unresolved $(VLDDSOOPTS) \
  $(LLDDSOOPTS) $(GLDDSOOPTS)
       GLDDSOOPTS = -all $(DSOSTARTOPT) $(DSONAMEOPT) $(DSOVERSIONOPT)

          XLIBSRC = $(LIBSRC)/X11

SOXLIBREV = .1
DEPXONLYLIB =  $(ROOT)$(SHLIBDIR)/libX11.so$(SOXLIBREV)
XONLYLIB =  -lX11

LINTXONLY =  $(LINTLIBDIR)/llib-lX11.ln

         XLIBONLY = $(XONLYLIB)

      XEXTLIBSRC = $(LIBSRC)/Xext

SOXEXTREV =
DEPEXTENSIONLIB =  $(ROOT)$(SHLIBDIR)/libXext.so$(SOXEXTREV)
EXTENSIONLIB =  -lXext

LINTEXTENSION =  $(LINTLIBDIR)/llib-lXext.ln

LINTEXTENSIONLIB = $(LINTEXTENSION)
          DEPXLIB = $(DEPEXTENSIONLIB) $(DEPXONLYLIB)
             XLIB = $(EXTENSIONLIB) $(XONLYLIB)
         LINTXLIB = $(LINTXONLYLIB)

         XAUTHSRC = $(LIBSRC)/Xau

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

LINTXAUTH =  $(LINTLIBDIR)/llib-lXau.ln

      XDMCPLIBSRC = $(LIBSRC)/Xdmcp

DEPXDMCPLIB =  $(ROOT)$(SHLIBDIR)/libXdmcp.a
XDMCPLIB =  -lXdmcp

LINTXDMCP =  $(LINTLIBDIR)/llib-lXdmcp.ln

           XMUSRC = $(LIBSRC)/Xmu

SOXMUREV =
DEPXMULIB =  $(ROOT)$(SHLIBDIR)/libXmu.so$(SOXMUREV)
XMULIB =  -lXmu

LINTXMU =  $(LINTLIBDIR)/llib-lXmu.ln

       OLDXLIBSRC = $(LIBSRC)/oldX

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

LINTOLDX =  $(LINTLIBDIR)/llib-loldX.ln

       TOOLKITSRC = $(LIBSRC)/Xt

SOXTREV =
DEPXTOOLONLYLIB =  $(ROOT)$(SHLIBDIR)/libXt.so$(SOXTREV)
XTOOLONLYLIB =  -lXt

LINTXTOOLONLY =  $(LINTLIBDIR)/llib-lXt.ln

      DEPXTOOLLIB = $(DEPXTOOLONLYLIB) $(DEPSMLIB) $(DEPICELIB)
         XTOOLLIB = $(XTOOLONLYLIB) $(SMLIB) $(ICELIB)
     LINTXTOOLLIB = $(LINTXTOOLONLYLIB)

       AWIDGETSRC = $(LIBSRC)/Xaw

SOXAWREV = .2
DEPXAWLIB =  $(ROOT)$(SHLIBDIR)/libXaw.so$(SOXAWREV)
XAWLIB =  -lXaw

LINTXAW =  $(LINTLIBDIR)/llib-lXaw.ln

       XTFSRC = $(TOP)/workInProgress/Xtf

SOXTFREV = 0.7
DEPXTFLIB =  $(ROOT)$(SHLIBDIR)/libXtf.so$(SOXTFREV)
XTFLIB =  -lXtf

LINTXTF =  $(LINTLIBDIR)/llib-lXtf.ln

       FRESCOSRC = $(TOP)/workInProgress/Fresco

SOFRESCOREV = 0.7
DEPFRESCOLIB =  $(ROOT)$(SHLIBDIR)/libFresco.so$(SOFRESCOREV)
FRESCOLIB =  -lFresco

LINTFRESCO =  $(LINTLIBDIR)/llib-lFresco.ln

         XILIBSRC = $(LIBSRC)/Xi

SOXINPUTREV =
DEPXILIB =  $(ROOT)$(SHLIBDIR)/libXi.so$(SOXINPUTREV)
XILIB =  -lXi

LINTXI =  $(LINTLIBDIR)/llib-lXi.ln

      XTESTLIBSRC = $(LIBSRC)/Xtst

DEPXTESTLIB =  $(ROOT)$(SHLIBDIR)/libXtst.a
XTESTLIB =  -lXtst

LINTXTEST =  $(LINTLIBDIR)/llib-lXtst.ln

        PEXLIBSRC = $(LIBSRC)/PEX5

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

LINTPEX =  $(LINTLIBDIR)/llib-lPEX5.ln

        XNMBXLIBSRC = $(LIBSRC)/nmbx

SONMBXREV =
DEPXNMBXLIB =  $(ROOT)$(SHLIBDIR)/libXnmbx.so$(SONMBXREV)
XNMBXLIB =  -lXnmbx

LINTXNMBX =  $(LINTLIBDIR)/llib-lXnmbx.ln

        XTRAPLIBSRC = $(LIBSRC)/xtrap

DEPXTRAPLIB =  $(ROOT)$(SHLIBDIR)/libxtrap.a
XTRAPLIB =  -lxtrap

LINTXTRAP =  $(LINTLIBDIR)/llib-lxtrap.ln

        XIELIBSRC = $(LIBSRC)/XIE

DEPXIELIB =  $(ROOT)$(SHLIBDIR)/libXIE.a
XIELIB =  -lXIE

LINTXIE =  $(LINTLIBDIR)/llib-lXIE.ln

      PHIGSLIBSRC = $(LIBSRC)/PHIGS

DEPPHIGSLIB =  $(ROOT)$(SHLIBDIR)/libphigs.a
PHIGSLIB =  -lphigs

LINTPHIGS =  $(LINTLIBDIR)/llib-lphigs.ln

DEPXBSDLIB =  $(ROOT)$(SHLIBDIR)/libXbsd.a
XBSDLIB =  -lXbsd

LINTXBSD =  $(LINTLIBDIR)/llib-lXbsd.ln

           ICESRC = $(LIBSRC)/ICE

SOICEREV =
DEPICELIB =  $(ROOT)$(SHLIBDIR)/libICE.so$(SOICEREV)
ICELIB =  -lICE

LINTICE =  $(LINTLIBDIR)/llib-lICE.ln

            SMSRC = $(LIBSRC)/SM

SOSMREV =
DEPSMLIB =  $(ROOT)$(SHLIBDIR)/libSM.so$(SOSMREV)
SMLIB =  -lSM

LINTSM =  $(LINTLIBDIR)/llib-lSM.ln

         FSLIBSRC = $(LIBSRC)/FS

DEPFSLIB =  $(ROOT)$(SHLIBDIR)/libFS.a
FSLIB =  -lFS

LINTFS =  $(LINTLIBDIR)/llib-lFS.ln

         FONTLIBSRC = $(LIBSRC)/font

DEPFONTLIB =  $(ROOT)$(SHLIBDIR)/libfont.a
FONTLIB =  -lfont

LINTFONT =  $(LINTLIBDIR)/llib-lfont.ln

    XKBFILELIBSRC = $(LIBSRC)/xkbfile

DEPXKBFILELIB =  $(ROOT)$(SHLIBDIR)/libxkbfile.a
XKBFILELIB =  -lxkbfile

LINTXKBFILE =  $(LINTLIBDIR)/llib-lxkbfile.ln

       XKBCOMPCMD = xkbcomp

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

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

        CONFIGDIR = $(LIBDIR)/config

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

SUBDIRS = Imlib gdk_imlib config utils

#
#
#		IMLIB GENERIC TEMPLATES
#
#

IMLLIBNAME=Imlib
GDKIMLLIBNAME=gdk_imlib
IMLLIBREV=1.8

#	This allows us to add and subtract components from Imlib.def as we
#	change.

#	Grab the user definitions...

#	Imlib compilation configuration file
#	------------------------------------

#	Imlib installation directory
#	----------------------------
#	The root directory of where the installation will put include and lib.

IMLROOT = /usr

#	imlib custom configuration file
#	--------------------------------
#	Change the following to where you would like imrc and imlib.pal
#	to be loaded

CNFDIR = /usr/etc

#	Location of the NetPBM Utilities
#	--------------------------------
#	NetPBM is needed to convert from various formats to various other
#	formats that imlib understands.  This should be the location of
#	those files.
#
#	On SunOS and Solaris machines, Sun provides these binaries.

NETPBM_DIR = /usr/local/bin

#	Location of the IJG JPEG Utilities
#	----------------------------------
#	imlib needs convert and djpeg from the IJG.  This is the location
#	of those files.

CONVERT_DIR = /usr/local/bin
JPEG_PROG = /usr/local/bin/djpeg

#	JPEG Library Support
#	--------------------
#	imlib can use the IJG JPEG library (libjpeg) directly.  If you
#	wish to compile this in, set this to 1.

#   PNG Library Support
#   --------------------
#   imlib can use the PNG Consortium library (libpng) directly.
#	If you wish to compile this in, set this to 1.
#	[NOTE:  This library requires libz be availabel too.]

#   TIFF Library Support
#   --------------------
#   imlib can use the TIFF library (libtiff) directly.  If you
#   wish to compile this in, set this to 1.

#   GIF Library Support
#   -------------------
#   imlib can use the GIF library (libgif) directly.  If you
#   wish to compile this in, set this to 1.

#	Shared Library Support
#	----------------------
#	By default, a shared library will be built *if* your architecture
#	supports it.  If you wish to disable shared libraries, then either
#	comment this out or change 	1 to 0.

#	Extra Library Support
#	-------------------------
#	If you are a developer and wish to activate debugging, profiled,
#	or a lint'ed library, activate them here.  For most users,
#	the defaults are fine.

#	String Prototypes
#	-----------------
#	Most environments have either a strings.h or a string.h  or both...
#	and, a few have neither. Change the 1 to 0 if you do not have these
#	files in /usr/include (or wherever your include files are.)
#	For most people, the defaults will be fine.

#	Compiler Flags
#	--------------
#	By default, the Makefile will have whatever flags you need defined
#	according to what is in the Imake configuration files.  You
#	can make some custom changes here:

#   GNU C v2.xxx flags

IML_USR_FLAGS =

#	Include Files
#	-------------
#	If you have some extra include files that you would like to
#	have available, set this.

# IML_USR_INC = -I<your directory here>

#	Library Files
#	-------------
#	If you need an additional path to find libraries in,
#	set this.

# IML_USR_LIB = -L<your directory here>

# -------------------------------------------------------------------
# -------------------------------------------------------------------
#        DO NOT MODIFY ANYTHING BELOW THIS SECTION
# -------------------------------------------------------------------
# -------------------------------------------------------------------
#
#	Developers:  These defines are availble to you for your own
#			Imakefiles.

# Have imlib do JPEG rendering?

JPEGL_DEF = -DBUILTIN_JPEG
JPEGL_LIB = -ljpeg

# Have imlib do PNG rendering?

PNGL_DEF = -DBUILTIN_PNG
PNGL_LIB = -lpng -lz -lm

# Have imlib do TIFF rendering?

TIFFL_DEF = -DBUILTIN_TIFF
TIFFL_LIB = -ltiff

# Have imlib do GIF rendering?

GIFL_DEF = -DBUILTIN_GIF
GIFL_LIB = -lgif

GRFX_DEF = $(JPEGL_DEF) $(PNGL_DEF) $(TIFFL_DEF) $(GIFL_DEF)
GRFX_LIB = $(JPEGL_LIB) $(PNGL_LIB) $(TIFFL_LIB) $(GIFL_LIB)

#	For those weird times...

#   This is where we are putting stuff.
IMLLIBDIR=$(IMLROOT)/lib
IMLINCDIR=$(IMLROOT)/include

#   Definitions that are "world-wide"
IMRC_DEF = -DSYSTEM_IMRC=\"$(CNFDIR)/imrc\"
CONV_DEF = -DCONVERT_PATH=\"$(CONVERT_DIR)\"
PBM_DEF = -DNETPBM_PATH=\"$(NETPBM_DIR)\"
JPG_DEF = -DDJPEG_PROG=\"$(JPEG_PROG)\"

#   Force /usr/local/include, Just In Case.
ALL_INCLUDES = -I. $(IML_USR_INC) -I/usr/local/include

#   Force /usr/local/lib, Just In Case.
ALL_LOCAL_LDFLAGS = $(IML_USR_LIB) -L/usr/local/lib

#   This is to prototype strcmp() and other things...

STRH_DEF =-D_HAVE_STRING_H

#	Merge Defines
ADEF1 = $(IML_USR_FLAGS) $(IMRC_DEF)
ADEF2 = $(CONV_DEF) $(PBM_DEF) $(JPG_DEF) $(STRH_DEF)

ALL_DEFINES = $(ADEF1) $(ADEF2) $(ADEF3) $(GRFX_DEF)

#
#
#		IMLIB GENERIC TEMPLATES
#
#

all::

clean::

depend::

includes::
	@touch config.h

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

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

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

clean::
	$(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut   "#"*

distclean::
	$(RM) -rf shared shobj unshared debug lint profiled
	$(RM) -rf .depend mapfile Makefile
	$(RM) -rf config.status config.log

imakereport:
	@echo 		IRIX 0 	6

# -----------------------------------------------------------------------
# common rules for all Makefiles - do not edit

.c.i:
	  $(RM) $@
	$(CC) -E $(CFLAGS) $(_NOOP_) $*.c > $@

emptyrule::

clean::
	$(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut   "#"*

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

man_keywords::

# ----------------------------------------------------------------------
# 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)  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; \
	case '${MFLAGS}' in *n*) executeit="no";; esac; \
	for i in $(SUBDIRS) ;\
	do \
		case "$(CURRENT_DIR)" in \
		.) curdir= ;; \
		*) curdir=$(CURRENT_DIR)/ ;; \
		esac; \
		echo "making Makefiles in $$curdir$$i..."; \
		itmp="$$i" \
		curtmp="$(CURRENT_DIR)" \
		toptmp=""; \
		case "$$itmp" in \
		    ../?*) \
			while echo "$$itmp" | grep '^../' > /dev/null;\
			  do \
			     toptmp="/`basename $$curtmp`$$toptmp"; \
			     curtmp="`dirname $$curtmp`"; \
			     itmp="`echo $$itmp | sed 's;../;;'`"; \
			  done \
		    ;; \
		esac; \
		case "$$itmp" in \
		*/?*/?*/?*/?*)	newtop=../../../../..;; \
		*/?*/?*/?*)	newtop=../../../..;; \
		*/?*/?*)	newtop=../../..;; \
		*/?*)		newtop=../..;; \
		*)		newtop=..;; \
		esac; \
		newtop="$$newtop$$toptmp"; \
		case "$(TOP)" in \
		/?*) imaketop=$(TOP) \
		     imakeprefix= ;; \
		.) imaketop=$$newtop \
		   imakeprefix=$$newtop/ ;; \
		*) imaketop=$$newtop/$(TOP) \
		   imakeprefix=$$newtop/ ;; \
		esac; \
		cd $$i; \
		 $(RM) Makefile.bak; \
		if [ -f Makefile ]; then \
			echo "	$(MV) Makefile Makefile.bak"; \
			if [ "$$executeit" != "no" ]; then \
				$(MV) Makefile Makefile.bak; \
			fi; \
		fi; \
		if [ "$$executeit" != "no" ]; then \
			$(IMAKE_CMD) -DTOPDIR=$$imaketop -DCURDIR=$$curdir$$i; \
		fi; \
		$(MAKE) $(MFLAGS) Makefiles; \
		cd $$newtop; \
	done

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

