home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!morrow.stanford.edu!sep!steve
- From: steve@sep.Stanford.EDU (Steve Cole)
- Newsgroups: alt.sources
- Subject: xtpanel 2.0 - interactive program builder - part 04/10
- Followup-To: alt.sources.d
- Date: 21 Nov 1992 00:31:31 GMT
- Organization: Stanford Exploration Project
- Lines: 1512
- Distribution: world
- Message-ID: <1ek013INN194@morrow.stanford.edu>
- NNTP-Posting-Host: taal.stanford.edu
-
-
- Submitted-by: steve@sep.Stanford.EDU
- Archive-name: xtpanel/part04
-
- #!/bin/sh
- # This is part 04 of a multipart archive
- # ============= xtpanel/Makefile ==============
- if test ! -d 'xtpanel'; then
- echo 'x - creating directory xtpanel'
- mkdir 'xtpanel'
- fi
- if test -f 'xtpanel/Makefile' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/Makefile (File already exists)'
- else
- echo 'x - extracting xtpanel/Makefile (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/Makefile' &&
- # 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.
- #
- X
- # -------------------------------------------------------------------------
- # Makefile generated from "Imake.tmpl" and <Imakefile>
- # $XConsortium: Imake.tmpl,v 1.139 91/09/16 08:52:48 rws Exp $
- #
- # Platform-specific parameters may be set in the appropriate <vendor>.cf
- # configuration files. Site-specific parameters should be set in the file
- # site.def. Full rebuilds are recommended if any parameters are changed.
- #
- # If your C preprocessor does not define any unique symbols, you will need
- # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
- # "make World" the first time).
- #
- X
- # -------------------------------------------------------------------------
- # site-specific configuration parameters that need to come before
- # the platform-specific parameters - edit site.def to change
- X
- # site: $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
- X
- # -------------------------------------------------------------------------
- # platform-specific configuration parameters - edit sun.cf to change
- X
- # platform: $XConsortium: sun.cf,v 1.72.1.1 92/03/18 13:13:37 rws Exp $
- X
- # operating system: SunOS 4.1.1
- X
- # $XConsortium: sunLib.rules,v 1.7 91/12/20 11:19:47 rws Exp $
- X
- # -------------------------------------------------------------------------
- # site-specific configuration parameters that go after
- # the platform-specific parameters - edit site.def to change
- X
- # site: $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
- X
- X SHELL = /bin/sh
- X
- X TOP = .
- X CURRENT_DIR = .
- X
- X AR = ar clq
- X BOOTSTRAPCFLAGS =
- X CC = cc
- X AS = as
- 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
- X RANLIB = ranlib
- X RANLIBINSTFLAGS =
- X
- X RM = rm -f
- X TROFF = psroff
- X MSMACROS = -ms
- X TBL = tbl
- X EQN = eqn
- X STD_INCLUDES =
- X STD_CPP_DEFINES = -D_NO_PROTO
- X STD_DEFINES = -D_NO_PROTO
- 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 0644
- X INSTINCFLAGS = -m 0444
- X INSTMANFLAGS = -m 0444
- X INSTDATFLAGS = -m 0444
- X INSTKMEMFLAGS = -g kmem -m 2755
- X
- X PROJECTROOT = /usr/local
- X
- X TOP_INCLUDES = -I$(INCROOT)
- X
- X CDEBUGFLAGS = -O
- X CCOPTIONS = -pipe
- X
- X ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
- X ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
- X CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
- X LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
- X
- X LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
- X
- X LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS) -L$(USRLIBDIR)
- X
- X LDCOMBINEFLAGS = -X -r
- X DEPENDFLAGS =
- 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 Window System Build Parameters
- # $XConsortium: Project.tmpl,v 1.138 91/09/10 09:02:12 rws Exp $
- X
- # -------------------------------------------------------------------------
- # X Window System make variables; this need to be coordinated with rules
- X
- X PATHSEP = /
- X USRLIBDIR = /usr/local/lib
- X BINDIR = /usr/local/bin/X5
- X INCROOT = /usr/local/include
- X BUILDINCROOT = $(TOP)
- X BUILDINCDIR = $(BUILDINCROOT)/X11
- X BUILDINCTOP = ..
- X INCDIR = $(INCROOT)/X11
- X ADMDIR = /usr/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 TWMDIR = $(LIBDIR)/twm
- X MANPATH = /usr/local/man
- X MANSOURCEPATH = $(MANPATH)/man
- X MANSUFFIX = n
- X LIBMANSUFFIX = 3
- X MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
- X LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
- X NLSDIR = $(LIBDIR)/nls
- X PEXAPIDIR = $(LIBDIR)/PEX
- X XAPPLOADDIR = $(LIBDIR)/app-defaults
- X FONTCFLAGS = -t
- X
- X INSTAPPFLAGS = $(INSTDATFLAGS)
- X
- X IMAKE = imake
- X DEPEND = makedepend
- X RGB = rgb
- X
- X FONTC = bdftopcf
- X
- X MKFONTDIR = mkfontdir
- X MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier
- X
- X CONFIGSRC = $(TOP)/config
- X DOCUTILSRC = $(TOP)/doc/util
- 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 BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
- X BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
- X MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
- X FSLIBSRC = $(FONTSRC)/lib/fs
- X FONTSERVERSRC = $(FONTSRC)/server
- X EXTENSIONSRC = $(TOP)/extensions
- X XILIBSRC = $(EXTENSIONSRC)/lib/xinput
- X PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
- X
- # $XConsortium: sunLib.tmpl,v 1.14.1.1 92/03/17 14:58:46 rws Exp $
- X
- SHLIBLDFLAGS = -assert pure-text
- PICFLAGS = -pic
- X
- X DEPEXTENSIONLIB =
- X EXTENSIONLIB = -lXext
- X
- X DEPXLIB = $(DEPEXTENSIONLIB)
- X XLIB = $(EXTENSIONLIB) -lX11
- X
- X DEPXMULIB = $(USRLIBDIR)/libXmu.sa.$(SOXMUREV)
- X XMULIBONLY = -lXmu
- X XMULIB = -lXmu
- X
- X DEPOLDXLIB =
- X OLDXLIB = -loldX
- X
- X DEPXTOOLLIB = $(USRLIBDIR)/libXt.sa.$(SOXTREV)
- X XTOOLLIB = -lXt
- X
- X DEPXAWLIB = $(USRLIBDIR)/libXaw.sa.$(SOXAWREV)
- X XAWLIB = -lXaw
- X
- X DEPXILIB =
- X XILIB = -lXi
- X
- X SOXLIBREV = 4.10
- X SOXTREV = 4.10
- X SOXAWREV = 5.0
- X SOOLDXREV = 4.10
- X SOXMUREV = 4.10
- X SOXEXTREV = 4.10
- X SOXINPUTREV = 4.10
- X
- X DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
- X XAUTHLIB = -lXau
- X DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
- X XDMCPLIB = -lXdmcp
- X
- X DEPPHIGSLIB = $(USRLIBDIR)/libphigs.a
- X PHIGSLIB = -lphigs
- X
- X DEPXBSDLIB = $(USRLIBDIR)/libXbsd.a
- X XBSDLIB = -lXbsd
- X
- X LINTEXTENSIONLIB = $(LINTLIBDIR)/llib-lXext.ln
- X LINTXLIB = $(LINTLIBDIR)/llib-lX11.ln
- X LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln
- X LINTXTOOL = $(LINTLIBDIR)/llib-lXt.ln
- X LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln
- X LINTXI = $(LINTLIBDIR)/llib-lXi.ln
- X LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln
- X
- X DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
- X
- X DEPLIBS1 = $(DEPLIBS)
- X DEPLIBS2 = $(DEPLIBS)
- X DEPLIBS3 = $(DEPLIBS)
- X
- # -------------------------------------------------------------------------
- # Imake rules for building libraries, programs, scripts, and data files
- # rules: $XConsortium: Imake.rules,v 1.123 91/09/16 20:12:16 rws Exp $
- X
- # -------------------------------------------------------------------------
- # start of Imakefile
- X
- SYS_XTPANELDIR = $(LIBDIR)/xtpanel
- X
- EXTRA_DEFINES = -DSYS_XTPANELDIR=\"$(SYS_XTPANELDIR)\"
- X
- LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
- DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
- APPDEFAULTS = XTpanel
- X
- PROGRAMS = xtpanel
- X
- SRCS = main.c tree.c parse.c actions.c object.c item.c xtpanel_scan.l \
- X message.c button.c slider.c dialog.c text.c menubutton.c \
- X choice.c list.c variable.c eval_command.c string_buf.c builders.c \
- X graph.c
- OBJS = main.o tree.o parse.o actions.o object.o item.o xtpanel_scan.o \
- X message.o button.o slider.o dialog.o text.o menubutton.o \
- X choice.o list.o variable.o eval_command.o string_buf.o builders.o \
- X graph.o
- X
- SUBDIRS = help generator examples
- X
- all:: $(PROGRAMS)
- X
- X PROGRAM = $(PROGRAMS)
- X
- all:: $(PROGRAMS)
- X
- $(PROGRAMS): $(OBJS) $(DEPLIBS)
- X $(RM) $@
- X $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
- X
- saber_$(PROGRAMS):: $(SRCS)
- X # load $(ALLDEFINES) $(SRCS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
- X
- osaber_$(PROGRAMS):: $(OBJS)
- X # load $(ALLDEFINES) $(OBJS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
- X
- install:: $(PROGRAMS)
- X @if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
- X else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
- X $(INSTALL) -c $(INSTPGMFLAGS) $(PROGRAMS) $(DESTDIR)$(BINDIR)
- X
- install.man:: $(PROGRAMS).man
- X @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
- X else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
- X $(INSTALL) -c $(INSTMANFLAGS) $(PROGRAMS).man $(DESTDIR)$(MANDIR)/$(PROGRAMS).$(MANSUFFIX)
- X
- depend::
- X $(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
- X
- lint:
- X $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
- lint1:
- X $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
- X
- clean::
- X $(RM) $(PROGRAM)
- X
- xtpanel-examples.script: xtpanel-examples.script.sed
- X sed -e 's,SYS_XTPANELDIR,$(SYS_XTPANELDIR),g' <$? >$@
- X
- install:: xtpanel-generator.script
- X @if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
- X else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
- X $(INSTALL) -c $(INSTBINFLAGS) xtpanel-generator.script $(DESTDIR)$(BINDIR)/xtpanel-generator
- X
- install:: xtpanel-examples.script
- X @if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
- X else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
- X $(INSTALL) -c $(INSTBINFLAGS) xtpanel-examples.script $(DESTDIR)$(BINDIR)/xtpanel-examples
- X
- install:: $(APPDEFAULTS).ad
- X @if [ -d $(DESTDIR)$(XAPPLOADDIR) ]; then set +x; \
- X else (set -x; $(MKDIRHIER) $(DESTDIR)$(XAPPLOADDIR)); fi
- X $(INSTALL) -c $(INSTAPPFLAGS) $(APPDEFAULTS).ad $(DESTDIR)$(XAPPLOADDIR)/$(APPDEFAULTS)
- X
- xtpanel.man: xtpanel.man.sed
- X sed -e 's,SYS_XTPANELDIR,$(SYS_XTPANELDIR),g' <$? >$@
- X
- XXTpanel.ad: XTpanel.ad.sed
- X sed -e 's,SYS_XTPANELDIR,$(SYS_XTPANELDIR),g' <$? >$@
- X
- install.man:: xtpanel.man
- X @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
- X else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
- X $(INSTALL) -c $(INSTMANFLAGS) xtpanel.man $(DESTDIR)$(MANDIR)/xtpanel.$(MANSUFFIX)
- X
- Makefiles::
- 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
- subdirMakefiles:
- X $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
- X -@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
- 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
- subsubdirMakefiles:
- X $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
- X -@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
- 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
- subsubsubdirMakefiles:
- X $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
- X -@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
- 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
- subsubsubsubdirMakefiles:
- X $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
- X -@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then set -x; \
- 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
- install::
- 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
- clean::
- 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
- xtpanel_scan.o: xtpanel_scan.l
- X rm -f lex.yy.c
- X lex xtpanel_scan.l
- X $(CC) $(CFLAGS) -c lex.yy.c
- X mv lex.yy.o xtpanel_scan.o
- X
- clean::
- X $(RM) lex.yy.c
- X $(RM) XTpanel.ad
- X $(RM) xtpanel.man
- X $(RM) xtpanel-examples.script
- X
- # -------------------------------------------------------------------------
- # common rules for all Makefiles - do not edit
- X
- emptyrule::
- X
- clean::
- X $(RM_CMD) "#"*
- X
- Makefile::
- X -@if [ -f Makefile ]; then set -x; \
- X $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
- X else exit 0; fi
- X $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
- X
- tags::
- X $(TAGS) -w *.[ch]
- X $(TAGS) -xw *.[ch] > TAGS
- X
- saber:
- X # load $(ALLDEFINES) $(SRCS)
- X
- osaber:
- X # load $(ALLDEFINES) $(OBJS)
- X
- # -------------------------------------------------------------------------
- # empty rules for directories that do not have SUBDIRS - do not edit
- X
- install::
- X @echo "install in $(CURRENT_DIR) done"
- X
- install.man::
- X @echo "install.man in $(CURRENT_DIR) done"
- X
- Makefiles::
- X
- includes::
- X
- # -------------------------------------------------------------------------
- # dependencies generated by makedepend
- X
- # DO NOT DELETE
- X
- main.o: patchlevel.h /usr/include/stdio.h /usr/local/include/X11/Intrinsic.h
- main.o: /usr/local/include/X11/Xlib.h /usr/include/sys/types.h
- main.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
- main.o: /usr/local/include/X11/X.h /usr/local/include/X11/Xfuncproto.h
- main.o: /usr/local/include/X11/Xosdefs.h /usr/include/stddef.h
- main.o: /usr/local/include/X11/Xutil.h /usr/local/include/X11/Xresource.h
- main.o: /usr/include/string.h /usr/local/include/X11/Core.h
- main.o: /usr/local/include/X11/Composite.h
- main.o: /usr/local/include/X11/Constraint.h /usr/local/include/X11/Object.h
- main.o: /usr/local/include/X11/RectObj.h /usr/local/include/X11/StringDefs.h
- main.o: /usr/local/include/X11/Xaw/Box.h
- main.o: /usr/local/include/X11/Xmu/Converters.h
- main.o: /usr/local/include/X11/Xaw/Cardinals.h
- main.o: /usr/local/include/X11/Xaw/Paned.h tree.h builders.h
- tree.o: /usr/include/stdio.h tree.h /usr/include/string.h
- tree.o: /usr/include/sys/stdtypes.h
- parse.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
- parse.o: /usr/include/sys/sysmacros.h /usr/include/sys/stat.h tree.h
- parse.o: /usr/include/string.h /usr/include/stdio.h string_buf.h
- parse.o: /usr/include/sys/param.h /usr/include/machine/param.h
- parse.o: /usr/include/sys/signal.h /usr/include/vm/faultcode.h
- actions.o: /usr/include/stdio.h /usr/include/string.h
- actions.o: /usr/include/sys/stdtypes.h tree.h actions.h object.h
- actions.o: /usr/local/include/X11/Intrinsic.h /usr/local/include/X11/Xlib.h
- actions.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
- actions.o: /usr/local/include/X11/X.h /usr/local/include/X11/Xfuncproto.h
- actions.o: /usr/local/include/X11/Xosdefs.h /usr/include/stddef.h
- actions.o: /usr/local/include/X11/Xutil.h /usr/local/include/X11/Xresource.h
- actions.o: /usr/local/include/X11/Core.h /usr/local/include/X11/Composite.h
- actions.o: /usr/local/include/X11/Constraint.h
- actions.o: /usr/local/include/X11/Object.h /usr/local/include/X11/RectObj.h
- actions.o: eval_command.h string_buf.h
- object.o: /usr/include/stdio.h /usr/local/include/X11/Xatom.h
- object.o: /usr/local/include/X11/Intrinsic.h /usr/local/include/X11/Xlib.h
- object.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
- object.o: /usr/include/sys/sysmacros.h /usr/local/include/X11/X.h
- object.o: /usr/local/include/X11/Xfuncproto.h
- object.o: /usr/local/include/X11/Xosdefs.h /usr/include/stddef.h
- object.o: /usr/local/include/X11/Xutil.h /usr/local/include/X11/Xresource.h
- object.o: /usr/include/string.h /usr/local/include/X11/Core.h
- object.o: /usr/local/include/X11/Composite.h
- object.o: /usr/local/include/X11/Constraint.h /usr/local/include/X11/Object.h
- object.o: /usr/local/include/X11/RectObj.h /usr/local/include/X11/Xaw/Label.h
- object.o: /usr/local/include/X11/Xaw/Simple.h
- object.o: /usr/local/include/X11/Xmu/Converters.h object.h actions.h tree.h
- item.o: /usr/include/stdio.h /usr/local/include/X11/Intrinsic.h
- item.o: /usr/local/include/X11/Xlib.h /usr/include/sys/types.h
- item.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
- item.o: /usr/local/include/X11/X.h /usr/local/include/X11/Xfuncproto.h
- item.o: /usr/local/include/X11/Xosdefs.h /usr/include/stddef.h
- item.o: /usr/local/include/X11/Xutil.h /usr/local/include/X11/Xresource.h
- item.o: /usr/include/string.h /usr/local/include/X11/Core.h
- item.o: /usr/local/include/X11/Composite.h
- item.o: /usr/local/include/X11/Constraint.h /usr/local/include/X11/Object.h
- item.o: /usr/local/include/X11/RectObj.h object.h actions.h tree.h item.h
- xtpanel_scan.o: /usr/include/ctype.h /usr/include/stdio.h
- xtpanel_scan.o: /usr/include/string.h /usr/include/sys/stdtypes.h tree.h
- xtpanel_scan.o: eval_command.h
- message.o: /usr/local/include/X11/Intrinsic.h /usr/local/include/X11/Xlib.h
- message.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
- message.o: /usr/include/sys/sysmacros.h /usr/local/include/X11/X.h
- message.o: /usr/local/include/X11/Xfuncproto.h
- message.o: /usr/local/include/X11/Xosdefs.h /usr/include/stddef.h
- message.o: /usr/local/include/X11/Xutil.h /usr/local/include/X11/Xresource.h
- message.o: /usr/include/string.h /usr/local/include/X11/Core.h
- message.o: /usr/local/include/X11/Composite.h
- message.o: /usr/local/include/X11/Constraint.h
- message.o: /usr/local/include/X11/Object.h /usr/local/include/X11/RectObj.h
- message.o: /usr/local/include/X11/StringDefs.h
- message.o: /usr/local/include/X11/Xaw/Cardinals.h
- message.o: /usr/local/include/X11/Xaw/Label.h
- message.o: /usr/local/include/X11/Xaw/Simple.h
- message.o: /usr/local/include/X11/Xmu/Converters.h object.h actions.h tree.h
- message.o: builders.h
- button.o: /usr/local/include/X11/Intrinsic.h /usr/local/include/X11/Xlib.h
- button.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
- button.o: /usr/include/sys/sysmacros.h /usr/local/include/X11/X.h
- button.o: /usr/local/include/X11/Xfuncproto.h
- button.o: /usr/local/include/X11/Xosdefs.h /usr/include/stddef.h
- button.o: /usr/local/include/X11/Xutil.h /usr/local/include/X11/Xresource.h
- button.o: /usr/include/string.h /usr/local/include/X11/Core.h
- button.o: /usr/local/include/X11/Composite.h
- button.o: /usr/local/include/X11/Constraint.h /usr/local/include/X11/Object.h
- button.o: /usr/local/include/X11/RectObj.h
- button.o: /usr/local/include/X11/StringDefs.h
- button.o: /usr/local/include/X11/Xaw/Cardinals.h
- button.o: /usr/local/include/X11/Xaw/Command.h
- button.o: /usr/local/include/X11/Xaw/Label.h
- button.o: /usr/local/include/X11/Xaw/Simple.h
- button.o: /usr/local/include/X11/Xmu/Converters.h
- button.o: /usr/local/include/X11/Xaw/Toggle.h /usr/include/stdio.h object.h
- button.o: actions.h tree.h builders.h
- slider.o: /usr/local/include/X11/Intrinsic.h /usr/local/include/X11/Xlib.h
- slider.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
- slider.o: /usr/include/sys/sysmacros.h /usr/local/include/X11/X.h
- slider.o: /usr/local/include/X11/Xfuncproto.h
- slider.o: /usr/local/include/X11/Xosdefs.h /usr/include/stddef.h
- slider.o: /usr/local/include/X11/Xutil.h /usr/local/include/X11/Xresource.h
- slider.o: /usr/include/string.h /usr/local/include/X11/Core.h
- slider.o: /usr/local/include/X11/Composite.h
- slider.o: /usr/local/include/X11/Constraint.h /usr/local/include/X11/Object.h
- slider.o: /usr/local/include/X11/RectObj.h
- slider.o: /usr/local/include/X11/StringDefs.h
- slider.o: /usr/local/include/X11/Xaw/Box.h
- slider.o: /usr/local/include/X11/Xmu/Converters.h
- slider.o: /usr/local/include/X11/Xaw/Cardinals.h
- slider.o: /usr/local/include/X11/Xaw/Command.h
- slider.o: /usr/local/include/X11/Xaw/Label.h
- slider.o: /usr/local/include/X11/Xaw/Simple.h
- slider.o: /usr/local/include/X11/Xaw/Scrollbar.h object.h actions.h tree.h
- slider.o: builders.h /usr/include/stdio.h
- dialog.o: /usr/local/include/X11/Intrinsic.h /usr/local/include/X11/Xlib.h
- dialog.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
- dialog.o: /usr/include/sys/sysmacros.h /usr/local/include/X11/X.h
- dialog.o: /usr/local/include/X11/Xfuncproto.h
- dialog.o: /usr/local/include/X11/Xosdefs.h /usr/include/stddef.h
- dialog.o: /usr/local/include/X11/Xutil.h /usr/local/include/X11/Xresource.h
- dialog.o: /usr/include/string.h /usr/local/include/X11/Core.h
- dialog.o: /usr/local/include/X11/Composite.h
- dialog.o: /usr/local/include/X11/Constraint.h /usr/local/include/X11/Object.h
- dialog.o: /usr/local/include/X11/RectObj.h
- dialog.o: /usr/local/include/X11/StringDefs.h
- dialog.o: /usr/local/include/X11/Xaw/Cardinals.h
- dialog.o: /usr/local/include/X11/Xaw/Command.h
- dialog.o: /usr/local/include/X11/Xaw/Label.h
- dialog.o: /usr/local/include/X11/Xaw/Simple.h
- dialog.o: /usr/local/include/X11/Xmu/Converters.h
- dialog.o: /usr/local/include/X11/Xaw/Dialog.h
- dialog.o: /usr/local/include/X11/Xaw/Form.h object.h actions.h tree.h
- dialog.o: builders.h
- text.o: /usr/local/include/X11/Intrinsic.h /usr/local/include/X11/Xlib.h
- text.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
- text.o: /usr/include/sys/sysmacros.h /usr/local/include/X11/X.h
- text.o: /usr/local/include/X11/Xfuncproto.h /usr/local/include/X11/Xosdefs.h
- text.o: /usr/include/stddef.h /usr/local/include/X11/Xutil.h
- text.o: /usr/local/include/X11/Xresource.h /usr/include/string.h
- text.o: /usr/local/include/X11/Core.h /usr/local/include/X11/Composite.h
- text.o: /usr/local/include/X11/Constraint.h /usr/local/include/X11/Object.h
- text.o: /usr/local/include/X11/RectObj.h /usr/local/include/X11/StringDefs.h
- text.o: /usr/local/include/X11/Xaw/AsciiText.h
- text.o: /usr/local/include/X11/Xaw/Text.h
- text.o: /usr/local/include/X11/Xaw/TextSink.h
- text.o: /usr/local/include/X11/Xaw/TextSrc.h
- text.o: /usr/local/include/X11/Xaw/AsciiSrc.h
- text.o: /usr/local/include/X11/Xaw/AsciiSink.h
- text.o: /usr/local/include/X11/Xaw/Cardinals.h object.h actions.h tree.h
- text.o: builders.h
- menubutton.o: /usr/local/include/X11/Intrinsic.h
- menubutton.o: /usr/local/include/X11/Xlib.h /usr/include/sys/types.h
- menubutton.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
- menubutton.o: /usr/local/include/X11/X.h /usr/local/include/X11/Xfuncproto.h
- menubutton.o: /usr/local/include/X11/Xosdefs.h /usr/include/stddef.h
- menubutton.o: /usr/local/include/X11/Xutil.h
- menubutton.o: /usr/local/include/X11/Xresource.h /usr/include/string.h
- menubutton.o: /usr/local/include/X11/Core.h
- menubutton.o: /usr/local/include/X11/Composite.h
- menubutton.o: /usr/local/include/X11/Constraint.h
- menubutton.o: /usr/local/include/X11/Object.h
- menubutton.o: /usr/local/include/X11/RectObj.h
- menubutton.o: /usr/local/include/X11/StringDefs.h
- menubutton.o: /usr/local/include/X11/bitmaps/dot
- menubutton.o: /usr/local/include/X11/Xaw/Cardinals.h
- menubutton.o: /usr/local/include/X11/Xaw/MenuButton.h
- menubutton.o: /usr/local/include/X11/Xaw/Command.h
- menubutton.o: /usr/local/include/X11/Xaw/Label.h
- menubutton.o: /usr/local/include/X11/Xaw/Simple.h
- menubutton.o: /usr/local/include/X11/Xmu/Converters.h
- menubutton.o: /usr/local/include/X11/Xaw/SimpleMenu.h
- menubutton.o: /usr/local/include/X11/Shell.h
- menubutton.o: /usr/local/include/X11/Xaw/SmeBSB.h
- menubutton.o: /usr/local/include/X11/Xaw/Sme.h object.h actions.h tree.h
- menubutton.o: item.h builders.h
- choice.o: /usr/local/include/X11/Intrinsic.h /usr/local/include/X11/Xlib.h
- choice.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
- choice.o: /usr/include/sys/sysmacros.h /usr/local/include/X11/X.h
- choice.o: /usr/local/include/X11/Xfuncproto.h
- choice.o: /usr/local/include/X11/Xosdefs.h /usr/include/stddef.h
- choice.o: /usr/local/include/X11/Xutil.h /usr/local/include/X11/Xresource.h
- choice.o: /usr/include/string.h /usr/local/include/X11/Core.h
- choice.o: /usr/local/include/X11/Composite.h
- choice.o: /usr/local/include/X11/Constraint.h /usr/local/include/X11/Object.h
- choice.o: /usr/local/include/X11/RectObj.h
- choice.o: /usr/local/include/X11/StringDefs.h
- choice.o: /usr/local/include/X11/Xaw/Box.h
- choice.o: /usr/local/include/X11/Xmu/Converters.h
- choice.o: /usr/local/include/X11/Xaw/Cardinals.h
- choice.o: /usr/local/include/X11/Xaw/Label.h
- choice.o: /usr/local/include/X11/Xaw/Simple.h
- choice.o: /usr/local/include/X11/Xaw/Toggle.h
- choice.o: /usr/local/include/X11/Xaw/Command.h object.h actions.h tree.h
- choice.o: item.h builders.h
- list.o: /usr/local/include/X11/Intrinsic.h /usr/local/include/X11/Xlib.h
- list.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
- list.o: /usr/include/sys/sysmacros.h /usr/local/include/X11/X.h
- list.o: /usr/local/include/X11/Xfuncproto.h /usr/local/include/X11/Xosdefs.h
- list.o: /usr/include/stddef.h /usr/local/include/X11/Xutil.h
- list.o: /usr/local/include/X11/Xresource.h /usr/include/string.h
- list.o: /usr/local/include/X11/Core.h /usr/local/include/X11/Composite.h
- list.o: /usr/local/include/X11/Constraint.h /usr/local/include/X11/Object.h
- list.o: /usr/local/include/X11/RectObj.h /usr/local/include/X11/StringDefs.h
- list.o: /usr/local/include/X11/Xaw/Box.h
- list.o: /usr/local/include/X11/Xmu/Converters.h
- list.o: /usr/local/include/X11/Xaw/Cardinals.h
- list.o: /usr/local/include/X11/Xaw/Label.h
- list.o: /usr/local/include/X11/Xaw/Simple.h /usr/local/include/X11/Xaw/List.h
- list.o: /usr/local/include/X11/Xaw/Viewport.h
- list.o: /usr/local/include/X11/Xaw/Form.h
- list.o: /usr/local/include/X11/Xaw/Reports.h object.h actions.h tree.h item.h
- list.o: builders.h
- variable.o: /usr/local/include/X11/Intrinsic.h /usr/local/include/X11/Xlib.h
- variable.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
- variable.o: /usr/include/sys/sysmacros.h /usr/local/include/X11/X.h
- variable.o: /usr/local/include/X11/Xfuncproto.h
- variable.o: /usr/local/include/X11/Xosdefs.h /usr/include/stddef.h
- variable.o: /usr/local/include/X11/Xutil.h /usr/local/include/X11/Xresource.h
- variable.o: /usr/include/string.h /usr/local/include/X11/Core.h
- variable.o: /usr/local/include/X11/Composite.h
- variable.o: /usr/local/include/X11/Constraint.h
- variable.o: /usr/local/include/X11/Object.h /usr/local/include/X11/RectObj.h
- variable.o: object.h actions.h tree.h builders.h
- eval_command.o: /usr/include/stdio.h /usr/include/string.h
- eval_command.o: /usr/include/sys/stdtypes.h eval_command.h string_buf.h
- string_buf.o: /usr/include/stdio.h /usr/include/string.h
- string_buf.o: /usr/include/sys/stdtypes.h /usr/include/assert.h string_buf.h
- builders.o: /usr/local/include/X11/IntrinsicP.h
- builders.o: /usr/local/include/X11/Intrinsic.h /usr/local/include/X11/Xlib.h
- builders.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
- builders.o: /usr/include/sys/sysmacros.h /usr/local/include/X11/X.h
- builders.o: /usr/local/include/X11/Xfuncproto.h
- builders.o: /usr/local/include/X11/Xosdefs.h /usr/include/stddef.h
- builders.o: /usr/local/include/X11/Xutil.h /usr/local/include/X11/Xresource.h
- builders.o: /usr/include/string.h /usr/local/include/X11/Core.h
- builders.o: /usr/local/include/X11/Composite.h
- builders.o: /usr/local/include/X11/Constraint.h
- builders.o: /usr/local/include/X11/Object.h /usr/local/include/X11/RectObj.h
- builders.o: /usr/local/include/X11/CoreP.h
- builders.o: /usr/local/include/X11/CompositeP.h
- builders.o: /usr/local/include/X11/ConstrainP.h
- builders.o: /usr/local/include/X11/ObjectP.h
- builders.o: /usr/local/include/X11/RectObjP.h
- builders.o: /usr/local/include/X11/StringDefs.h
- builders.o: /usr/local/include/X11/Xaw/Scrollbar.h
- builders.o: /usr/local/include/X11/Xmu/Converters.h
- builders.o: /usr/local/include/X11/Xaw/Text.h
- builders.o: /usr/local/include/X11/Xaw/TextSink.h
- builders.o: /usr/local/include/X11/Xaw/TextSrc.h
- builders.o: /usr/local/include/X11/Xaw/AsciiSrc.h
- builders.o: /usr/local/include/X11/Xaw/AsciiSink.h
- builders.o: /usr/local/include/X11/Xaw/AsciiText.h object.h actions.h tree.h
- builders.o: builders.h /usr/include/stdio.h
- graph.o: /usr/local/include/X11/Intrinsic.h /usr/local/include/X11/Xlib.h
- graph.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
- graph.o: /usr/include/sys/sysmacros.h /usr/local/include/X11/X.h
- graph.o: /usr/local/include/X11/Xfuncproto.h /usr/local/include/X11/Xosdefs.h
- graph.o: /usr/include/stddef.h /usr/local/include/X11/Xutil.h
- graph.o: /usr/local/include/X11/Xresource.h /usr/include/string.h
- graph.o: /usr/local/include/X11/Core.h /usr/local/include/X11/Composite.h
- graph.o: /usr/local/include/X11/Constraint.h /usr/local/include/X11/Object.h
- graph.o: /usr/local/include/X11/RectObj.h /usr/local/include/X11/StringDefs.h
- graph.o: /usr/local/include/X11/Xaw/Box.h
- graph.o: /usr/local/include/X11/Xmu/Converters.h
- graph.o: /usr/local/include/X11/Xaw/Cardinals.h
- graph.o: /usr/local/include/X11/Xaw/Command.h
- graph.o: /usr/local/include/X11/Xaw/Label.h
- graph.o: /usr/local/include/X11/Xaw/Simple.h
- graph.o: /usr/local/include/X11/Xaw/Scrollbar.h object.h actions.h tree.h
- graph.o: builders.h string_buf.h /usr/include/stdio.h
- SHAR_EOF
- chmod 0664 xtpanel/Makefile ||
- echo 'restore of xtpanel/Makefile failed'
- Wc_c="`wc -c < 'xtpanel/Makefile'`"
- test 30583 -eq "$Wc_c" ||
- echo 'xtpanel/Makefile: original size 30583, current size' "$Wc_c"
- fi
- # ============= xtpanel/builders.h ==============
- if test -f 'xtpanel/builders.h' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/builders.h (File already exists)'
- else
- echo 'x - extracting xtpanel/builders.h (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/builders.h' &&
- #ifndef BUILDERS_H
- #define BUILDERS_H
- X
- #include <X11/Intrinsic.h>
- #include "tree.h"
- X
- #ifndef _NO_PROTO
- X
- extern void build_message( entry*, Widget );
- extern void build_button( entry*, Widget, char* );
- extern void build_slider( entry*, Widget, char* );
- extern void build_dialog( entry*, Widget );
- extern void build_text( entry*, Widget );
- extern void build_menubutton( entry*, Widget );
- extern void build_list( entry*, Widget );
- extern void build_choice( entry*, Widget );
- extern void build_variable( entry*, Widget );
- extern void build_graph( entry*, Widget );
- X
- extern int SetTag( Widget, Arg*, int*, char*, char* );
- extern void common_tags( entry*, Arg*, int*, int );
- X
- #else
- X
- extern void build_message();
- extern void build_button();
- extern void build_slider();
- extern void build_dialog();
- extern void build_text();
- extern void build_menubutton();
- extern void build_list();
- extern void build_choice();
- extern void build_variable();
- extern void build_graph();
- X
- extern void common_tags();
- extern int SetTag();
- X
- #endif
- X
- #define SET_HEIGHT 1
- #define SET_WIDTH 2
- #define SET_ORIENT 4
- #define SET_FG 8
- #define SET_BG 16
- #define SET_BORDER 32
- #define SET_FONT 64
- #define SET_BITMAP 128
- #define SET_EDIT 256
- #define SET_ALL 511
- X
- #endif
- SHAR_EOF
- chmod 0664 xtpanel/builders.h ||
- echo 'restore of xtpanel/builders.h failed'
- Wc_c="`wc -c < 'xtpanel/builders.h'`"
- test 1227 -eq "$Wc_c" ||
- echo 'xtpanel/builders.h: original size 1227, current size' "$Wc_c"
- fi
- # ============= xtpanel/item.c ==============
- if test -f 'xtpanel/item.c' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/item.c (File already exists)'
- else
- echo 'x - extracting xtpanel/item.c (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/item.c' &&
- X
- /*
- X * Copyright 1992 the Board of Trustees of the Leland Stanford Junior
- X * University. Official permission to use this software is included in
- X * the documentation. It authorizes you to use this file for any
- X * non-commercial purpose, provided that this copyright notice is not
- X * removed and that any modifications made to this file are commented
- X * and dated in the style of the example below.
- X */
- X
- /*
- X *
- X * source file: ./xtpanel/item.c
- X *
- X * Steve Cole, Dave Nichols (SEP), August 31 1992
- X * Inserted this sample edit history entry.
- X * Please log any further modifications made to this file:
- X * Steve Cole, Dave Nichols (SEP), November 20 1992 - version 2.00
- X * 1) added new objects: toggle, scrollbar, graph.
- X * 2) added new actions: ASSIGN, SET.
- X * 3) objects can have multiple actions.
- X * 4) backquoted strings in actions get executed at action time.
- X */
- X
- #include <stdio.h>
- X
- #include <X11/Intrinsic.h>
- X
- #include "object.h"
- #include "item.h"
- X
- /*
- X * Function name: new_item
- X * Description: creates a structure for a new list
- X * or menubutton item.
- X * Arguments: info - info structure of choice, list, or menubutton.
- X * Returns: pointer to new structure of type itemdef
- X */
- struct itemdef* new_item(info)
- X struct itemizedinfo* info;
- {
- X struct itemdef *a, *b;
- X
- X if( info->firstitem == (struct itemdef*)0 ){
- X /* make the head of the list */
- X info->firstitem = (struct itemdef*) malloc( sizeof( struct itemdef ) );
- X info->firstitem->label = (char*)0;
- X info->firstitem->value = (char*)0;
- X info->firstitem->widgetname = (Widget)0;
- X info->firstitem->object = (Objdef*)0;
- X info->firstitem->next = (struct itemdef*)0;
- X }
- X
- X a = (struct itemdef*) malloc( sizeof( struct itemdef ) );
- X a->label = (char*)0;
- X a->value = (char*)0;
- X a->widgetname = (Widget)0;
- X a->object = (Objdef*)0;
- X a->next = (struct itemdef*)0;
- X
- X /* find the tail of the list */
- X for( b=info->firstitem; b->next != (struct itemdef*)0; b = b->next );
- X
- X b->next = a;
- X
- X return a;
- }
- /*
- X * Function name: find_item
- X * Description: loop over all items for a menubutton or list.
- X * find the one with the right label.
- X * Arguments: obj - object structure of menubutton or list.
- X * label - label to match
- X * Returns: pointer to item structure for matching item
- X */
- struct itemdef*
- X find_item(obj,label)
- Objdef* obj;
- char* label;
- {
- X struct itemdef* item;
- X
- X /* loop over items */
- X for ( item=((struct itemizedinfo *) obj->info)->firstitem;
- X item != (struct itemdef*) 0; item=item->next )
- X {
- X if (!strcmp(item->label,label)) {
- X return item;
- X }
- X }
- X
- X fprintf(stderr,"find_item cannot find item with label %s\n",
- X (char *) label);
- X exit(-1);
- }
- SHAR_EOF
- chmod 0664 xtpanel/item.c ||
- echo 'restore of xtpanel/item.c failed'
- Wc_c="`wc -c < 'xtpanel/item.c'`"
- test 2737 -eq "$Wc_c" ||
- echo 'xtpanel/item.c: original size 2737, current size' "$Wc_c"
- fi
- # ============= xtpanel/actions.c ==============
- if test -f 'xtpanel/actions.c' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/actions.c (File already exists)'
- else
- echo 'x - extracting xtpanel/actions.c (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/actions.c' &&
- X
- X
- /*
- X * Copyright 1992 the Board of Trustees of the Leland Stanford Junior
- X * University. Official permission to use this software is included in
- X * the documentation. It authorizes you to use this file for any
- X * non-commercial purpose, provided that this copyright notice is not
- X * removed and that any modifications made to this file are commented
- X * and dated in the style of the example below.
- X */
- X
- /*
- X *
- X * source file: ./xtpanel/actions.c
- X *
- X * Steve Cole, Dave Nichols (SEP), August 28 1992
- X * Inserted this sample edit history entry.
- X * Please log any further modifications made to this file:
- X * Steve Cole, Dave Nichols (SEP), November 20 1992 - version 2.00
- X * 1) added new objects: toggle, scrollbar, graph.
- X * 2) added new actions: ASSIGN, SET.
- X * 3) objects can have multiple actions.
- X * 4) backquoted strings in actions get executed at action time.
- X */
- X
- #include <stdio.h>
- #include <string.h>
- X
- #include "tree.h"
- X
- #include "actions.h"
- #include "object.h"
- #include "eval_command.h"
- #include "string_buf.h"
- X
- extern int quitflag;
- X
- /*
- X * Function name: parse_actions
- X * Description: parses all the actions for an object
- X * Arguments: name (object->name) root (level in tree)
- X * Returns: pointer to new structure of type action
- X */
- action* parse_actions( name, root )
- X char *name;
- X entry *root;
- {
- X action *topact;
- X char *act_string;
- X action *act;
- X entry *ent;
- X
- X /* Initiall no actions */
- X topact = (action*) 0;
- X
- X /* loop over action strings, parse each */
- X for (ent = get_next(root,"action",(entry*) 0);
- X ent != ((entry*) 0);
- X ent = get_next(root,"action",ent)) {
- X if( ent != (entry*)0 && ent->value != (char*)0 ) {
- X act_string = strdupl( ent->value );
- X }else{
- X act_string = strdupl( "NONE" );
- X }
- X
- X /* create a new action struct */
- X if( topact == (action*) 0){
- X act = topact = new_action( 0 );
- X }else{
- X act = (action*) new_action(topact);
- X }
- X parse_one_action( act, name, act_string );
- X }
- X
- X /* make an action of "NONE" if none were specified */
- X if( topact == 0 ){
- X act = topact = new_action( 0 );
- X parse_one_action( act, name, "NONE" );
- X }
- X
- X /* return the head of the list */
- X return topact;
- }
- X
- /*
- X * Function name: parse_one_action
- X * Description: parses a single action for an object
- X * Arguments: act (action structure) name (object->name) act_string (to parse)
- X * Returns: none
- X */
- void parse_one_action( act, name, act_string )
- X action *act;
- X char* name;
- X char* act_string;
- {
- X char *startpos;
- X int len;
- X int brackets;
- X
- X /* strip leading blanks */
- X len = strspn( act_string, " \t\n" );
- X act_string += len;
- X
- X
- X /* no action specified or "NONE" explicitly specified */
- X if( !strncmp( act_string, "NONE" , 4 ) ){
- X act->type=NONE; return;
- X }
- X
- X /* "QUIT" explicitly specified */
- X if( !strncmp( act_string, "QUIT" , 4 ) ){
- X quitflag=1;
- X act->type=QUIT; return;
- X }
- X
- X /* In either of the next three cases we will generate a "format" string */
- X if( !strncmp( act_string, "PRINT" , 5 ) ){
- X act->type=PRINT;
- X act_string += 5;
- X }else if(!strncmp( act_string, "STRING" , 6 ) ){
- X act->type=STRING;
- X act_string += 6;
- X }else if(!strncmp( act_string, "ASSIGN" , 6 ) ){
- X act->type=ASSIGN;
- X act_string += 6;
- X /* the next word is the object name to assign it to */
- X for(startpos=act_string; *startpos==' '; startpos++);
- X len = strcspn( startpos, " " ); act->assignto = malloc( len + 1);
- X strncpy( act->assignto, startpos, len ); act->assignto[len]='\0';
- X act_string = startpos+len+1;
- X
- X }else if(!strncmp( act_string, "SET" , 3 ) ){
- X act->type=SET;
- X act_string += 3;
- X /* the next word is the object name to assign it to */
- X for(startpos=act_string; *startpos==' '; startpos++);
- X len = strcspn( startpos, " " ); act->assignto = malloc( len + 1);
- X strncpy( act->assignto, startpos, len ); act->assignto[len]='\0';
- X act_string = startpos+len+1;
- X /* the next word is the tag to assign it to */
- X for(startpos=act_string; *startpos==' '; startpos++);
- X len = strcspn( startpos, " " ); act->totag = malloc( len + 1);
- X strncpy( act->totag, startpos, len ); act->totag[len]='\0';
- X act_string = startpos+len+1;
- X
- X }else if(!strncmp( act_string, "SYSTEM" , 6 ) ){
- X act->type=SYSTEM;
- X act_string += 6;
- X }else {
- X act->type=SYSTEM;
- X }
- X
- X /* allocate space, probably a little too much, better safe than sorry */
- X act->format = malloc( strlen( act_string ) + 10 );
- X act->format[0] = '\0';
- X
- X while( *act_string != '\0' ){
- X
- X /* look for the next '$' */
- X len = strcspn( act_string, "$" );
- X
- X /* copy up to this point */
- X strncat( act->format, act_string, len );
- X
- X act_string += len;
- X
- X if( *act_string != '\0' ){
- X
- X /* we have found a new $ token */
- X
- X if( act_string[1] == '$' ){
- X /* double $$ means emit a single $ in the format */
- X strcat( act->format, "$" ); act_string +=2;
- X
- X }else{
- X
- X if( act->num_args == MAX_ARG ){
- X fprintf(stderr,
- X "Too many variables in an action, max is %d\n",
- X MAX_ARG);
- X exit(-1);
- X }
- X
- X /* add a "$val to the format */
- X strncat( act->format, "$val" , 4 );
- X
- X act_string++; /* skip the $ */
- X
- X /* skip ( between $ and variable name */
- X brackets = 0;
- X if( *act_string == '(' ){ act_string++; brackets = 1; }
- X
- X /* look for the next blank, $, ), or quote
- X and examine the string */
- X len = strcspn( act_string, "$ )\"'`" );
- X
- X /* if it is $val use this object's string */
- X if( !strncmp( act_string, "val", len ) ){
- X act->args[act->num_args] = strdupl(name);
- X if( !strcmp( act->args[act->num_args], "NONAME" ) ){
- X fprintf(stderr,
- X " actions with $val must specify a name\n");
- X exit(-1);
- X }
- X act->num_args++;
- X
- X }else{
- X act->args[act->num_args] = malloc( len+1 );
- X strncpy( act->args[act->num_args] , act_string, len );
- X (act->args[act->num_args])[len] = '\0';
- X act->num_args++;
- X }
- X act_string +=len;
- X
- X /* skip ) if there was a ( between $ and variable name */
- X if( brackets==1 ){
- X if( *act_string == ')' ){
- X act_string++;
- X }else{
- X fprintf(stderr,"closing bracket missing after $(%s \n",
- X act->args[act->num_args-1] );
- X exit(-1);
- X }
- X }
- X }
- X }
- X }
- X
- }
- X
- /*
- X * Function name: new_action
- X * Description: creates a structure for a new action
- X * Arguments: action* topact ( first item in action list for an object)
- X * Returns: pointer to new structure of type action
- X */
- action* new_action(topact)
- X action* topact;
- {
- X action *a, *b;
- X
- X /* make a new action */
- X a = (action*) malloc( sizeof( action ) );
- X a->num_args = (int) 0;
- X a->assignto = (char *) 0;
- X a->next= (action*) 0;
- X
- X if( topact == (action*)0 ) return a;
- X
- X /* find the tail of the list */
- X for( b=topact; b->next != (action*)0; b = b->next );
- X
- X b->next = a;
- X
- X return a;
- }
- X
- /*
- X * Function name: performs_actions
- X * Description: performs all the actions for an object
- X * Arguments: name (object->name) topact (head of action list)
- X * all (>0 do all actions; =0 string actions only)
- X * Returns: int
- X */
- int perform_actions( name, topact, all )
- X char *name;
- X action *topact;
- X int all;
- {
- X action *act;
- X int retcode=0;
- X
- X for (act=topact; act != (action*) 0; act=act->next) {
- X if (all || act->type == STRING || act->type == NONE)
- X retcode += perform_one_action( name, act );
- X }
- X
- X return retcode;
- }
- X
- /*
- X * Function name: perform_one_action
- X * Description: performs a single action for an object
- X * Arguments: name (object->name) act (action)
- X * Returns: int
- X */
- int perform_one_action( name, act )
- X char *name;
- X action *act;
- {
- X char *action_line;
- X
- X switch( act->type ){
- X case( NONE ):
- X return 0;
- X break;
- X
- X case( QUIT ):
- X quit_xtpanel();
- X break;
- X
- X case( PRINT ):
- X action_line = format_action( act );
- X printf( "%s",action_line );
- X fflush(stdout);
- X return 1;
- X break;
- X
- X case( STRING ):
- X action_line = format_action( act );
- X set_string( name, action_line );
- X return 0;
- X break;
- X
- X case( ASSIGN ):
- X action_line = format_action( act );
- X update_object( act->assignto, action_line );
- X return 0;
- X break;
- X
- X case( SET ):
- X action_line = format_action( act );
- X update_tag( act->assignto, act->totag, action_line );
- X return 0;
- X break;
- X
- X case( SYSTEM ):
- X action_line = format_action( act );
- X system( action_line );
- X return 1;
- X break;
- X }
- X
- X return 0;
- }
- X
- /*
- X * Function name: all_string_actions
- X * Description: determines whether all actions for an object are string type
- X * Arguments: topact (head of action list )
- X * Returns: int (=0 if not all actions are strings, =1 otherwise)
- X */
- int all_string_actions( topact )
- X action *topact;
- {
- X action *act;
- X int all_strings = 1;
- X for (act=topact; act != (action*) 0; act=act->next) {
- X if (act->type == PRINT || act->type == SYSTEM ||
- X act->type == ASSIGN || act->type == SET) all_strings = 0;
- X }
- X return all_strings;
- }
- X
- X
- static char* expand_args();
- static char* expand_eval();
- X
- /* get the arguments from the object list and format the
- X * output string in the buffer " */
- char* format_action( act )
- X action* act;
- {
- X
- X char *tmp1, *tmp2 ;
- X
- X tmp1 = strdupl( expand_args( act) );
- X
- X tmp2 = expand_eval( tmp1 );
- X
- X free( tmp1 );
- X
- X return ( tmp2 );
- X
- }
- X
- /* get the arguments from the object list and format the
- X * output string in the buffer "action_line" */
- static char* expand_args( act )
- action* act;
- {
- X char* start, *next;
- X char *arg;
- X int len;
- X int i;
- X string_buf *buffer;
- X
- X buffer = buf_start();
- X
- X /* retrieve the strings from the objects */
- X
- X start = act->format;
- X for( i=0 ; i<act->num_args ;i++ ){
- X /* find the next $val in the action format */
- X next = strstr( start, "$val" );
- X if( next == NULL ){
- X fprintf(stderr,
- X "format_action(), couldn't format argument number %d \n",i);
- X exit(-1);
- X }
- X
- X /* copy the format string up to this point */
- X len = next-start;
- X buf_cat( buffer, start, len );
- X /* now copy the string argument */
- X arg = get_string( act->args[i] );
- X buf_cat( buffer, arg, strlen( arg ) );
- X /* skip the "$val" */
- X start = next+4;
- X }
- X
- X /* copy anything left over */
- X buf_cat( buffer, start, strlen(start) );
- X
- X return buf_fetch(buffer);
- X
- }
- X
- X
- static char* expand_eval( format )
- char* format;
- {
- X char* res;
- X char *start, *next;
- X string_buf *buffer;
- X
- X buffer = buf_start();
- X
- X start = format; next = start;
- X
- X while( (next=strchr( start, '`' ) ) != NULL ){
- X
- X /* copy up to this point */
- X *next = '\0';
- X buf_cat( buffer, start, strlen(start) );
- X
- X /* a command to evaluate */
- X start = ++next;
- X /* find the closing backquote */
- X next = strchr( start, '`' );
- X if( next == NULL ){
- X fprintf(stderr,
- X "format_action(), couldn't find matching backquote\n");
- X exit(-1);
- X }
- X *next='\0';
- X
- X /* get the resulting string and add it to the buffer */
- X res = eval_command( start );
- X buf_cat( buffer, res, strlen(res) );
- X
- X /* now keep going after the second backquote */
- X start= (++next);
- X
- X }
- X
- X /* anything left? */
- X buf_cat( buffer, start, strlen(start) );
- X
- X /* return the formatted string */
- X return( buf_fetch(buffer) );
- X
- }
- X
- X
- void print_action( act )
- X action* act;
- {
- X int i;
- X
- X switch( act->type ){
- X case( NONE ):
- X printf(" action type NONE \n");
- X return;
- X break;
- X case( QUIT ):
- X printf(" action type QUIT \n");
- X return;
- X break;
- X
- X case( PRINT ):
- X printf(" action type PRINT \n");
- X break;
- X
- X case( SYSTEM ):
- X printf(" action type SYSTEM \n");
- X break;
- X
- X case( STRING ):
- X printf(" action type STRING \n");
- X break;
- X
- X case( ASSIGN ):
- X printf(" action type ASSIGN \n");
- X break;
- X
- X case( SET ):
- X printf(" action type SET \n");
- X break;
- X }
- X
- X printf(" action format = ->%s<- \n",act->format);
- X
- X for( i=0; i<act->num_args; i++ ){
- X printf(" argument %d is %s \n",i,act->args[i]);
- X }
- X
- }
- X
- SHAR_EOF
- chmod 0664 xtpanel/actions.c ||
- echo 'restore of xtpanel/actions.c failed'
- Wc_c="`wc -c < 'xtpanel/actions.c'`"
- test 12032 -eq "$Wc_c" ||
- echo 'xtpanel/actions.c: original size 12032, current size' "$Wc_c"
- fi
- # ============= xtpanel/CHANGES ==============
- if test -f 'xtpanel/CHANGES' -a X"$1" != X"-c"; then
- echo 'x - skipping xtpanel/CHANGES (File already exists)'
- else
- echo 'x - extracting xtpanel/CHANGES (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'xtpanel/CHANGES' &&
- version 1.0 - 2 Sep 92
- X
- version 1.01 - 3 Sep 92
- 1) Made all lines < 80 characters long. Some mailers truncated long lines.
- 2) Shortened some file names.
- 3) get_string now checks for unitialized objects and returns an empty string
- X if nothing has been set.
- X
- version 2.00 - 20 Nov 92
- 1) Objects can have multiple actions; they get executed in order specified.
- 2) Added new action ASSIGN. Allows one object to change another's value.
- 3) Allow backquotes in actions; these get evaluated at action time.
- 4) Added new objects scrollbar, toggle, graph.
- 5) Message and text now have a value, not a label.
- 6) Can use parentheses around variable names (e.g. $(var) ) in actions.
- X Avoids putting a space between value of variable and what follows.
- 7) All objects now have a number of settable attributes: height, width,
- X foreground, background, borderColor (colors), orientation, font,
- X bitmap, editType.
- 8) Added new action SET which updates object's resources.
- 9) Changed the example script to put its jobs in the background.
- 10) Fixed bug in help scripts regarding "show copyright".
- 11) Updated generator to take advantage of new features.
- 12) New examples - calculator, color_selector, bitmap_browser.
- SHAR_EOF
- chmod 0664 xtpanel/CHANGES ||
- echo 'restore of xtpanel/CHANGES failed'
- Wc_c="`wc -c < 'xtpanel/CHANGES'`"
- test 1205 -eq "$Wc_c" ||
- echo 'xtpanel/CHANGES: original size 1205, current size' "$Wc_c"
- fi
- true || echo 'restore of xtpanel/main.c failed'
- echo End of part 4, continue with part 5
- exit 0
- -----------------------------------------------------------------
- Steve Cole (steve@sep.stanford.edu, apple!sep!steve)
- Department of Geophysics, Stanford University, Stanford, CA 94305
-