v13i006: xdtm - X Desktop Manager for the X Window System, Part01/11

EdwardJ. Groenendaal eddyg at cogs.sussex.ac.uk
Sun May 19 10:02:35 AEST 1991


Submitted-by: Edward "J." Groenendaal <eddyg at cogs.sussex.ac.uk>
Posting-number: Volume 13, Issue 6
Archive-name: xdtm/part01

This is version 1.5 of the X Desktop Manager for the X Window System. It
is designed as a graphical replacement to the command-line orientated UNIX
shell. See the help file for a full list of features and how to use them.


---- Cut Here and feed the following to sh ----
#!/bin/sh
# This is xdtm, a shell archive (produced by shar 3.49)
# To extract the files from this archive, save it to a file, remove
# everything above the "!/bin/sh" line above, and type "sh file_name".
#
# made 05/10/1991 16:53 UTC by eddyg at cste
# Source directory /tsuna/home/ug/cs88/eddyg/usr/xdtm_release_1.5
#
# existing files will NOT be overwritten unless -c is specified
#
# This shar contains:
# length  mode       name
# ------ ---------- ------------------------------------------
#   3353 -rw-r--r-- xdtm/README
#   3015 -rw-r--r-- xdtm/Imakefile
#  14290 -rw-r--r-- xdtm/Makefile
#   1921 -rw-r--r-- xdtm/Wishes
#    559 -rw-r--r-- xdtm/Xdtm
#    933 -rw-r--r-- xdtm/Xedw/DefIcon.icon
#    150 -rw-r--r-- xdtm/Xedw/Imakefile
#   8234 -rw-r--r-- xdtm/Xedw/Makefile
#  18923 -rw-r--r-- xdtm/Xedw/XedwForm.c
#   3912 -rw-r--r-- xdtm/Xedw/XedwForm.h
#   4040 -rw-r--r-- xdtm/Xedw/XedwFormP.h
#  38223 -rw-r--r-- xdtm/Xedw/XedwList.c
#   8356 -rw-r--r-- xdtm/Xedw/XedwList.h
#   4117 -rw-r--r-- xdtm/Xedw/XedwListP.h
#  31645 -rw-r--r-- xdtm/appman.c
#   1076 -rw-r--r-- xdtm/bitmaps/Copy.Button
#    496 -rw-r--r-- xdtm/bitmaps/Copy.Cursor
#    452 -rw-r--r-- xdtm/bitmaps/Copy.Mask
#    266 -rw-r--r-- xdtm/bitmaps/EmptyTick
#    875 -rw-r--r-- xdtm/bitmaps/Grey.Mask
#   1076 -rw-r--r-- xdtm/bitmaps/Move.Button
#    496 -rw-r--r-- xdtm/bitmaps/Move.Cursor
#    452 -rw-r--r-- xdtm/bitmaps/Move.Mask
#    251 -rw-r--r-- xdtm/bitmaps/Tick
#   1079 -rw-r--r-- xdtm/bitmaps/Trash.Button
#    875 -rw-r--r-- xdtm/bitmaps/file.icon
#    881 -rw-r--r-- xdtm/bitmaps/folder.icon
#    998 -rw-r--r-- xdtm/bitmaps/xdtm.xbm
#  10282 -rw-r--r-- xdtm/buttons.c
#   3636 -rw-r--r-- xdtm/dialogs.c
#  17893 -rw-r--r-- xdtm/dirman.c
#  11820 -rw-r--r-- xdtm/display.c
#    637 -rw-r--r-- xdtm/docs/README
#   9280 -rw-r--r-- xdtm/fileman.c
#  20446 -rw-r--r-- xdtm/help
#   1005 -rw-r--r-- xdtm/icons/alix/airballoon.icon
#    990 -rw-r--r-- xdtm/icons/alix/alien.icon
#    990 -rw-r--r-- xdtm/icons/alix/bat.icon
#   1005 -rw-r--r-- xdtm/icons/alix/bear.icon
#    993 -rw-r--r-- xdtm/icons/alix/candle.icon
#    996 -rw-r--r-- xdtm/icons/alix/clock.icon
#   1005 -rw-r--r-- xdtm/icons/alix/cup.icon
#    993 -rw-r--r-- xdtm/icons/alix/dragon.icon
#    996 -rw-r--r-- xdtm/icons/alix/emacs.icon
#    993 -rw-r--r-- xdtm/icons/alix/fish.icon
#    990 -rw-r--r-- xdtm/icons/alix/flower.icon
#    990 -rw-r--r-- xdtm/icons/alix/ghost.icon
#   1005 -rw-r--r-- xdtm/icons/alix/gun.icon
#    999 -rw-r--r-- xdtm/icons/alix/hat.icon
#   1005 -rw-r--r-- xdtm/icons/alix/hedgehog.icon
#   1005 -rw-r--r-- xdtm/icons/alix/icecream.icon
#   1005 -rw-r--r-- xdtm/icons/alix/mermaid.icon
#   1005 -rw-r--r-- xdtm/icons/alix/monster.icon
#    996 -rw-r--r-- xdtm/icons/alix/piccy.icon
#    999 -rw-r--r-- xdtm/icons/alix/snail.icon
#    999 -rw-r--r-- xdtm/icons/alix/wordc.icon
#   1001 -rw-r--r-- xdtm/icons/eddy/block.icon
#   1001 -rw-r--r-- xdtm/icons/eddy/ccode.icon
#   1013 -rw-r--r-- xdtm/icons/eddy/character.icon
#    998 -rw-r--r-- xdtm/icons/eddy/core.icon
#   1004 -rw-r--r-- xdtm/icons/eddy/dotdot.icon
#   1001 -rw-r--r-- xdtm/icons/eddy/elisp.icon
#   1001 -rw-r--r-- xdtm/icons/eddy/elispc.icon
#    998 -rw-r--r-- xdtm/icons/eddy/file.icon
#   1004 -rw-r--r-- xdtm/icons/eddy/folder.icon
#   1001 -rw-r--r-- xdtm/icons/eddy/hcode.icon
#    998 -rw-r--r-- xdtm/icons/eddy/icon.icon
#   1001 -rw-r--r-- xdtm/icons/eddy/lcode.icon
#    995 -rw-r--r-- xdtm/icons/eddy/lib.icon
#    875 -rw-r--r-- xdtm/icons/eddy/make.icon
#   1010 -rw-r--r-- xdtm/icons/eddy/makefile.icon
#   1007 -rw-r--r-- xdtm/icons/eddy/manpage.icon
#   1001 -rw-r--r-- xdtm/icons/eddy/ocode.icon
#    998 -rw-r--r-- xdtm/icons/eddy/prog.icon
#   1001 -rw-r--r-- xdtm/icons/eddy/slink.icon
#   1004 -rw-r--r-- xdtm/icons/eddy/socket.icon
#    998 -rw-r--r-- xdtm/icons/eddy/text.icon
#    995 -rw-r--r-- xdtm/icons/eddy/tty.icon
#    989 -rw-r--r-- xdtm/icons/eddy/x.icon
#    998 -rw-r--r-- xdtm/icons/eddy/xdtm.icon
#   1001 -rw-r--r-- xdtm/icons/eddy/ycode.icon
#   1027 -rw-r--r-- xdtm/icons/eddy/z.icon
#   6783 -rw-r--r-- xdtm/lexical.l
#  15389 -rw-r--r-- xdtm/listoption.c
#   8048 -rw-r--r-- xdtm/main.c
#   7904 -rw-r--r-- xdtm/map.c
#  13682 -rw-r--r-- xdtm/menus.c
#   1513 -rw-r--r-- xdtm/menus.h
#   1385 -rw-r--r-- xdtm/mystrstr.c
#   9922 -rw-r--r-- xdtm/newfile.c
#  18463 -rw-r--r-- xdtm/parse.c
#   2063 -rw-r--r-- xdtm/parse.h
#  27319 -rw-r--r-- xdtm/parser.y
#    219 -rw-r--r-- xdtm/patchlevel.h
#   3727 -rw-r--r-- xdtm/quit.c
#   1816 -rw-r--r-- xdtm/scroll_hack.c
#   2222 -rw-r--r-- xdtm/xdtm.h
#   2504 -rw-r--r-- xdtm/xdtm.man
#   5773 -rw-r--r-- xdtm/xdtmrc
#
# ============= xdtm/README ==============
if test ! -d 'xdtm'; then
    echo 'x - creating directory xdtm'
    mkdir 'xdtm'
fi
if test -f 'xdtm/README' -a X"$1" != X"-c"; then
	echo 'x - skipping xdtm/README (File already exists)'
else
echo 'x - extracting xdtm/README (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'xdtm/README' &&
XX Desktop Manager Version 1.5
X=============================
X
XThis is version 1.5 of the X Desktop Manager for the X Window System. It
Xis designed as a graphical replacement to the command-line orientated 
XUNIX shell. See the help file for a full list of features and how to use 
Xthem.
X
XChanges from version 1.0 to 1.4:
X
X o Fixed the memory allocation bugs.
X o Caught the dying children, so preventing zombies.
X o Option to automatically refresh directory listing when a child dies.
X o Added the facility to set the icon representing a file by the FULL set
X   of file types. (e.g. socket, fifo, symbolic link, character special,
X   block special device)
X o Works properly of colour displays
X o Option to follow symbolic links
X o Can set a delay between a directory being modified by copy, move or 
X   delete and the directory list being updated. This is so it will work
X   properly with NFS.
X o probably some more...
X
XChanges from version 1.4 to 1.5:
X
X o Now works on system 5 machines, thanks to Jean-Christophe Collet.
X o Window manager display's an xdtm icon when xdtm iconified
X
XWorks on the following machines,
X	Sun 3's and 4's with SunOS 4.*.*
X	Macintosh II's with A/UX 2.*
X	HP's (not sure which ones)
X	And many others...
X
XWill not work on straight BSD systems, need the regexp.h header file.
X	
XThe program is supplied in a number of shell archives. These unpack to
Xmake a single directory called 'xdtm' within which are the program sources, 
Xthis README file, the help file, and loads of example icons. 
X
XUnpacking the archives.
X-----------------------
X
XFirst of all copy the archives from the newsgroup of wherever you found
Xthem into your source directory. 
XThen remove the headers from each archive (up to the
Xline #!/bin/sh) and execute each one seperately in sequence.
X
XCompiling the program.
X----------------------
X
XTo compile and install the program you need to go through the following 
Xstages,
X
X1) Edit the master Imakefile
X	Read the Imakefile in the 'xdtm' directory, making changes where
X	suggested for your machine.
X
X2) Make the Makefile's
X	Either enter 'xmkmf' in the 'xdtm' directory, or enter
X	'make Makefile' in the 'xdtm' directory to create a Makefile from
X	the Imakefile. 
X	To create the Makefile for the 'Xedw' widgets in the directory
X	'xdtm/Xedw' enter 'make Makefiles' from within the 'xdtm' directory.
X
X3) Edit 'xdtm.h'
X	Change the expected locations of the xdtm help and system config
X	files to the places where you will install them.
X
X4) Compile the program
X	Enter 'make xdtm' to compile the program, expect one or two warnings
X	when compiling the system header file 'regexp.h'.
X
X5) Install the program
X	The following files should be installed, 'help', 'xdtmrc', and
X	the icons directory. To install these automatically enter
X	'make install'.
X
X
XAuthor
X------
X
XEdward Groenendaal.
X
XSchool of Cognitive and Computing Sciences,
XUniversity of Sussex, 
XBrighton,
XU.K.
X
XEmail: eddyg at cogs.sussex.ac.uk
X
XThe Word 4 format User's Guide and other xdtm related files are available
Xfrom an info-server running from my account. To trigger the info-server
Xinclude the string "-SUIS-" in the Subject line, in the body of the message
Xinclude the request. 
X
XFor example,
X
X% mail eddyg at cogs.sussex.ac.uk
XSubject: -SUIS-
X
XRequest: xdtm
XTopic: help
XTopic: index
XRequest: end
X
Xwill mail you the info-server xdtm specific index and help file.
SHAR_EOF
chmod 0644 xdtm/README ||
echo 'restore of xdtm/README failed'
Wc_c="`wc -c < 'xdtm/README'`"
test 3353 -eq "$Wc_c" ||
	echo 'xdtm/README: original size 3353, current size' "$Wc_c"
fi
# ============= xdtm/Imakefile ==============
if test -f 'xdtm/Imakefile' -a X"$1" != X"-c"; then
	echo 'x - skipping xdtm/Imakefile (File already exists)'
else
echo 'x - extracting xdtm/Imakefile (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'xdtm/Imakefile' &&
X/* Imakefile for the X Desktop Manager.
X *
X * Written by Edward Groenendaal. <eddyg at cogs.sussex.ac.uk>
X * Modified by stolcke at ICSI.Berkeley.edu, 19 April 1991 and again
X * on the 22 April to make better use of imake.
X *
X * To create a Makefile from this file, use the xmkmf script supplied
X * with X11R4.
X */
X
X/* If you use bison instead of yacc then define the symbol bison */
X
X/* #define bison */
X
X/**/# X Desktop Manager version 1.4
X/**/# 
X/**/# If make fails with a syntax error try expanding any tabs in this
X/**/# file to spaces. (use the expand(1) utility)
X/**/# If your machine has the strstr(3) string function then define the
X/**/# symbol HAS_STRSTR otherwise my version of strstr will be used.
X/**/# If your not sure then use mine.. you never know it might even
X/**/# be as fast as the system version!!
X/**/#
X/**/# If your OS is true SYSV without BSD extensions, e.g. symbolic
X/**/# links, then define the symbol TRUE_SYSV.
X/**/#
X/**/# If you prefer to use getcwd over getwd (SYSV machines) then
X/**/# define USE_CWD. This is done automatically if TRUE_SYSV is
X/**/# defined. 
X
X              CC = gcc /* -DHAS_STRSTR */ /* -DUSE_CWD */ /* -DTRUE_SYSV */
X
X     CDEBUGFLAGS =     /* put -g or -O here. On A/UX 2.01 with gcc 1.39 
X                        * optimising breaks the program 
X                        */
X
X            SRCS = main.c menus.c appman.c dirman.c \
X                   fileman.c parse.c \
X                   Xedw/XedwList.c Xedw/XedwForm.c lexical.l parser.y \
X                   dialogs.c scroll_hack.c mystrstr.c buttons.c \
X                   display.c listoption.c map.c newfile.c \
X                   quit.c 
X
X            OBJS = main.o menus.o appman.o dirman.o \
X                   fileman.o parse.o parser.o lexical.o \
X                   dialogs.o scroll_hack.o mystrstr.o buttons.o \
X                   display.o listoption.o map.o newfile.o \
X                   quit.o 
X         DEPLIBS = Xedw
X LOCAL_LIBRARIES = -L Xedw -lXedw $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
X   SYS_LIBRARIES = -ll # -ly /* The yacc library doesn't seem to be needed */
X
X#ifdef bison
X            YACC = bison
X          YFLAGS = -yacc -d
X#else
X            YACC = yacc
X          YFLAGS = -d
X#endif
X
X
X#define IHaveSubdirs
X#define PassCDebugFlags 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 
X
X         SUBDIRS = Xedw
X
XComplexProgramTarget(xdtm)
X
XNormalProgramTarget(lexical, lexical.c,,,-DDEBUG_LEX)
X
XNormalProgramTarget(parser, lexical.c parser.c,,,-DDEBUG_YACC)
X
XNamedMakeSubdirs(Xedw, Xedw)
X
XMakeDirectories(install, $(LIBDIR)/xdtm)
XInstallNonExec(help, $(LIBDIR)/xdtm)
XInstallNonExec(xdtmrc, $(LIBDIR)/xdtm/xdtmrc)
XMakeDirectories(install, $(LIBDIR)/xdtm/icons)
X
Xinstall::
X        cp icons$(PATHSEP)*$(PATHSEP)*.icon $(LIBDIR)/xdtm/icons
X
Xetags:
X        etags -t *.h $(SRCS)  
X
Xclean::
X        $(RM) lexical.c parser.c parser.h *.tab.*
X
Xparser.c parser.h: parser.y         
X        $(YACC) $(YFLAGS) parser.y      
X        $(MV) y.tab.c parser.c          
X        $(MV) y.tab.h parser.h      
X
Xlexical.o: parser.h
X
SHAR_EOF
chmod 0644 xdtm/Imakefile ||
echo 'restore of xdtm/Imakefile failed'
Wc_c="`wc -c < 'xdtm/Imakefile'`"
test 3015 -eq "$Wc_c" ||
	echo 'xdtm/Imakefile: original size 3015, current size' "$Wc_c"
fi
# ============= xdtm/Makefile ==============
if test -f 'xdtm/Makefile' -a X"$1" != X"-c"; then
	echo 'x - skipping xdtm/Makefile (File already exists)'
else
echo 'x - extracting xdtm/Makefile (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'xdtm/Makefile' &&
X# Makefile generated by imake - do not edit!
X# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
X#
X# The cpp used on this machine replaces all newlines and multiple tabs and
X# spaces in a macro expansion with a single space.  Imake tries to compensate
X# for this, but is not always successful.
X#
X
X###########################################################################
X# Makefile generated from "Imake.tmpl" and <Imakefile>
X# $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
X#
X# Platform-specific parameters may be set in the appropriate .cf
X# configuration files.  Site-wide parameters may be set in the file
X# site.def.  Full rebuilds are recommended if any parameters are changed.
X#
X# If your C preprocessor doesn't define any unique symbols, you'll need
X# to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
X# "make Makefile", "make Makefiles", or "make World").
X#
X# If you absolutely can't get imake to work, you'll need to set the
X# variables at the top of each Makefile as well as the dependencies at the
X# bottom (makedepend will do this automatically).
X#
X
X###########################################################################
X# platform-specific configuration parameters - edit sun.cf to change
X
X# platform:  $XConsortium: sun.cf,v 1.38 89/12/23 16:10:10 jim Exp $
X# operating system:  SunOS 4.1
X
X###########################################################################
X# site-specific configuration parameters - edit site.def to change
X
X# site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
X
X            SHELL = /bin/sh
X
X              TOP = .
X      CURRENT_DIR = .
X
X               AR = ar cq
X  BOOTSTRAPCFLAGS =
X               CC = cc
X
X         COMPRESS = compress
X              CPP = /lib/cpp $(STD_CPP_DEFINES)
X    PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
X          INSTALL = install
X               LD = ld
X             LINT = lint
X      LINTLIBFLAG = -C
X         LINTOPTS = -axz
X               LN = ln -s
X             MAKE = make
X               MV = mv
X               CP = cp
X           RANLIB = ranlib
X  RANLIBINSTFLAGS =
X               RM = rm -f
X     STD_INCLUDES =
X  STD_CPP_DEFINES =
X      STD_DEFINES =
X EXTRA_LOAD_FLAGS =
X  EXTRA_LIBRARIES =
X             TAGS = ctags
X
X    SHAREDCODEDEF = -DSHAREDCODE
X         SHLIBDEF = -DSUNSHLIB
X
X    PROTO_DEFINES =
X
X     INSTPGMFLAGS =
X
X     INSTBINFLAGS = -m 0755
X     INSTUIDFLAGS = -m 4755
X     INSTLIBFLAGS = -m 0664
X     INSTINCFLAGS = -m 0444
X     INSTMANFLAGS = -m 0444
X     INSTDATFLAGS = -m 0444
X    INSTKMEMFLAGS = -m 4755
X
X          DESTDIR = /usr/local/X11R4
X
X     TOP_INCLUDES = -I$(INCROOT)
X
X      CDEBUGFLAGS = -O
X        CCOPTIONS =
X      COMPATFLAGS =
X
X      ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
X       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
X           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
X        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
X           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
X        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
X   LDCOMBINEFLAGS = -X -r
X
X        MACROFILE = sun.cf
X           RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
X
X    IMAKE_DEFINES =
X
X         IRULESRC = $(CONFIGDIR)
X        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
X
X     ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
X			$(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
X			$(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
X
X###########################################################################
X# X Window System Build Parameters
X# $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
X
X###########################################################################
X# X Window System make variables; this need to be coordinated with rules
X# $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
X
X          PATHSEP = /
X        USRLIBDIR = $(DESTDIR)/lib
X           BINDIR = $(DESTDIR)/bin/X11
X          INCROOT = $(DESTDIR)/include
X     BUILDINCROOT = $(TOP)
X      BUILDINCDIR = $(BUILDINCROOT)/X11
X      BUILDINCTOP = ..
X           INCDIR = $(INCROOT)/X11
X           ADMDIR = $(DESTDIR)/adm
X           LIBDIR = $(USRLIBDIR)/X11
X        CONFIGDIR = $(LIBDIR)/config
X       LINTLIBDIR = $(USRLIBDIR)/lint
X
X          FONTDIR = $(LIBDIR)/fonts
X         XINITDIR = $(LIBDIR)/xinit
X           XDMDIR = $(LIBDIR)/xdm
X           AWMDIR = $(LIBDIR)/awm
X           TWMDIR = $(LIBDIR)/twm
X           GWMDIR = $(LIBDIR)/gwm
X          MANPATH = $(DESTDIR)/man
X    MANSOURCEPATH = $(MANPATH)/man
X           MANDIR = $(MANSOURCEPATH)1
X        LIBMANDIR = $(MANSOURCEPATH)3
X      XAPPLOADDIR = $(LIBDIR)/app-defaults
X
X        SOXLIBREV = 4.2
X          SOXTREV = 4.0
X         SOXAWREV = 4.0
X        SOOLDXREV = 4.0
X         SOXMUREV = 4.0
X        SOXEXTREV = 4.0
X
X       FONTCFLAGS = -t
X
X     INSTAPPFLAGS = $(INSTDATFLAGS)
X
X            IMAKE = imake
X           DEPEND = makedepend
X              RGB = rgb
X            FONTC = bdftosnf
X        MKFONTDIR = mkfontdir
X        MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier.sh
X
X        CONFIGSRC = $(TOP)/config
X        CLIENTSRC = $(TOP)/clients
X          DEMOSRC = $(TOP)/demos
X           LIBSRC = $(TOP)/lib
X          FONTSRC = $(TOP)/fonts
X       INCLUDESRC = $(TOP)/X11
X        SERVERSRC = $(TOP)/server
X          UTILSRC = $(TOP)/util
X        SCRIPTSRC = $(UTILSRC)/scripts
X       EXAMPLESRC = $(TOP)/examples
X       CONTRIBSRC = $(TOP)/../contrib
X           DOCSRC = $(TOP)/doc
X           RGBSRC = $(TOP)/rgb
X        DEPENDSRC = $(UTILSRC)/makedepend
X         IMAKESRC = $(CONFIGSRC)
X         XAUTHSRC = $(LIBSRC)/Xau
X          XLIBSRC = $(LIBSRC)/X
X           XMUSRC = $(LIBSRC)/Xmu
X       TOOLKITSRC = $(LIBSRC)/Xt
X       AWIDGETSRC = $(LIBSRC)/Xaw
X       OLDXLIBSRC = $(LIBSRC)/oldX
X      XDMCPLIBSRC = $(LIBSRC)/Xdmcp
X      BDFTOSNFSRC = $(FONTSRC)/bdftosnf
X     MKFONTDIRSRC = $(FONTSRC)/mkfontdir
X     EXTENSIONSRC = $(TOP)/extensions
X
X  DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
X     EXTENSIONLIB =  -lXext
X
X          DEPXLIB = $(DEPEXTENSIONLIB)
X             XLIB = $(EXTENSIONLIB) -lX11
X
X      DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
X         XAUTHLIB =  -lXau
X
X        DEPXMULIB =
X           XMULIB = -lXmu
X
X       DEPOLDXLIB =
X          OLDXLIB = -loldX
X
X      DEPXTOOLLIB =
X         XTOOLLIB = -lXt
X
X        DEPXAWLIB =
X           XAWLIB = -lXaw
X
X LINTEXTENSIONLIB = $(USRLIBDIR)/llib-lXext.ln
X         LINTXLIB = $(USRLIBDIR)/llib-lX11.ln
X          LINTXMU = $(USRLIBDIR)/llib-lXmu.ln
X        LINTXTOOL = $(USRLIBDIR)/llib-lXt.ln
X          LINTXAW = $(USRLIBDIR)/llib-lXaw.ln
X
X        XWLIBSRC = $(CONTRIBSRC)/toolkits/Xw
X        DEPXWLIB = $(USRLIBDIR)/libXw.a
X        XWLIB =  -lXw
X
X          DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
X
X         DEPLIBS1 = $(DEPLIBS)
X         DEPLIBS2 = $(DEPLIBS)
X         DEPLIBS3 = $(DEPLIBS)
X
X###########################################################################
X# Imake rules for building libraries, programs, scripts, and data files
X# rules:  $XConsortium: Imake.rules,v 1.67 89/12/18 17:14:15 jim Exp $
X
X###########################################################################
X# start of Imakefile
X
X# X Desktop Manager version 1.4
X#
X# If make fails with a syntax error try expanding any tabs in this
X# file to spaces. (use the expand(1) utility)
X# If your machine has the strstr(3) string function then define the
X# symbol HAS_STRSTR otherwise my version of strstr will be used.
X# If your not sure then use mine.. you never know it might even
X# be as fast as the system version!!
X#
X# If your OS is true SYSV without BSD extensions, e.g. symbolic
X# links, then define the symbol TRUE_SYSV.
X#
X# If you prefer to use getcwd over getwd (SYSV machines) then
X# define USE_CWD. This is done automatically if TRUE_SYSV is
X# defined.
X
X              CC = gcc
X
X     CDEBUGFLAGS =
X
X            SRCS = main.c menus.c appman.c dirman.c \
X                   fileman.c parse.c \
X                   Xedw/XedwList.c Xedw/XedwForm.c lexical.l parser.y \
X                   dialogs.c scroll_hack.c mystrstr.c buttons.c \
X                   display.c listoption.c map.c newfile.c \
X                   quit.c
X
X            OBJS = main.o menus.o appman.o dirman.o \
X                   fileman.o parse.o parser.o lexical.o \
X                   dialogs.o scroll_hack.o mystrstr.o buttons.o \
X                   display.o listoption.o map.o newfile.o \
X                   quit.o
X         DEPLIBS = Xedw
X LOCAL_LIBRARIES = -L Xedw -lXedw $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
X   SYS_LIBRARIES = -ll # -ly
X
X            YACC = yacc
X          YFLAGS = -d
X
X         SUBDIRS = Xedw
X
X PROGRAM = xdtm
X
Xall:: xdtm
X
Xxdtm: $(OBJS) $(DEPLIBS)
X	$(RM) $@
X	$(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
X
Xinstall:: xdtm
X	$(INSTALL) -c $(INSTPGMFLAGS)   xdtm $(BINDIR)
X
Xinstall.man:: xdtm.man
X	$(INSTALL) -c $(INSTMANFLAGS) xdtm.man $(MANDIR)/xdtm.1
X
Xdepend::
X	$(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
X
Xlint:
X	$(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
Xlint1:
X	$(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
X
Xclean::
X	$(RM) $(PROGRAM)
X
Xlexical:  lexical.c
X	$(RM) $@
X	$(CC) -o $@  lexical.c $(LDOPTIONS)  $(LDLIBS) -DDEBUG_LEX $(EXTRA_LOAD_FLAGS)
X
Xclean::
X	$(RM) lexical
X
Xparser:  lexical.c parser.c
X	$(RM) $@
X	$(CC) -o $@  lexical.c parser.c $(LDOPTIONS)  $(LDLIBS) -DDEBUG_YACC $(EXTRA_LOAD_FLAGS)
X
Xclean::
X	$(RM) parser
X
XXedw::
X	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
X	for i in  Xedw ;\
X	do \
X	(cd $$i ; echo "making" Xedw "in $(CURRENT_DIR)/$$i..."; \
X	$(MAKE) $(MFLAGS) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' all); \
X	done
X
Xinstall::
X	$(MKDIRHIER)  $(LIBDIR)/xdtm
X
Xinstall:: help
X	$(INSTALL) -c $(INSTDATFLAGS) help  $(LIBDIR)/xdtm
X
Xinstall:: xdtmrc
X	$(INSTALL) -c $(INSTDATFLAGS) xdtmrc  $(LIBDIR)/xdtm/xdtmrc
X
Xinstall::
X	$(MKDIRHIER)  $(LIBDIR)/xdtm/icons
X
Xinstall::
X	       cp icons$(PATHSEP)*$(PATHSEP)*.icon $(LIBDIR)/xdtm/icons
X
Xetags:
X	       etags -t *.h $(SRCS)
X
Xclean::
X	       $(RM) lexical.c parser.c parser.h *.tab.*
X
Xparser.c parser.h: parser.y
X	       $(YACC) $(YFLAGS) parser.y
X	       $(MV) y.tab.c parser.c
X	       $(MV) y.tab.h parser.h
X
Xlexical.o: parser.h
X
X###########################################################################
X# common rules for all Makefiles - do not edit
X
Xemptyrule::
X
Xclean::
X	$(RM_CMD) \#*
X
XMakefile::
X	- at if [ -f Makefile ]; then \
X	echo "	$(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
X	$(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
X	else exit 0; fi
X	$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
X
Xtags::
X	$(TAGS) -w *.[ch]
X	$(TAGS) -xw *.[ch] > TAGS
X
X###########################################################################
X# rules for building in SUBDIRS - do not edit
X
Xinstall::
X	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
X	for i in $(SUBDIRS) ;\
X	do \
X	(cd $$i ; echo "installing" "in $(CURRENT_DIR)/$$i..."; \
X	$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install); \
X	done
X
Xinstall.man::
X	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
X	for i in $(SUBDIRS) ;\
X	do \
X	(cd $$i ; echo "installing man pages" "in $(CURRENT_DIR)/$$i..."; \
X	$(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install.man); \
X	done
X
Xclean::
X	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
X	for i in $(SUBDIRS) ;\
X	do \
X	(cd $$i ; echo "cleaning" "in $(CURRENT_DIR)/$$i..."; \
X	$(MAKE) $(MFLAGS) RM_CMD='$(RM_CMD)' clean); \
X	done
X
Xtags::
X	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
X	for i in $(SUBDIRS) ;\
X	do \
X	(cd $$i ; echo "tagging" "in $(CURRENT_DIR)/$$i..."; \
X	$(MAKE) $(MFLAGS) TAGS='$(TAGS)' tags); \
X	done
X
XMakefiles::
X	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
X	for i in $(SUBDIRS) ;\
X	do \
X	echo "making Makefiles in $(CURRENT_DIR)/$$i..."; \
X	case "$$i" in \
X	./?*/?*/?*/?*) newtop=../../../../ sub=subsubsubsub;; \
X	./?*/?*/?*) newtop=../../../ sub=subsubsub;; \
X	./?*/?*) newtop=../../ sub=subsub;; \
X	./?*) newtop=../ sub=sub;; \
X	*/?*/?*/?*) newtop=../../../../ sub=subsubsubsub;; \
X	*/?*/?*) newtop=../../../ sub=subsubsub;; \
X	*/?*) newtop=../../ sub=subsub;; \
X	*) newtop=../ sub=sub;; \
X	esac; \
X	case "$(TOP)" in \
X	/?*) newtop= upprefix= ;; \
X	*) upprefix=../ ;; \
X	esac; \
X	$(MAKE) $${sub}dirMakefiles UPPREFIX=$$upprefix NEWTOP=$$newtop \
X	MAKEFILE_SUBDIR=$$i NEW_CURRENT_DIR=$(CURRENT_DIR)/$$i;\
X	done
X
XsubdirMakefiles:
X	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
X	- at if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \
X	echo "	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \
X	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
X	else exit 0; fi
X	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
X	$(MAKE) $(MFLAGS) Makefiles
X
XsubsubdirMakefiles:
X	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
X	- at if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \
X	echo "	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \
X	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
X	else exit 0; fi
X	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
X	$(MAKE) $(MFLAGS) Makefiles
X
XsubsubsubdirMakefiles:
X	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
X	- at if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \
X	echo "	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \
X	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
X	else exit 0; fi
X	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
X	$(MAKE) $(MFLAGS) Makefiles
X
XsubsubsubsubdirMakefiles:
X	$(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
X	- at if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \
X	echo "	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \
X	$(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
X	else exit 0; fi
X	cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
X	$(MAKE) $(MFLAGS) Makefiles
X
Xincludes::
X	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
X	for i in $(SUBDIRS) ;\
X	do \
X	(cd $$i ; echo including "in $(CURRENT_DIR)/$$i..."; \
X	$(MAKE) $(MFLAGS)   includes); \
X	done
X
X###########################################################################
X# dependencies generated by makedepend
X
SHAR_EOF
chmod 0644 xdtm/Makefile ||
echo 'restore of xdtm/Makefile failed'
Wc_c="`wc -c < 'xdtm/Makefile'`"
test 14290 -eq "$Wc_c" ||
	echo 'xdtm/Makefile: original size 14290, current size' "$Wc_c"
fi
# ============= xdtm/Wishes ==============
if test -f 'xdtm/Wishes' -a X"$1" != X"-c"; then
	echo 'x - skipping xdtm/Wishes (File already exists)'
else
echo 'x - extracting xdtm/Wishes (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'xdtm/Wishes' &&
XAdd any wishes to this list, also tick off any wishes that
Xyou fulfill. Email the new list to me at eddyg at cogs.sussex.ac.uk
Xif you change it.
X
X1) [May 1991, eddyg at cogs.sussex.ac.uk]
X   Full job control, have a menu listing which jobs are currently 
X   running, if selected let the user send a signal to that job.
X 
X   Quite simple to add to the existing code, just keep a list
X   of currently running programs with their pid's. Use 'kill'
X   to send messages to them, remove them from the list when they
X   die and are waited for (return value from wait is the pid).
X
X	
X2) [May 1991, eddyg at cogs.sussex.ac.uk]
X   Fix bug which on some machines (none of the ones I have access to)
X   inverts the icons exposed when a dialog box pop's down.
X
X3) [May 1991, eddyg at cogs.sussex.ac.uk]
X   Allow multiple directories to be displayed. Need some mechanism
X   of saying which directory is currently active (as far as the
X   directory selector is concerned)
X
X4) [May 1991, eddyg at cogs.sussex.ac.uk]
X   Display a diagram of the file-system in the form of a tree, into
X   which the pointer may be clicked to jump across the file-system.
X
X5) [May 1991, eddyg at cogs.sussex.ac.uk]
X   Allow the use of ~username in the directory selector and config
X   file.
X
X6) [May 1991, eddyg at cogs.sussex.ac.uk]
X   Allow TAB to be used to complete an unambigous completion
X   of a directory name in the directory selector.
X
X7) [May 1991, eddyg at cogs.sussex.ac.uk]
X   Allow more than one file to be viewed at a time.
X
X8) [May 1991, eddyg at cogs.sussex.ac.uk]
X   Allow text to be edited when viewing the file.
X
X9) [May 1991, eddyg at cogs.sussex.ac.uk]
X   Add a mechanism via which an arbitrary command may be executed, without
X   having to have filenames as arguments. I suppose the map program over
X   files could do this.
X
X10) [May 1991, eddyg at cogs.sussex.ac.uk]
X    Cache the uid -> username translations to speedup lookup when running
X    NIS (yellow pages).
SHAR_EOF
chmod 0644 xdtm/Wishes ||
echo 'restore of xdtm/Wishes failed'
Wc_c="`wc -c < 'xdtm/Wishes'`"
test 1921 -eq "$Wc_c" ||
	echo 'xdtm/Wishes: original size 1921, current size' "$Wc_c"
fi
# ============= xdtm/Xdtm ==============
if test -f 'xdtm/Xdtm' -a X"$1" != X"-c"; then
	echo 'x - skipping xdtm/Xdtm (File already exists)'
else
echo 'x - extracting xdtm/Xdtm (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'xdtm/Xdtm' &&
X! This is the X Resource file for xdtm.
X! These resources make the program look prettier...
X!
X! Edward Groenendaal. <eddyg at cogs.sussex.ac.uk>
X
XXdtm*font: -*-helvetica-bold-r-normal--*-140-*
XXdtm*pathManager*cursor: left_ptr
XXdtm*menuBar*cursor: left_ptr
XXdtm*buttonForm*cursor: left_ptr
XXdtm*listoptionsettings.font: -*-courier-bold-r-normal--*-120-*
X
X! Start directory list in icon mode
XXdtm.mode: icons
X
X! Show 30 lines of text at a time when viewing a file
XXdtm.viewHeight: 30
X
X! Refresh the current directory list when a child exits.
XXdtm.dirOnExit: True
SHAR_EOF
chmod 0644 xdtm/Xdtm ||
echo 'restore of xdtm/Xdtm failed'
Wc_c="`wc -c < 'xdtm/Xdtm'`"
test 559 -eq "$Wc_c" ||
	echo 'xdtm/Xdtm: original size 559, current size' "$Wc_c"
fi
# ============= xdtm/Xedw/DefIcon.icon ==============
if test ! -d 'xdtm/Xedw'; then
    echo 'x - creating directory xdtm/Xedw'
    mkdir 'xdtm/Xedw'
fi
if test -f 'xdtm/Xedw/DefIcon.icon' -a X"$1" != X"-c"; then
	echo 'x - skipping xdtm/Xedw/DefIcon.icon (File already exists)'
else
echo 'x - extracting xdtm/Xedw/DefIcon.icon (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'xdtm/Xedw/DefIcon.icon' &&
X/* Mode identifier for Emacs -*- Mode: C -*- */
X
X#define default_width 32
X#define default_height 32
Xstatic char default_bits[] = {
X   0xf0, 0xff, 0x7f, 0x00, 0x10, 0x00, 0xc0, 0x00, 0x10, 0x00, 0x40, 0x01,
X   0x10, 0x00, 0x40, 0x02, 0x10, 0x00, 0x40, 0x04, 0x10, 0x00, 0xc0, 0x0f,
X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
X   0x10, 0x00, 0x00, 0x08, 0xf0, 0xff, 0xff, 0x0f};
SHAR_EOF
chmod 0644 xdtm/Xedw/DefIcon.icon ||
echo 'restore of xdtm/Xedw/DefIcon.icon failed'
Wc_c="`wc -c < 'xdtm/Xedw/DefIcon.icon'`"
test 933 -eq "$Wc_c" ||
	echo 'xdtm/Xedw/DefIcon.icon: original size 933, current size' "$Wc_c"
fi
# ============= xdtm/Xedw/Imakefile ==============
if test -f 'xdtm/Xedw/Imakefile' -a X"$1" != X"-c"; then
	echo 'x - skipping xdtm/Xedw/Imakefile (File already exists)'
else
echo 'x - extracting xdtm/Xedw/Imakefile (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'xdtm/Xedw/Imakefile' &&
X/* This is the Imakefile for the Xedw Widget Set */
X
XCC=gcc
XSRCS=XedwForm.c XedwList.c
XOBJS=XedwForm.o XedwList.o
X
XNormalLibraryTarget(Xedw, $(OBJS))
SHAR_EOF
chmod 0644 xdtm/Xedw/Imakefile ||
echo 'restore of xdtm/Xedw/Imakefile failed'
Wc_c="`wc -c < 'xdtm/Xedw/Imakefile'`"
test 150 -eq "$Wc_c" ||
	echo 'xdtm/Xedw/Imakefile: original size 150, current size' "$Wc_c"
fi
# ============= xdtm/Xedw/Makefile ==============
if test -f 'xdtm/Xedw/Makefile' -a X"$1" != X"-c"; then
	echo 'x - skipping xdtm/Xedw/Makefile (File already exists)'
else
echo 'x - extracting xdtm/Xedw/Makefile (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'xdtm/Xedw/Makefile' &&
X# Makefile generated by imake - do not edit!
X# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
X#
X# The cpp used on this machine replaces all newlines and multiple tabs and
X# spaces in a macro expansion with a single space.  Imake tries to compensate
X# for this, but is not always successful.
X#
X
X###########################################################################
X# Makefile generated from "Imake.tmpl" and <Imakefile>
X# $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
X#
X# Platform-specific parameters may be set in the appropriate .cf
X# configuration files.  Site-wide parameters may be set in the file
X# site.def.  Full rebuilds are recommended if any parameters are changed.
X#
X# If your C preprocessor doesn't define any unique symbols, you'll need
X# to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
X# "make Makefile", "make Makefiles", or "make World").
X#
X# If you absolutely can't get imake to work, you'll need to set the
X# variables at the top of each Makefile as well as the dependencies at the
X# bottom (makedepend will do this automatically).
X#
X
X###########################################################################
X# platform-specific configuration parameters - edit sun.cf to change
X
X# platform:  $XConsortium: sun.cf,v 1.38 89/12/23 16:10:10 jim Exp $
X# operating system:  SunOS 4.1
X
X###########################################################################
X# site-specific configuration parameters - edit site.def to change
X
X# site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
X
X            SHELL = /bin/sh
X
X              TOP = ../.
X      CURRENT_DIR = ./Xedw
X
X               AR = ar cq
X  BOOTSTRAPCFLAGS =
X               CC = cc
X
X         COMPRESS = compress
X              CPP = /lib/cpp $(STD_CPP_DEFINES)
X    PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
X          INSTALL = install
X               LD = ld
X             LINT = lint
X      LINTLIBFLAG = -C
X         LINTOPTS = -axz
X               LN = ln -s
X             MAKE = make
X               MV = mv
X               CP = cp
X           RANLIB = ranlib
X  RANLIBINSTFLAGS =
X               RM = rm -f
X     STD_INCLUDES =
X  STD_CPP_DEFINES =
X      STD_DEFINES =
X EXTRA_LOAD_FLAGS =
X  EXTRA_LIBRARIES =
X             TAGS = ctags
X
X    SHAREDCODEDEF = -DSHAREDCODE
X         SHLIBDEF = -DSUNSHLIB
X
X    PROTO_DEFINES =
X
X     INSTPGMFLAGS =
X
X     INSTBINFLAGS = -m 0755
X     INSTUIDFLAGS = -m 4755
X     INSTLIBFLAGS = -m 0664
X     INSTINCFLAGS = -m 0444
X     INSTMANFLAGS = -m 0444
X     INSTDATFLAGS = -m 0444
X    INSTKMEMFLAGS = -m 4755
X
X          DESTDIR = /usr/local/X11R4
X
X     TOP_INCLUDES = -I$(INCROOT)
X
X      CDEBUGFLAGS = -O
X        CCOPTIONS =
X      COMPATFLAGS =
X
X      ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
X       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
X           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
X        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
X           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
X        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
X   LDCOMBINEFLAGS = -X -r
X
X        MACROFILE = sun.cf
X           RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
X
X    IMAKE_DEFINES =
X
X         IRULESRC = $(CONFIGDIR)
X        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
X
X     ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
X			$(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
X			$(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
X
X###########################################################################
X# X Window System Build Parameters
X# $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
X
X###########################################################################
X# X Window System make variables; this need to be coordinated with rules
X# $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
X
X          PATHSEP = /
X        USRLIBDIR = $(DESTDIR)/lib
X           BINDIR = $(DESTDIR)/bin/X11
X          INCROOT = $(DESTDIR)/include
X     BUILDINCROOT = $(TOP)
X      BUILDINCDIR = $(BUILDINCROOT)/X11
X      BUILDINCTOP = ..
X           INCDIR = $(INCROOT)/X11
X           ADMDIR = $(DESTDIR)/adm
X           LIBDIR = $(USRLIBDIR)/X11
X        CONFIGDIR = $(LIBDIR)/config
X       LINTLIBDIR = $(USRLIBDIR)/lint
X
X          FONTDIR = $(LIBDIR)/fonts
X         XINITDIR = $(LIBDIR)/xinit
X           XDMDIR = $(LIBDIR)/xdm
X           AWMDIR = $(LIBDIR)/awm
X           TWMDIR = $(LIBDIR)/twm
X           GWMDIR = $(LIBDIR)/gwm
X          MANPATH = $(DESTDIR)/man
X    MANSOURCEPATH = $(MANPATH)/man
X           MANDIR = $(MANSOURCEPATH)1
X        LIBMANDIR = $(MANSOURCEPATH)3
X      XAPPLOADDIR = $(LIBDIR)/app-defaults
X
X        SOXLIBREV = 4.2
X          SOXTREV = 4.0
X         SOXAWREV = 4.0
X        SOOLDXREV = 4.0
X         SOXMUREV = 4.0
X        SOXEXTREV = 4.0
X
X       FONTCFLAGS = -t
X
X     INSTAPPFLAGS = $(INSTDATFLAGS)
X
X            IMAKE = imake
X           DEPEND = makedepend
X              RGB = rgb
X            FONTC = bdftosnf
X        MKFONTDIR = mkfontdir
X        MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier.sh
X
X        CONFIGSRC = $(TOP)/config
X        CLIENTSRC = $(TOP)/clients
X          DEMOSRC = $(TOP)/demos
X           LIBSRC = $(TOP)/lib
X          FONTSRC = $(TOP)/fonts
X       INCLUDESRC = $(TOP)/X11
X        SERVERSRC = $(TOP)/server
X          UTILSRC = $(TOP)/util
X        SCRIPTSRC = $(UTILSRC)/scripts
X       EXAMPLESRC = $(TOP)/examples
X       CONTRIBSRC = $(TOP)/../contrib
X           DOCSRC = $(TOP)/doc
X           RGBSRC = $(TOP)/rgb
X        DEPENDSRC = $(UTILSRC)/makedepend
X         IMAKESRC = $(CONFIGSRC)
X         XAUTHSRC = $(LIBSRC)/Xau
X          XLIBSRC = $(LIBSRC)/X
X           XMUSRC = $(LIBSRC)/Xmu
X       TOOLKITSRC = $(LIBSRC)/Xt
X       AWIDGETSRC = $(LIBSRC)/Xaw
X       OLDXLIBSRC = $(LIBSRC)/oldX
X      XDMCPLIBSRC = $(LIBSRC)/Xdmcp
X      BDFTOSNFSRC = $(FONTSRC)/bdftosnf
X     MKFONTDIRSRC = $(FONTSRC)/mkfontdir
X     EXTENSIONSRC = $(TOP)/extensions
X
X  DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
X     EXTENSIONLIB =  -lXext
X
X          DEPXLIB = $(DEPEXTENSIONLIB)
X             XLIB = $(EXTENSIONLIB) -lX11
X
X      DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
X         XAUTHLIB =  -lXau
X
X        DEPXMULIB =
X           XMULIB = -lXmu
X
X       DEPOLDXLIB =
X          OLDXLIB = -loldX
X
X      DEPXTOOLLIB =
X         XTOOLLIB = -lXt
X
X        DEPXAWLIB =
X           XAWLIB = -lXaw
X
X LINTEXTENSIONLIB = $(USRLIBDIR)/llib-lXext.ln
X         LINTXLIB = $(USRLIBDIR)/llib-lX11.ln
X          LINTXMU = $(USRLIBDIR)/llib-lXmu.ln
X        LINTXTOOL = $(USRLIBDIR)/llib-lXt.ln
X          LINTXAW = $(USRLIBDIR)/llib-lXaw.ln
X
X        XWLIBSRC = $(CONTRIBSRC)/toolkits/Xw
X        DEPXWLIB = $(USRLIBDIR)/libXw.a
X        XWLIB =  -lXw
X
X          DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
X
X         DEPLIBS1 = $(DEPLIBS)
X         DEPLIBS2 = $(DEPLIBS)
X         DEPLIBS3 = $(DEPLIBS)
X
X###########################################################################
X# Imake rules for building libraries, programs, scripts, and data files
X# rules:  $XConsortium: Imake.rules,v 1.67 89/12/18 17:14:15 jim Exp $
X
X###########################################################################
X# start of Imakefile
X
XCC=gcc
XSRCS=XedwForm.c XedwList.c
XOBJS=XedwForm.o XedwList.o
X
Xall:: libXedw.a
X
XlibXedw.a:  $(OBJS)
X	$(RM) $@
X	$(AR) $@  $(OBJS)
X	$(RANLIB) $@
X
X###########################################################################
X# common rules for all Makefiles - do not edit
X
Xemptyrule::
X
Xclean::
X	$(RM_CMD) \#*
X
XMakefile::
X	- at if [ -f Makefile ]; then \
X	echo "	$(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
X	$(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
X	else exit 0; fi
X	$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
X
Xtags::
X	$(TAGS) -w *.[ch]
X	$(TAGS) -xw *.[ch] > TAGS
X
X###########################################################################
X# empty rules for directories that do not have SUBDIRS - do not edit
X
Xinstall::
X	@echo "install in $(CURRENT_DIR) done"
X
Xinstall.man::
X	@echo "install.man in $(CURRENT_DIR) done"
X
XMakefiles::
X
Xincludes::
X
X###########################################################################
X# dependencies generated by makedepend
X
SHAR_EOF
chmod 0644 xdtm/Xedw/Makefile ||
echo 'restore of xdtm/Xedw/Makefile failed'
Wc_c="`wc -c < 'xdtm/Xedw/Makefile'`"
test 8234 -eq "$Wc_c" ||
	echo 'xdtm/Xedw/Makefile: original size 8234, current size' "$Wc_c"
fi
true || echo 'restore of xdtm/Xedw/XedwForm.c failed'
echo End of part 1, continue with part 2
exit 0

--
Dan Heller
O'Reilly && Associates       Z-Code Software    Comp-sources-x:
Senior Writer                President          comp-sources-x at uunet.uu.net
argv at ora.com                 argv at zipcode.com



More information about the Comp.sources.x mailing list