# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.37 88/10/08 20:08: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.
#

###########################################################################
# X Window System Makefile generated from template file Imake.tmpl
# $XConsortium: Imake.tmpl,v 1.91 88/10/23 22:37:10 jim Exp $
#
# Do not change the body of the imake template file.  Server-specific
# parameters may be set in the appropriate .macros file; site-specific
# parameters (but shared by all servers) may be set in site.def.  If you
# make any changes, you'll need to rebuild the makefiles using
# "make World" (at best) or "make Makefile; make Makefiles" (at least) in
# the top level directory.
#
# 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.macros to change

# platform:  $XConsortium: Sun.macros,v 1.52 88/10/23 11:00:55 jim Exp $
# operating system:   SunOS 3.4

BOOTSTRAPCFLAGS =
             AS = as
             CC = cc
            CPP = /lib/cpp
             LD = ld
           LINT = lint
        INSTALL = install
           TAGS = ctags
             RM = rm -f
             MV = mv
             LN = ln -s
         RANLIB = ranlib
RANLIBINSTFLAGS = -t
             AR = ar clq
             LS = ls
       LINTOPTS = -axz
    LINTLIBFLAG = -C
           MAKE = make
STD_CPP_DEFINES =
    STD_DEFINES =

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

# site:  $XConsortium: site.def,v 1.16 88/10/12 10:30:24 jim Exp $

###########################################################################
# definitions common to all Makefiles - do not edit

          SHELL =  /bin/sh

        DESTDIR =
      USRLIBDIR = $(DESTDIR)/usr/lib
         BINDIR = $(DESTDIR)/usr/bin/X11
         INCDIR = $(DESTDIR)/usr/include/X11
         ADMDIR = $(DESTDIR)/usr/adm
         LIBDIR = $(USRLIBDIR)/X11
     LINTLIBDIR = $(USRLIBDIR)/lint
        FONTDIR = $(LIBDIR)/fonts
       XINITDIR = $(LIBDIR)/xinit
         XDMDIR = $(LIBDIR)/xdm
         UWMDIR = $(LIBDIR)/uwm
         AWMDIR = $(LIBDIR)/awm
         TWMDIR = $(LIBDIR)/twm
        MANPATH = $(DESTDIR)/usr/man
  MANSOURCEPATH = $(MANPATH)/man
         MANDIR = $(MANSOURCEPATH)n
      LIBMANDIR = $(MANSOURCEPATH)3
    XAPPLOADDIR = $(LIBDIR)/app-defaults

   INSTBINFLAGS = -m 0755
   INSTUIDFLAGS = -m 4755
   INSTLIBFLAGS = -m 0664
   INSTINCFLAGS = -m 0444
   INSTMANFLAGS = -m 0444
   INSTAPPFLAGS = -m 0444
  INSTKMEMFLAGS = -m 4755
        FCFLAGS = -t
    CDEBUGFLAGS = -O

        PATHSEP = /
         DEPEND = $(DEPENDSRC)/makedepend
          IMAKE = $(IMAKESRC)/imake
            RGB = $(RGBSRC)/rgb
             FC = $(BDFTOSNFSRC)/bdftosnf
      MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
      MKDIRHIER = $(SCRIPTSSRC)/mkdirhier.sh

         CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(STD_DEFINES) $(DEFINES)
      LINTFLAGS = $(LINTOPTS) $(INCLUDES) $(STD_DEFINES) $(DEFINES) -DLINT
        LDFLAGS = $(CDEBUGFLAGS) $(SYS_LIBRARIES) $(SYSAUX_LIBRARIES)
            TOP = ../../.
      CLIENTSRC = $(TOP)/clients
        DEMOSRC = $(TOP)/demos
         LIBSRC = $(TOP)/lib
        FONTSRC = $(TOP)/fonts
     INCLUDESRC = $(TOP)/X11
      SERVERSRC = $(TOP)/server
        UTILSRC = $(TOP)/util
     SCRIPTSSRC = $(UTILSRC)/scripts
     EXAMPLESRC = $(TOP)/examples
     CONTRIBSRC = $(TOP)/contrib
         DOCSRC = $(TOP)/doc
         RGBSRC = $(TOP)/rgb
      DEPENDSRC = $(UTILSRC)/makedepend
       IMAKESRC = $(UTILSRC)/imake
       IRULESRC = $(UTILSRC)/imake.includes
        XLIBSRC = $(LIBSRC)/X
         XMUSRC = $(LIBSRC)/Xmu
     TOOLKITSRC = $(LIBSRC)/Xt
     AWIDGETSRC = $(LIBSRC)/Xaw
     OLDXLIBSRC = $(LIBSRC)/oldX
    BDFTOSNFSRC = $(FONTSRC)/bdftosnf
   MKFONTDIRSRC = $(FONTSRC)/mkfontdir
   EXTENSIONSRC = $(TOP)/extensions
   EXTENSIONLIB = $(EXTENSIONSRC)/lib/libXext.a
           XLIB = $(XLIBSRC)/libX11.a
         XMULIB = $(XMUSRC)/libXmu.a
        OLDXLIB = $(OLDXLIBSRC)/liboldX.a
       XTOOLLIB = $(TOOLKITSRC)/libXt.a
         XAWLIB = $(AWIDGETSRC)/libXaw.a
       LINTXLIB = $(XLIBSRC)/llib-lX11.ln
        LINTXMU = $(XMUSRC)/llib-lXmu.ln
      LINTXTOOL = $(TOOLKITSRC)/llib-lXt.ln
        LINTXAW = $(AWIDGETSRC)/llib-lXaw.ln
       INCLUDES = -I$(TOP)
      MACROFILE = Sun.macros
   ICONFIGFILES = $(IRULESRC)/Imake.tmpl \
			$(IRULESRC)/$(MACROFILE) $(IRULESRC)/site.def
  IMAKE_DEFINES =
      IMAKE_CMD = $(NEWTOP)$(IMAKE) -TImake.tmpl -I$(NEWTOP)$(IRULESRC) \
			-s Makefile $(IMAKE_DEFINES)
         RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a \
			.emacs_* tags TAGS make.log MakeOut

###########################################################################
# rules:  $XConsortium: Imake.rules,v 1.71 88/10/23 22:46:34 jim Exp $

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

#
#  xman - X window system manual page display program.
#
#  $XConsortium: Imakefile,v 1.6 88/10/26 17:09:33 jim Exp $
#  $Athena: Imakefile,v 1.1 88/08/31 21:11:32 kit Locked $
#
#  Copyright 1987, 1988 Massachusetts Institute of Technology
#
#  Permission to use, copy, modify, and distribute this software and its
#  documentation for any purpose and without fee is hereby granted, provided
#  that the above copyright notice appear in all copies and that both that
#  copyright notice and this permission notice appear in supporting
#  documentation, and that the name of M.I.T. not be used in advertising or
#  publicity pertaining to distribution of the software without specific,
#  written prior permission.  M.I.T. makes no representations about the
#  suitability of this software for any purpose.  It is provided "as is"
#  without express or implied warranty.
#
#  Author:    Chris D. Peterson, MIT Project Athena
#  Created:   August 31, 1988
#
#  Original idea borrowed from an X10 implementation created by Barry Shein
#
        DEFINES = -DHELPFILE=\"$(LIBDIR)$(PATHSEP)xman.help\"
LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
           SRCS = ScrollByL.c handler.c man.c pages.c buttons.c help.c menu.c \
                  search.c globals.c main.c misc.c tkfuncs.c
           OBJS = ScrollByL.o handler.o man.o pages.o buttons.o help.o menu.o \
                  search.o globals.o main.o misc.o tkfuncs.o

       INCLUDES = -I$(TOOLKITSRC) -I$(TOP)

 PROGRAM = xman

all:: xman

xman: $(OBJS) $(LOCAL_LIBRARIES)
	$(RM) $@
	$(CC) -o $@ $(OBJS) $(LOCAL_LIBRARIES) $(LDFLAGS) $(SYSLAST_LIBRARIES)

relink::
	$(RM) $(PROGRAM)
	$(MAKE) $(MFLAGS) $(PROGRAM)

install:: xman
	$(INSTALL) -c $(INSTALLFLAGS) xman $(BINDIR)

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

depend:: $(DEPEND)

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

$(DEPEND):
	@echo "making $@"; \
	cd $(DEPENDSRC); $(MAKE)

clean::
	$(RM) $(PROGRAM)

install:: xman.help
	$(INSTALL) -c $(INSTALLFLAGS) xman.help  $(LIBDIR)

###########################################################################
# Imake.tmpl common rules for all Makefiles - do not edit

emptyrule::

clean::
	$(RM_CMD) \#*

Makefile:: $(IMAKE)

Makefile:: Imakefile \
	$(IRULESRC)/Imake.tmpl \
	$(IRULESRC)/Imake.rules \
	$(IRULESRC)/site.def \
	$(IRULESRC)/$(MACROFILE)
	-@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)

$(IMAKE):
	@echo "making $@"; \
	cd $(IMAKESRC); $(MAKE) BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS)

tags::
	$(TAGS) -w *.[ch]
	$(TAGS) -xw *.[ch] > TAGS

###########################################################################
# empty rules for directories that do not have SUBDIRS - do not edit

install::
	@echo "install done"

install.man::
	@echo "install.man done"

Makefiles::

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

# DO NOT DELETE

ScrollByL.o: ../.././X11/IntrinsicP.h ../.././X11/Intrinsic.h
ScrollByL.o: ../.././X11/Xlib.h /usr/include/sys/types.h
ScrollByL.o: /usr/include/sys/sysmacros.h ../.././X11/X.h ../.././X11/Xutil.h
ScrollByL.o: ../.././X11/Xresource.h ../.././X11/Xos.h /usr/include/strings.h
ScrollByL.o: /usr/include/sys/file.h /usr/include/sys/fcntl.h
ScrollByL.o: /usr/include/sys/time.h /usr/include/sys/time.h
ScrollByL.o: ../.././X11/Core.h ../.././X11/Composite.h
ScrollByL.o: ../.././X11/Constraint.h ../.././X11/CoreP.h
ScrollByL.o: ../.././X11/CompositeP.h ../.././X11/ConstrainP.h ScrollByL.h
ScrollByL.o: ScrollByLP.h ../.././X11/Scroll.h ../.././X11/Xmu.h
ScrollByL.o: ../.././X11/Intrinsic.h ../.././X11/StringDefs.h
ScrollByL.o: ../.././X11/XawMisc.h
handler.o: globals.h man.h /usr/include/stdio.h ../.././X11/Xos.h
handler.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
handler.o: /usr/include/strings.h /usr/include/sys/file.h
handler.o: /usr/include/sys/fcntl.h /usr/include/sys/time.h
handler.o: /usr/include/sys/time.h /usr/include/sys/dir.h
handler.o: /usr/include/sys/stat.h ../.././X11/X.h ../.././X11/Xlib.h
handler.o: ../.././X11/Xatom.h ../.././X11/Intrinsic.h
handler.o: ../.././X11/StringDefs.h ../.././X11/AsciiText.h
handler.o: ../.././X11/copyright.h ../.././X11/Text.h ../.././X11/Box.h
handler.o: ../.././X11/Command.h ../.././X11/Label.h ../.././X11/Simple.h
handler.o: ../.././X11/Xmu.h ../.././X11/List.h ../.././X11/Scroll.h
handler.o: ../.././X11/Shell.h ../.././X11/VPaned.h ../.././X11/Constraint.h
handler.o: ../.././X11/Viewport.h ../.././X11/Form.h ScrollByL.h version.h
handler.o: defs.h menu.h
man.o: globals.h man.h /usr/include/stdio.h ../.././X11/Xos.h
man.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
man.o: /usr/include/strings.h /usr/include/sys/file.h
man.o: /usr/include/sys/fcntl.h /usr/include/sys/time.h
man.o: /usr/include/sys/time.h /usr/include/sys/dir.h /usr/include/sys/stat.h
man.o: ../.././X11/X.h ../.././X11/Xlib.h ../.././X11/Xatom.h
man.o: ../.././X11/Intrinsic.h ../.././X11/StringDefs.h
man.o: ../.././X11/AsciiText.h ../.././X11/copyright.h ../.././X11/Text.h
man.o: ../.././X11/Box.h ../.././X11/Command.h ../.././X11/Label.h
man.o: ../.././X11/Simple.h ../.././X11/Xmu.h ../.././X11/List.h
man.o: ../.././X11/Scroll.h ../.././X11/Shell.h ../.././X11/VPaned.h
man.o: ../.././X11/Constraint.h ../.././X11/Viewport.h ../.././X11/Form.h
man.o: ScrollByL.h version.h defs.h menu.h
pages.o: /usr/include/ctype.h globals.h man.h /usr/include/stdio.h
pages.o: ../.././X11/Xos.h /usr/include/sys/types.h
pages.o: /usr/include/sys/sysmacros.h /usr/include/strings.h
pages.o: /usr/include/sys/file.h /usr/include/sys/fcntl.h
pages.o: /usr/include/sys/time.h /usr/include/sys/time.h
pages.o: /usr/include/sys/dir.h /usr/include/sys/stat.h ../.././X11/X.h
pages.o: ../.././X11/Xlib.h ../.././X11/Xatom.h ../.././X11/Intrinsic.h
pages.o: ../.././X11/StringDefs.h ../.././X11/AsciiText.h
pages.o: ../.././X11/copyright.h ../.././X11/Text.h ../.././X11/Box.h
pages.o: ../.././X11/Command.h ../.././X11/Label.h ../.././X11/Simple.h
pages.o: ../.././X11/Xmu.h ../.././X11/List.h ../.././X11/Scroll.h
pages.o: ../.././X11/Shell.h ../.././X11/VPaned.h ../.././X11/Constraint.h
pages.o: ../.././X11/Viewport.h ../.././X11/Form.h ScrollByL.h version.h
pages.o: defs.h menu.h
buttons.o: globals.h man.h /usr/include/stdio.h ../.././X11/Xos.h
buttons.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
buttons.o: /usr/include/strings.h /usr/include/sys/file.h
buttons.o: /usr/include/sys/fcntl.h /usr/include/sys/time.h
buttons.o: /usr/include/sys/time.h /usr/include/sys/dir.h
buttons.o: /usr/include/sys/stat.h ../.././X11/X.h ../.././X11/Xlib.h
buttons.o: ../.././X11/Xatom.h ../.././X11/Intrinsic.h
buttons.o: ../.././X11/StringDefs.h ../.././X11/AsciiText.h
buttons.o: ../.././X11/copyright.h ../.././X11/Text.h ../.././X11/Box.h
buttons.o: ../.././X11/Command.h ../.././X11/Label.h ../.././X11/Simple.h
buttons.o: ../.././X11/Xmu.h ../.././X11/List.h ../.././X11/Scroll.h
buttons.o: ../.././X11/Shell.h ../.././X11/VPaned.h ../.././X11/Constraint.h
buttons.o: ../.././X11/Viewport.h ../.././X11/Form.h ScrollByL.h version.h
buttons.o: defs.h menu.h icon_open.h icon_help.h iconclosed.h
help.o: globals.h man.h /usr/include/stdio.h ../.././X11/Xos.h
help.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
help.o: /usr/include/strings.h /usr/include/sys/file.h
help.o: /usr/include/sys/fcntl.h /usr/include/sys/time.h
help.o: /usr/include/sys/time.h /usr/include/sys/dir.h
help.o: /usr/include/sys/stat.h ../.././X11/X.h ../.././X11/Xlib.h
help.o: ../.././X11/Xatom.h ../.././X11/Intrinsic.h ../.././X11/StringDefs.h
help.o: ../.././X11/AsciiText.h ../.././X11/copyright.h ../.././X11/Text.h
help.o: ../.././X11/Box.h ../.././X11/Command.h ../.././X11/Label.h
help.o: ../.././X11/Simple.h ../.././X11/Xmu.h ../.././X11/List.h
help.o: ../.././X11/Scroll.h ../.././X11/Shell.h ../.././X11/VPaned.h
help.o: ../.././X11/Constraint.h ../.././X11/Viewport.h ../.././X11/Form.h
help.o: ScrollByL.h version.h defs.h menu.h
menu.o: /usr/include/stdio.h ../.././X11/Xos.h /usr/include/sys/types.h
menu.o: /usr/include/sys/sysmacros.h /usr/include/strings.h
menu.o: /usr/include/sys/file.h /usr/include/sys/fcntl.h
menu.o: /usr/include/sys/time.h /usr/include/sys/time.h ../.././X11/Xlib.h
menu.o: ../.././X11/X.h ../.././X11/Intrinsic.h ../.././X11/Xatom.h
menu.o: ../.././X11/StringDefs.h ../.././X11/Command.h ../.././X11/Label.h
menu.o: ../.././X11/Simple.h ../.././X11/copyright.h ../.././X11/Xmu.h
menu.o: ../.././X11/Box.h menu.h
search.o: globals.h man.h /usr/include/stdio.h ../.././X11/Xos.h
search.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
search.o: /usr/include/strings.h /usr/include/sys/file.h
search.o: /usr/include/sys/fcntl.h /usr/include/sys/time.h
search.o: /usr/include/sys/time.h /usr/include/sys/dir.h
search.o: /usr/include/sys/stat.h ../.././X11/X.h ../.././X11/Xlib.h
search.o: ../.././X11/Xatom.h ../.././X11/Intrinsic.h
search.o: ../.././X11/StringDefs.h ../.././X11/AsciiText.h
search.o: ../.././X11/copyright.h ../.././X11/Text.h ../.././X11/Box.h
search.o: ../.././X11/Command.h ../.././X11/Label.h ../.././X11/Simple.h
search.o: ../.././X11/Xmu.h ../.././X11/List.h ../.././X11/Scroll.h
search.o: ../.././X11/Shell.h ../.././X11/VPaned.h ../.././X11/Constraint.h
search.o: ../.././X11/Viewport.h ../.././X11/Form.h ScrollByL.h version.h
search.o: defs.h menu.h
globals.o: man.h /usr/include/stdio.h ../.././X11/Xos.h
globals.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
globals.o: /usr/include/strings.h /usr/include/sys/file.h
globals.o: /usr/include/sys/fcntl.h /usr/include/sys/time.h
globals.o: /usr/include/sys/time.h /usr/include/sys/dir.h
globals.o: /usr/include/sys/stat.h ../.././X11/X.h ../.././X11/Xlib.h
globals.o: ../.././X11/Xatom.h ../.././X11/Intrinsic.h
globals.o: ../.././X11/StringDefs.h ../.././X11/AsciiText.h
globals.o: ../.././X11/copyright.h ../.././X11/Text.h ../.././X11/Box.h
globals.o: ../.././X11/Command.h ../.././X11/Label.h ../.././X11/Simple.h
globals.o: ../.././X11/Xmu.h ../.././X11/List.h ../.././X11/Scroll.h
globals.o: ../.././X11/Shell.h ../.././X11/VPaned.h ../.././X11/Constraint.h
globals.o: ../.././X11/Viewport.h ../.././X11/Form.h ScrollByL.h version.h
globals.o: defs.h menu.h
main.o: globals.h man.h /usr/include/stdio.h ../.././X11/Xos.h
main.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
main.o: /usr/include/strings.h /usr/include/sys/file.h
main.o: /usr/include/sys/fcntl.h /usr/include/sys/time.h
main.o: /usr/include/sys/time.h /usr/include/sys/dir.h
main.o: /usr/include/sys/stat.h ../.././X11/X.h ../.././X11/Xlib.h
main.o: ../.././X11/Xatom.h ../.././X11/Intrinsic.h ../.././X11/StringDefs.h
main.o: ../.././X11/AsciiText.h ../.././X11/copyright.h ../.././X11/Text.h
main.o: ../.././X11/Box.h ../.././X11/Command.h ../.././X11/Label.h
main.o: ../.././X11/Simple.h ../.././X11/Xmu.h ../.././X11/List.h
main.o: ../.././X11/Scroll.h ../.././X11/Shell.h ../.././X11/VPaned.h
main.o: ../.././X11/Constraint.h ../.././X11/Viewport.h ../.././X11/Form.h
main.o: ScrollByL.h version.h defs.h menu.h
misc.o: globals.h man.h /usr/include/stdio.h ../.././X11/Xos.h
misc.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
misc.o: /usr/include/strings.h /usr/include/sys/file.h
misc.o: /usr/include/sys/fcntl.h /usr/include/sys/time.h
misc.o: /usr/include/sys/time.h /usr/include/sys/dir.h
misc.o: /usr/include/sys/stat.h ../.././X11/X.h ../.././X11/Xlib.h
misc.o: ../.././X11/Xatom.h ../.././X11/Intrinsic.h ../.././X11/StringDefs.h
misc.o: ../.././X11/AsciiText.h ../.././X11/copyright.h ../.././X11/Text.h
misc.o: ../.././X11/Box.h ../.././X11/Command.h ../.././X11/Label.h
misc.o: ../.././X11/Simple.h ../.././X11/Xmu.h ../.././X11/List.h
misc.o: ../.././X11/Scroll.h ../.././X11/Shell.h ../.././X11/VPaned.h
misc.o: ../.././X11/Constraint.h ../.././X11/Viewport.h ../.././X11/Form.h
misc.o: ScrollByL.h version.h defs.h menu.h
tkfuncs.o: ../.././X11/X.h ../.././X11/Xos.h /usr/include/sys/types.h
tkfuncs.o: /usr/include/sys/sysmacros.h /usr/include/strings.h
tkfuncs.o: /usr/include/sys/file.h /usr/include/sys/fcntl.h
tkfuncs.o: /usr/include/sys/time.h /usr/include/sys/time.h ../.././X11/Xlib.h
tkfuncs.o: ../.././X11/Intrinsic.h ../.././X11/StringDefs.h
tkfuncs.o: ../.././X11/IntrinsicP.h ../.././X11/Intrinsic.h
tkfuncs.o: ../.././X11/Xutil.h ../.././X11/Xresource.h ../.././X11/Core.h
tkfuncs.o: ../.././X11/Composite.h ../.././X11/Constraint.h
tkfuncs.o: ../.././X11/CoreP.h ../.././X11/CompositeP.h
tkfuncs.o: ../.././X11/ConstrainP.h
