home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4245 < prev    next >
Encoding:
Text File  |  1992-08-16  |  3.1 KB  |  69 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!caen!hellgate.utah.edu!fcom.cc.utah.edu!cs.weber.edu!terry
  3. From: terry@cs.weber.edu (A Wizard of Earth C)
  4. Subject: Re: Naive "imake" questions
  5. Message-ID: <1992Aug16.213313.17582@fcom.cc.utah.edu>
  6. Sender: news@fcom.cc.utah.edu
  7. Organization: Weber State University  (Ogden, UT)
  8. References: <1992Aug16.160342.11490@NeoSoft.com>
  9. Date: Sun, 16 Aug 92 21:33:13 GMT
  10. Lines: 57
  11.  
  12. In article <1992Aug16.160342.11490@NeoSoft.com> karl@NeoSoft.com (Karl Lehenbauer) writes:
  13. >OK, lots of X programs come with Imakefiles and need imake to generate
  14. >a customized Makefile for the local machine.
  15. >
  16. >Firing up imake as distributed in X386 for 386BSD, it complains about
  17. >not being about to find "Imake.tmpl".  I found that setting the env
  18. >var IMAKEINCLUDE to "-I/usr/lib/X11/config" would get it to create
  19. >makefiles OK, but not with quite the correct information to build
  20. >the target, like library paths are wrong.
  21. >
  22. >Is there another place this is supposed to point to, to get to the right
  23. >stuff?  If not, is there a copy or link that needs to be done?  Otherwise,
  24. >what is the accepted way to set this up?
  25.  
  26.     The imake program uses a relative path (relative to TOP) to get
  27. locations of everything.  The Makefile resulting from the imake is supposed
  28. to know this for the invocation of imake for subsequent make files under
  29. the creation heirarchy.
  30.  
  31.     There is a shell script called "xmkmf" (X make make file) available
  32. (hit archie if it isn't in your X distribution).  Basically, it uses the
  33. path-to-top specification option to imake.
  34.  
  35.     To use it, you can do one of two things:  Edit 'xmkmf' so that
  36. it knows where TOP is (this is the directory which contains the 'config'
  37. directory which contains imake), and use the following command from within
  38. a directory containing an Imakefile you wish to become a makefile:
  39.  
  40.     xmkmf
  41.  
  42. -OR- you can specify that top level directory as a parameter.  For instance,
  43. if your top level X heirarchy directory was "/X11R5/new/dist" and your
  44. config directory was therefore "/X11R5/new/dist/config", the following
  45. command would work with an uneditied xmkmf in the Imakefile directory:
  46.  
  47.     xmkmf /X11R5/new/dist/config
  48.  
  49. If you use the second method, you should probably be aware that it seems
  50. to hate relative paths:  if you relocate your build directory relative to
  51. the TOP directory, you will need to remake xmkmf.  If you use an absolute
  52. path, as long as TOP doesn't move, you can move around the actual build
  53. directory for what you are building, without adverse effect.  For instance,
  54. I usually build new X apps in my home directory and test them out before
  55. relocating them into my X heirarchy and building them there.
  56.  
  57.  
  58.                     Terry Lambert
  59.                     terry_lambert@gateway.novell.com
  60.                     terry@icarus.weber.edu
  61. ---
  62. Any opinions in this posting are my own and not those of my present
  63. or previous employers.
  64. -- 
  65. -------------------------------------------------------------------------------
  66.                                                        terry@icarus.weber.edu
  67.  "I have an 8 user poetic license" - me
  68. -------------------------------------------------------------------------------
  69.