home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / x / volume16 / xcmdpanl / part02 < prev    next >
Encoding:
Text File  |  1992-03-03  |  27.3 KB  |  1,017 lines

  1. Newsgroups: comp.sources.x
  2. Path: uunet!usc!zaphod.mps.ohio-state.edu!mips!msi!dcmartin
  3. From: erlkonig@gnu.ai.mit.edu (Christopher Alex. North-Keys)
  4. Subject: v16i099: xcmdpanel - command panel interface for X, Part02/02
  5. Message-ID: <1992Mar4.162620.18194@msi.com>
  6. Originator: dcmartin@fascet
  7. Sender: dcmartin@msi.com (David C. Martin - Moderator)
  8. Organization: Molecular Simulations, Inc.
  9. References: <csx-16i098-xcmdpanel-1.1@uunet.UU.NET>
  10. Date: Wed, 4 Mar 1992 16:26:20 GMT
  11. Approved: dcmartin@msi.com
  12. Lines: 1003
  13.  
  14. Submitted-by: erlkonig@gnu.ai.mit.edu (Christopher Alex. North-Keys)
  15. Posting-number: Volume 16, Issue 99
  16. Archive-name: xcmdpanel-1.1/part02
  17.  
  18. # This is part 02 of a multipart archive
  19. # ============= xcmdpanel.txt ==============
  20. if test -f 'xcmdpanel.txt' -a X"$1" != X"-c"; then
  21.     echo 'x - skipping xcmdpanel.txt (File already exists)'
  22. else
  23. echo 'x - extracting xcmdpanel.txt (Text)'
  24. sed 's/^X//' << 'SHAR_EOF' > 'xcmdpanel.txt' &&
  25. X
  26. X
  27. X
  28. XXCMDPANEL(1)             USER COMMANDS               XCMDPANEL(1)
  29. X
  30. X
  31. X
  32. NAME
  33. X     xcmdpanel - command panel utility for X
  34. X
  35. SYNOPSIS
  36. X     xcmdpanel [-help] [-debug] [-ghost|-noghost] [-boxed|-paned]
  37. X     [_f_i_l_e_n_a_m_e]
  38. X
  39. DESCRIPTION
  40. X     The _x_c_m_d_p_a_n_e_l  program  allows  the  user  to  run  a  user-
  41. X     configured command panel on a workstation display running X.
  42. X     Each xcmdpanel is composed of buttons, each of which may  be
  43. X     configured  to  run  a  shell command using the Bourne shell
  44. X     sh(1).  Buttons without associated commands are merely  used
  45. X     as labels.
  46. X
  47. OPTIONS
  48. X     The various options may appear in any order:
  49. X
  50. X     _f_i_l_e_n_a_m_e
  51. X          A file containing the label/command pairs and  comments
  52. X          used to configure an invocation of xcmdpanel.  Defaults
  53. X          to .xcmdpanel in the current directory or  ~/.xcmdpanel
  54. X          in the home directory if .xcmdpanel is unavailable.
  55. X
  56. X     -help
  57. X          Print a usage message and exit.
  58. X
  59. X     -ghost
  60. X          Allow each button to be activated only once, whereafter
  61. X          that  button  will be _g_h_o_s_t_e_d to indicate that it is no
  62. X          longer valid.
  63. X
  64. X     -noghost
  65. X          Don't use ghosting, instead allow multiple use  of  all
  66. X          command buttons (the default).
  67. X
  68. X     -boxed
  69. X          Use the boxedWidget to manage the buttons.  This causes
  70. X          the buttons to appear in a tray-style arrangement.
  71. X
  72. X     -paned
  73. X          Use  the  panedWidget  to  manage  the   buttons   (the
  74. X          default).   This causes the buttons to appear in a sin-
  75. X          gle column.
  76. X
  77. X     xcmdpanel will also accept the standard X  Toolkit  options;
  78. X     see the xterm(1) manual page, subsection RESOURCES.
  79. X
  80. USAGE
  81. X     The xcmdpanel has been used to ease project  management,  to
  82. X     pop  up  automatically  generated  menus, and to handle menu
  83. X     hierarchies.  It is characterized  by  small,  project-  and
  84. X
  85. X
  86. X
  87. XX Version 11         Last change: Release 5                     1
  88. X
  89. X
  90. X
  91. X
  92. X
  93. X
  94. XXCMDPANEL(1)             USER COMMANDS               XCMDPANEL(1)
  95. X
  96. X
  97. X
  98. X     directory-specific  menus, generally run at need rather than
  99. X     from xinit(1) or the like.
  100. X
  101. X     Output from a particular invocation of xcmdpanel  will  gen-
  102. X     erally  show  up  in the xterm(1) from which it was invoked.
  103. X     Hence the parent terminal is often used as a display  window
  104. X     for ls(1) and make(1) output.
  105. X
  106. X     The configuration file is composed of labels and commands in
  107. X     parentheses, and comments (any not in parentheses).  Nesting
  108. X     of parentheses is observed unless a parenthesis  is  escaped
  109. X     with  a  backslash,  which  itself  may  be  so escaped (see
  110. X     SCRIPTS).
  111. X
  112. X     All text outside of parentheses is ignored.
  113. X
  114. X     Parenthesized strings  are  automatically  paired,  ignoring
  115. X     newlines.  Any _l_a_b_e_l associated with an empty _c_o_m_m_a_n_d string
  116. X     is considered to be a text button rather than a  title  but-
  117. X     ton, and is automatically ghosted.  _L_a_b_e_ls may also be empty
  118. X     strings, and will produce blank text boxes in the  resulting
  119. X     menu.
  120. X
  121. EXAMPLES
  122. X     To use the underlying X Toolkit options to select a particu-
  123. X     lar font:
  124. X
  125. X          xcmdpanel -fn '*sony*24*'
  126. X
  127. X     Another example using explicit resources:
  128. X
  129. X          xcmdpanel -xrm '*font: *sony*24*'
  130. X
  131. X     To get the same effect through an X RESOURCES file,  include
  132. X     the following line in your resources file:
  133. X
  134. X          xcmdpanel*font: *sony*24*
  135. X
  136. SCRIPTS
  137. X     A project menu:
  138. X
  139. X
  140. X              Label   Command
  141. X
  142. X          (Title)         ()
  143. X          ( ( \) ) )      ()     a test label showing parens
  144. X          ()              ()
  145. X          (Clear)         (clear &)
  146. X          (Make)          (make &)
  147. X          (Edit File)     (${EDITOR} `ifc .` &)   InterViews only
  148. X          (Run a.out)     (a.out &)               execute
  149. X          (List)          (echo listing ; ls -Flasg &)
  150. X
  151. X
  152. X
  153. XX Version 11         Last change: Release 5                     2
  154. X
  155. X
  156. X
  157. X
  158. X
  159. X
  160. XXCMDPANEL(1)             USER COMMANDS               XCMDPANEL(1)
  161. X
  162. X
  163. X
  164. X          (Du)            (du . &)
  165. X          (Update Menu)   (xcmdpanel -debug &)
  166. X          (Time Test)     (sleep 5)
  167. X
  168. X     Generating an audio menu on a Sun SPARC in csh(1):
  169. X
  170. X
  171. X          rm .xcmdpanel
  172. X          foreach file ( *.au )
  173. X              echo -n "(`expr $file : '\(.*\).au'`)" >> .xcmdpanel
  174. X              echo    "(cat $file > /dev/audio)"     >> .xcmdpanel
  175. X          end
  176. X          xcmdpanel -boxed &
  177. X
  178. X     Generating an audio menu on a Sun SPARC in sh(1):
  179. X
  180. X
  181. X          for file in *.au
  182. X          do
  183. X              echo -n "(`expr $file : '\(.*\).au'`)"
  184. X              echo    "(cat $file > /dev/audio)"
  185. X          done > .xcmdpanel
  186. X          xcmdpanel -boxed &
  187. X
  188. XX RESOURCES
  189. X     xcmdpanel uses the following X resources:
  190. X
  191. X     paned (class Paned)
  192. X                   Indicates  whether  to  use  the  panedWidget.
  193. X                   Defaults  to  true.  If false, the boxedWidget
  194. X                   is used instead.
  195. X
  196. X     ghost (class Ghost)
  197. X                   Indicates whether buttons are  to  be  ghosted
  198. X                   after selection.  Defaults to false.
  199. X
  200. X     debug (class Debug)
  201. X                   Whether or not to do debugging.   Defaults  to
  202. X                   false.
  203. X
  204. X     xcmdpanel also uses the resources of its subwidgets, includ-
  205. X     ing   the   commandWidget,   panedWidget,   boxWidget,   and
  206. X     textWidget.
  207. X
  208. FILES
  209. X     .xcmdpanel          The usual  configuration  file  (in  the
  210. X                         current   dir)   for  an  invocation  of
  211. X                         xcmdpanel.
  212. X     ~/.xcmdpanel        Default configuration file to be read by
  213. X                         xcmdpanel when no other appropriate file
  214. X                         is available.
  215. X
  216. X
  217. X
  218. X
  219. XX Version 11         Last change: Release 5                     3
  220. X
  221. X
  222. X
  223. X
  224. X
  225. X
  226. XXCMDPANEL(1)             USER COMMANDS               XCMDPANEL(1)
  227. X
  228. X
  229. X
  230. SEE ALSO
  231. X     X(1), xinit(1), sh(1), system(3)
  232. X
  233. BUGS
  234. X     Probably.
  235. X
  236. COPYRIGHT
  237. X     Copyright (c) 1990, Christopher Alexander North-Keys
  238. X
  239. X     Author's  credit  must  be  retained  in  binaries,   manual
  240. X     entries, sources, and derived code.
  241. X
  242. X     This software may be freely copied,  distributed,  compiled,
  243. X     altered,  and  sold,  provided  the  above  restrictions are
  244. X     observed.
  245. X
  246. X     This software is provided "as is", with no warranty, guaran-
  247. X     tee,  support,  maintenance, update schedule, claims to fit-
  248. X     ness for any purpose, or anything else from  the  author  or
  249. X     the  author's  employer(s).   See  the source code for addi-
  250. X     tional copyright and limitation information.
  251. X
  252. AUTHOR
  253. X     Christopher Alexander North-Keys
  254. X     <erlkonig@gnu.ai.mit.edu>
  255. X
  256. X     Director/Instructor of OS and Software Design
  257. X     RDA Computer Training
  258. X
  259. NOTES
  260. X     The xcmdpanel program was produced  under  the  auspices  of
  261. X     Group  Talisman.  I'd also like to thank Mic Kaczmarczik for
  262. X     his aid in documentation.
  263. X     if test 5490 -ne `wc -c <'xcmdpanel.man'`; then
  264. X         echo shar: fi # end of 'xcmdpanel.man'  fi  if  test  -f
  265. X     'xcmdpanel.txt' -a "${1}" != "-c" ; then
  266. X       echo shar: Will not clobber existing file else echo  shar:
  267. X     Extracting sed "s/^X//" >'xcmdpanel.txt' <<'END_OF_FILE'
  268. X
  269. X
  270. X
  271. X     XCMDPANEL(1)                        USER            COMMANDS
  272. X     XCMDPANEL(1)
  273. X
  274. X
  275. X
  276. X     NAME
  277. X          xcmdpanel - command panel utility for X
  278. X
  279. X     SYNOPSIS
  280. X          xcmdpanel [-help] [-debug] [-ghost|-noghost]  [-boxed|-
  281. X     paned]
  282. X
  283. X
  284. X
  285. XX Version 11         Last change: Release 5                     4
  286. X
  287. X
  288. X
  289. X
  290. X
  291. X
  292. XXCMDPANEL(1)             USER COMMANDS               XCMDPANEL(1)
  293. X
  294. X
  295. X
  296. X          [filename]
  297. X
  298. X     DESCRIPTION
  299. X          The xcmdpanel  program  allows  the  user  to   run   a
  300. X     user-
  301. X          configured command panel on a workstation display  run-
  302. X     ning X.
  303. X          Each xcmdpanel is composed of buttons,  each  of  which
  304. X     may  be
  305. X          configured  to  run  a  shell command using the  Bourne
  306. X     shell
  307. X          sh(1).  Buttons without associated commands are  merely
  308. X     used
  309. X          as labels.
  310. X
  311. X     OPTIONS
  312. X          The various options may appear in any order:
  313. X
  314. X          filename
  315. X               A file  containing  the  label/command  pairs  and
  316. X     comments
  317. X               used to  configure  an  invocation  of  xcmdpanel.
  318. X     Defaults
  319. X               to  .xcmdpanel  in  the   current   directory   or
  320. X     ~/.xcmdpanel
  321. X               in the home directory if  .xcmdpanel  is  unavail-
  322. X     able.
  323. X
  324. X          -help
  325. X               Print a usage message and exit.
  326. X
  327. X          -ghost
  328. X               Allow each  button  to  be  activated  only  once,
  329. X     whereafter
  330. X               that  button  will be ghosted to indicate that  it
  331. X     is no
  332. X               longer valid.
  333. X
  334. X          -noghost
  335. X               Don't use ghosting, instead allow multiple use  of
  336. X     all
  337. X               command buttons (the default).
  338. X
  339. X          -boxed
  340. X               Use the boxedWidget to manage the  buttons.   This
  341. X     causes
  342. X               the buttons to appear in a tray-style arrangement.
  343. X
  344. X          -paned
  345. X               Use  the  panedWidget  to  manage   the    buttons
  346. X     (the
  347. X               default).   This causes the buttons to appear in a
  348. X
  349. X
  350. X
  351. XX Version 11         Last change: Release 5                     5
  352. X
  353. X
  354. X
  355. X
  356. X
  357. X
  358. XXCMDPANEL(1)             USER COMMANDS               XCMDPANEL(1)
  359. X
  360. X
  361. X
  362. X     sin-
  363. X               gle column.
  364. X
  365. X          xcmdpanel will also  accept  the  standard  X   Toolkit
  366. X     options;
  367. X          see the xterm(1) manual page, subsection RESOURCES.
  368. X
  369. X     USAGE
  370. X          The xcmdpanel has been used to  ease  project   manage-
  371. X     ment,  to
  372. X          pop  up  automatically  generated  menus, and to handle
  373. X     menu
  374. X          hierarchies.  It is characterized  by  small,  project-
  375. X     and
  376. X
  377. X
  378. X
  379. X     X   Version    11            Last    change:    Release    5
  380. X     1
  381. X
  382. X
  383. X
  384. X
  385. X
  386. X
  387. X     XCMDPANEL(1)                        USER            COMMANDS
  388. X     XCMDPANEL(1)
  389. X
  390. X
  391. X
  392. X          directory-specific  menus, generally run at need rather
  393. X     than
  394. X          from xinit(1) or the like.
  395. X
  396. X          Output from a particular invocation of xcmdpanel   will
  397. X     gen-
  398. X          erally  show  up  in the xterm(1)  from  which  it  was
  399. X     invoked.
  400. X          Hence the parent terminal is often used  as  a  display
  401. X     window
  402. X          for ls(1) and make(1) output.
  403. X
  404. X          The configuration file is composed of labels  and  com-
  405. X     mands in
  406. X          parentheses, and comments  (any  not  in  parentheses).
  407. X     Nesting
  408. X          of parentheses is observed  unless  a  parenthesis   is
  409. X     escaped
  410. X          with  a  backslash,  which  itself  may  be  so escaped
  411. X     (see
  412. X          SCRIPTS).
  413. X
  414. X
  415. X
  416. X
  417. XX Version 11         Last change: Release 5                     6
  418. X
  419. X
  420. X
  421. X
  422. X
  423. X
  424. XXCMDPANEL(1)             USER COMMANDS               XCMDPANEL(1)
  425. X
  426. X
  427. X
  428. X          All text outside of parentheses is ignored.
  429. X
  430. X          Parenthesized  strings   are   automatically    paired,
  431. X     ignoring
  432. X          newlines.  Any label associated with an  empty  command
  433. X     string
  434. X          is considered to be a text button rather than a   title
  435. X     but-
  436. X          ton, and is automatically ghosted.  Labels may also  be
  437. X     empty
  438. X          strings, and will  produce  blank  text  boxes  in  the
  439. X     resulting
  440. X          menu.
  441. X
  442. X     EXAMPLES
  443. X          To use the underlying X Toolkit  options  to  select  a
  444. X     particu-
  445. X          lar font:
  446. X
  447. X               xcmdpanel -fn '*sony*24*'
  448. X
  449. X          Another example using explicit resources:
  450. X
  451. X               xcmdpanel -xrm '*font: *sony*24*'
  452. X
  453. X          To get the same effect through  an  X  RESOURCES  file,
  454. X     include
  455. X          the following line in your resources file:
  456. X
  457. X               xcmdpanel*font: *sony*24*
  458. X
  459. X     SCRIPTS
  460. X          A project menu:
  461. X
  462. X
  463. X                   Label   Command
  464. X
  465. X               (Title)         ()
  466. X               ( ( ) ) )      ()     a test label showing parens
  467. X               ()              ()
  468. X               (Clear)         (clear &)
  469. X               (Make)          (make &)
  470. X               (Edit File)     (${EDITOR} `ifc .` &)   InterViews
  471. X     only
  472. X               (Run a.out)     (a.out &)               execute
  473. X               (List)          (echo listing ; ls -Flasg &)
  474. X
  475. X
  476. X
  477. X     X   Version    11            Last    change:    Release    5
  478. X     2
  479. X
  480. X
  481. X
  482. X
  483. XX Version 11         Last change: Release 5                     7
  484. X
  485. X
  486. X
  487. X
  488. X
  489. X
  490. XXCMDPANEL(1)             USER COMMANDS               XCMDPANEL(1)
  491. X
  492. X
  493. X
  494. X     XCMDPANEL(1)                        USER            COMMANDS
  495. X     XCMDPANEL(1)
  496. X
  497. X
  498. X
  499. X               (Du)            (du . &)
  500. X               (Update Menu)   (xcmdpanel -debug &)
  501. X               (Time Test)     (sleep 5)
  502. X
  503. X          Generating an audio menu on a Sun SPARC in csh(1):
  504. X
  505. X
  506. X               rm .xcmdpanel
  507. X               foreach file ( *.au )
  508. X                   echo  -n  "(`expr   $file   :   ').au'`)"   >>
  509. X     .xcmdpanel
  510. X                   echo     "(cat  $file  >  /dev/audio)"      >>
  511. X     .xcmdpanel
  512. X               end
  513. X               xcmdpanel -boxed &
  514. X
  515. X          Generating an audio menu on a Sun SPARC in sh(1):
  516. X
  517. X
  518. X               for file in *.au
  519. X               do
  520. X                   echo -n "(`expr $file : ').au'`)"
  521. X                   echo    "(cat $file > /dev/audio)"
  522. X               done > .xcmdpanel
  523. X               xcmdpanel -boxed &
  524. X
  525. X     X RESOURCES
  526. X          xcmdpanel uses the following X resources:
  527. X
  528. X          paned (class Paned)
  529. X                        Indicates    whether    to    use     the
  530. X     panedWidget.
  531. X                        Defaults  to  true.  If false,  the  box-
  532. X     edWidget
  533. X                        is used instead.
  534. X
  535. X          ghost (class Ghost)
  536. X                        Indicates whether  buttons  are   to   be
  537. X     ghosted
  538. X                        after selection.  Defaults to false.
  539. X
  540. X          debug (class Debug)
  541. X                        Whether   or   not   to   do   debugging.
  542. X     Defaults  to
  543. X                        false.
  544. X
  545. X          xcmdpanel also uses the resources  of  its  subwidgets,
  546. X
  547. X
  548. X
  549. XX Version 11         Last change: Release 5                     8
  550. X
  551. X
  552. X
  553. X
  554. X
  555. X
  556. XXCMDPANEL(1)             USER COMMANDS               XCMDPANEL(1)
  557. X
  558. X
  559. X
  560. X     includ-
  561. X          ing   the   commandWidget,   panedWidget,    boxWidget,
  562. X     and
  563. X          textWidget.
  564. X
  565. X     FILES
  566. X          .xcmdpanel          The usual  configuration  file  (in
  567. X     the
  568. X                              current   dir)   for   an   invoca-
  569. X     tion  of
  570. X                              xcmdpanel.
  571. X          ~/.xcmdpanel        Default configuration  file  to  be
  572. X     read by
  573. X                              xcmdpanel when no other appropriate
  574. X     file
  575. X                              is available.
  576. X
  577. X
  578. X
  579. X
  580. X     X   Version    11            Last    change:    Release    5
  581. X     3
  582. X
  583. X
  584. X
  585. X
  586. X
  587. X
  588. X     XCMDPANEL(1)                        USER            COMMANDS
  589. X     XCMDPANEL(1)
  590. X
  591. X
  592. X
  593. X     SEE ALSO
  594. X          X(1), xinit(1), sh(1), system(3)
  595. X
  596. X     BUGS
  597. X          Probably.
  598. X
  599. X     COPYRIGHT
  600. X          Copyright (c) 1990, Christopher Alexander North-Keys
  601. X
  602. X          Author's  credit  must   be   retained   in   binaries,
  603. X     manual
  604. X          entries, sources, and derived code.
  605. X
  606. X          This software may be freely copied,  distributed,  com-
  607. X     piled,
  608. X          altered,  and  sold,  provided   the   above   restric-
  609. X     tions are
  610. X          observed.
  611. X
  612. X
  613. X
  614. X
  615. XX Version 11         Last change: Release 5                     9
  616. X
  617. X
  618. X
  619. X
  620. X
  621. X
  622. XXCMDPANEL(1)             USER COMMANDS               XCMDPANEL(1)
  623. X
  624. X
  625. X
  626. X          This software is provided "as is",  with  no  warranty,
  627. X     guaran-
  628. X          tee,  support,  maintenance, update schedule, claims to
  629. X     fit-
  630. X          ness for  any  purpose,  or  anything  else  from   the
  631. X     author  or
  632. X          the  author's  employer(s).   See  the source code  for
  633. X     addi-
  634. X          tional copyright and limitation information.
  635. X
  636. X     AUTHOR
  637. X          Christopher Alexander North-Keys
  638. X          <erlkonig@gnu.ai.mit.edu>
  639. X
  640. X          Director/Instructor of OS and Software Design
  641. X          RDA Computer Training
  642. X
  643. X     NOTES
  644. X          The  xcmdpanel  program  was   produced    under    the
  645. X     auspices  of
  646. X          Group   Talisman.   I'd  also   like   to   thank   Mic
  647. X     Kaczmarczik for
  648. X          his aid in documentation.
  649. X
  650. X
  651. X
  652. X
  653. X
  654. X
  655. X
  656. X
  657. X
  658. X
  659. X
  660. X
  661. X
  662. X
  663. X
  664. X
  665. X
  666. X
  667. X
  668. X
  669. X
  670. X
  671. X     X   Version    11            Last    change:    Release    5
  672. X     4
  673. X
  674. X
  675. X
  676. X
  677. X
  678. X
  679. X
  680. X
  681. XX Version 11         Last change: Release 5                    10
  682. X
  683. X
  684. X
  685. SHAR_EOF
  686. chmod 0644 xcmdpanel.txt ||
  687. echo 'restore of xcmdpanel.txt failed'
  688. Wc_c="`wc -c < 'xcmdpanel.txt'`"
  689. test 16364 -eq "$Wc_c" ||
  690.     echo 'xcmdpanel.txt: original size 16364, current size' "$Wc_c"
  691. fi
  692. # ============= Makefile.std ==============
  693. if test -f 'Makefile.std' -a X"$1" != X"-c"; then
  694.     echo 'x - skipping Makefile.std (File already exists)'
  695. else
  696. echo 'x - extracting Makefile.std (Text)'
  697. sed 's/^X//' << 'SHAR_EOF' > 'Makefile.std' &&
  698. # Makefile generated by imake - do not edit!
  699. # $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
  700. #
  701. # The cpp used on this machine replaces all newlines and multiple tabs and
  702. # spaces in a macro expansion with a single space.  Imake tries to compensate
  703. # for this, but is not always successful.
  704. #
  705. X
  706. ###########################################################################
  707. # Makefile generated from "Imake.tmpl" and <Imakefile>
  708. # $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
  709. #
  710. # Platform-specific parameters may be set in the appropriate .cf
  711. # configuration files.  Site-wide parameters may be set in the file
  712. # site.def.  Full rebuilds are recommended if any parameters are changed.
  713. #
  714. # If your C preprocessor doesn't define any unique symbols, you'll need
  715. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  716. # "make Makefile", "make Makefiles", or "make World").
  717. #
  718. # If you absolutely can't get imake to work, you'll need to set the
  719. # variables at the top of each Makefile as well as the dependencies at the
  720. # bottom (makedepend will do this automatically).
  721. #
  722. X
  723. ###########################################################################
  724. # platform-specific configuration parameters - edit sun.cf to change
  725. X
  726. # platform:  $XConsortium: sun.cf,v 1.38 89/12/23 16:10:10 jim Exp $
  727. # operating system:  SunOS 4.0.3
  728. X
  729. ###########################################################################
  730. # site-specific configuration parameters - edit site.def to change
  731. X
  732. # site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
  733. X
  734. X            SHELL = /bin/sh
  735. X
  736. X              TOP = .
  737. X      CURRENT_DIR = .
  738. X
  739. X               AR = ar cq
  740. X  BOOTSTRAPCFLAGS =
  741. X               CC = cc
  742. X
  743. X         COMPRESS = compress
  744. X              CPP = /lib/cpp $(STD_CPP_DEFINES)
  745. X    PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  746. X          INSTALL = install
  747. X               LD = ld
  748. X             LINT = lint
  749. X      LINTLIBFLAG = -C
  750. X         LINTOPTS = -axz
  751. X               LN = ln -s
  752. X             MAKE = make
  753. X               MV = mv
  754. X               CP = cp
  755. X           RANLIB = ranlib
  756. X  RANLIBINSTFLAGS =
  757. X               RM = rm -f
  758. X     STD_INCLUDES =
  759. X  STD_CPP_DEFINES =
  760. X      STD_DEFINES =
  761. X EXTRA_LOAD_FLAGS =
  762. X  EXTRA_LIBRARIES =
  763. X             TAGS = ctags
  764. X
  765. X    SHAREDCODEDEF = -DSHAREDCODE
  766. X         SHLIBDEF = -DSUNSHLIB
  767. X
  768. X    PROTO_DEFINES =
  769. X
  770. X     INSTPGMFLAGS =
  771. X
  772. X     INSTBINFLAGS = -m 0755
  773. X     INSTUIDFLAGS = -m 4755
  774. X     INSTLIBFLAGS = -m 0664
  775. X     INSTINCFLAGS = -m 0444
  776. X     INSTMANFLAGS = -m 0444
  777. X     INSTDATFLAGS = -m 0444
  778. X    INSTKMEMFLAGS = -m 4755
  779. X
  780. X          DESTDIR =
  781. X
  782. X     TOP_INCLUDES = -I$(INCROOT)
  783. X
  784. X      CDEBUGFLAGS = -O
  785. X        CCOPTIONS =
  786. X      COMPATFLAGS =
  787. X
  788. X      ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
  789. X       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
  790. X           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  791. X        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  792. X           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  793. X        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
  794. X   LDCOMBINEFLAGS = -X -r
  795. X
  796. X        MACROFILE = sun.cf
  797. X           RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  798. X
  799. X    IMAKE_DEFINES =
  800. X
  801. X         IRULESRC = $(CONFIGDIR)
  802. X        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  803. X
  804. X     ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  805. X            $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  806. X            $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  807. X
  808. ###########################################################################
  809. # X Window System Build Parameters
  810. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  811. X
  812. ###########################################################################
  813. # X Window System make variables; this need to be coordinated with rules
  814. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  815. X
  816. X          PATHSEP = /
  817. X        USRLIBDIR = $(DESTDIR)/usr/lib
  818. X           BINDIR = $(DESTDIR)/usr/bin/X11
  819. X          INCROOT = $(DESTDIR)/usr/include
  820. X     BUILDINCROOT = $(TOP)
  821. X      BUILDINCDIR = $(BUILDINCROOT)/X11
  822. X      BUILDINCTOP = ..
  823. X           INCDIR = $(INCROOT)/X11
  824. X           ADMDIR = $(DESTDIR)/usr/adm
  825. X           LIBDIR = $(USRLIBDIR)/X11
  826. X        CONFIGDIR = $(LIBDIR)/config
  827. X       LINTLIBDIR = $(USRLIBDIR)/lint
  828. X
  829. X          FONTDIR = $(LIBDIR)/fonts
  830. X         XINITDIR = $(LIBDIR)/xinit
  831. X           XDMDIR = $(LIBDIR)/xdm
  832. X           AWMDIR = $(LIBDIR)/awm
  833. X           TWMDIR = $(LIBDIR)/twm
  834. X           GWMDIR = $(LIBDIR)/gwm
  835. X          MANPATH = $(DESTDIR)/usr/man
  836. X    MANSOURCEPATH = $(MANPATH)/man
  837. X           MANDIR = $(MANSOURCEPATH)n
  838. X        LIBMANDIR = $(MANSOURCEPATH)3
  839. X      XAPPLOADDIR = $(LIBDIR)/app-defaults
  840. X
  841. X        SOXLIBREV = 4.2
  842. X          SOXTREV = 4.0
  843. X         SOXAWREV = 4.0
  844. X        SOOLDXREV = 4.0
  845. X         SOXMUREV = 4.0
  846. X        SOXEXTREV = 4.0
  847. X
  848. X       FONTCFLAGS = -t
  849. X
  850. X     INSTAPPFLAGS = $(INSTDATFLAGS)
  851. X
  852. X            IMAKE = imake
  853. X           DEPEND = makedepend
  854. X              RGB = rgb
  855. X            FONTC = bdftosnf
  856. X        MKFONTDIR = mkfontdir
  857. X        MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier.sh
  858. X
  859. X        CONFIGSRC = $(TOP)/config
  860. X        CLIENTSRC = $(TOP)/clients
  861. X          DEMOSRC = $(TOP)/demos
  862. X           LIBSRC = $(TOP)/lib
  863. X          FONTSRC = $(TOP)/fonts
  864. X       INCLUDESRC = $(TOP)/X11
  865. X        SERVERSRC = $(TOP)/server
  866. X          UTILSRC = $(TOP)/util
  867. X        SCRIPTSRC = $(UTILSRC)/scripts
  868. X       EXAMPLESRC = $(TOP)/examples
  869. X       CONTRIBSRC = $(TOP)/../contrib
  870. X           DOCSRC = $(TOP)/doc
  871. X           RGBSRC = $(TOP)/rgb
  872. X        DEPENDSRC = $(UTILSRC)/makedepend
  873. X         IMAKESRC = $(CONFIGSRC)
  874. X         XAUTHSRC = $(LIBSRC)/Xau
  875. X          XLIBSRC = $(LIBSRC)/X
  876. X           XMUSRC = $(LIBSRC)/Xmu
  877. X       TOOLKITSRC = $(LIBSRC)/Xt
  878. X       AWIDGETSRC = $(LIBSRC)/Xaw
  879. X       OLDXLIBSRC = $(LIBSRC)/oldX
  880. X      XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  881. X      BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  882. X     MKFONTDIRSRC = $(FONTSRC)/mkfontdir
  883. X     EXTENSIONSRC = $(TOP)/extensions
  884. X
  885. X  DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
  886. X     EXTENSIONLIB =  -lXext
  887. X
  888. X          DEPXLIB = $(DEPEXTENSIONLIB)
  889. X             XLIB = $(EXTENSIONLIB) -lX11
  890. X
  891. X      DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  892. X         XAUTHLIB =  -lXau
  893. X
  894. X        DEPXMULIB =
  895. X           XMULIB = -lXmu
  896. X
  897. X       DEPOLDXLIB =
  898. X          OLDXLIB = -loldX
  899. X
  900. X      DEPXTOOLLIB =
  901. X         XTOOLLIB = -lXt
  902. X
  903. X        DEPXAWLIB =
  904. X           XAWLIB = -lXaw
  905. X
  906. X LINTEXTENSIONLIB = $(USRLIBDIR)/llib-lXext.ln
  907. X         LINTXLIB = $(USRLIBDIR)/llib-lX11.ln
  908. X          LINTXMU = $(USRLIBDIR)/llib-lXmu.ln
  909. X        LINTXTOOL = $(USRLIBDIR)/llib-lXt.ln
  910. X          LINTXAW = $(USRLIBDIR)/llib-lXaw.ln
  911. X
  912. X          DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  913. X
  914. X         DEPLIBS1 = $(DEPLIBS)
  915. X         DEPLIBS2 = $(DEPLIBS)
  916. X         DEPLIBS3 = $(DEPLIBS)
  917. X
  918. ###########################################################################
  919. # Imake rules for building libraries, programs, scripts, and data files
  920. # rules:  $XConsortium: Imake.rules,v 1.67 89/12/18 17:14:15 jim Exp $
  921. X
  922. ###########################################################################
  923. # start of Imakefile
  924. X
  925. LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  926. X        DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  927. X           SRCS = xcmdpanel.c
  928. X
  929. X OBJS = xcmdpanel.o
  930. X SRCS = xcmdpanel.c
  931. X
  932. X PROGRAM = xcmdpanel
  933. X
  934. all:: xcmdpanel
  935. X
  936. xcmdpanel: $(OBJS) $(DEPLIBS)
  937. X    $(RM) $@
  938. X    $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  939. X
  940. saber_xcmdpanel:
  941. X    #load $(ALLDEFINES) $(SRCS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  942. X
  943. osaber_xcmdpanel:
  944. X    #load $(ALLDEFINES) $(OBJS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  945. X
  946. install:: xcmdpanel
  947. X    $(INSTALL) -c $(INSTPGMFLAGS)   xcmdpanel $(BINDIR)
  948. X
  949. install.man:: xcmdpanel.man
  950. X    $(INSTALL) -c $(INSTMANFLAGS) xcmdpanel.man $(MANDIR)/xcmdpanel.n
  951. X
  952. depend::
  953. X    $(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  954. X
  955. lint:
  956. X    $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  957. lint1:
  958. X    $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  959. X
  960. clean::
  961. X    $(RM) $(PROGRAM)
  962. X
  963. ###########################################################################
  964. # common rules for all Makefiles - do not edit
  965. X
  966. emptyrule::
  967. X
  968. clean::
  969. X    $(RM_CMD) \#*
  970. X
  971. Makefile::
  972. X    -@if [ -f Makefile ]; then \
  973. X    echo "    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  974. X    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  975. X    else exit 0; fi
  976. X    $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  977. X
  978. tags::
  979. X    $(TAGS) -w *.[ch]
  980. X    $(TAGS) -xw *.[ch] > TAGS
  981. X
  982. saber:
  983. X    #load $(ALLDEFINES) $(SRCS)
  984. X
  985. osaber:
  986. X    #load $(ALLDEFINES) $(OBJS)
  987. X
  988. ###########################################################################
  989. # empty rules for directories that do not have SUBDIRS - do not edit
  990. X
  991. install::
  992. X    @echo "install in $(CURRENT_DIR) done"
  993. X
  994. install.man::
  995. X    @echo "install.man in $(CURRENT_DIR) done"
  996. X
  997. Makefiles::
  998. X
  999. includes::
  1000. X
  1001. ###########################################################################
  1002. # dependencies generated by makedepend
  1003. X
  1004. SHAR_EOF
  1005. chmod 0644 Makefile.std ||
  1006. echo 'restore of Makefile.std failed'
  1007. Wc_c="`wc -c < 'Makefile.std'`"
  1008. test 8988 -eq "$Wc_c" ||
  1009.     echo 'Makefile.std: original size 8988, current size' "$Wc_c"
  1010. fi
  1011. exit 0
  1012. -- 
  1013. --
  1014. Molecular Simulations, Inc.            mail: dcmartin@msi.com
  1015. 796 N. Pastoria Avenue                uucp: uunet!dcmartin
  1016. Sunnyvale, California 94086            at&t: 408/522-9236
  1017.