home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 March / PCWELT_3_2006.ISO / base / 05_common.mo / usr / X11R6 / lib / LessTif / config / host.def next >
Encoding:
Text File  |  2005-06-09  |  1.7 KB  |  57 lines

  1. /*
  2.  *  Host definitions to use LessTif with X11R6.3 and above
  3.  *  by Carlos A. M. dos Santos, casantos@cpmet.ufpel.tche.br
  4.  *
  5.  *  Copyright ⌐ 1999 by Carlos A M dos Santos.
  6.  *
  7.  *  Permission to use, copy, modify, distribute, and sell this software
  8.  *  for any purpose is hereby granted without fee, provided that the above
  9.  *  copyright notice appear in all copies.
  10.  *
  11.  *  No representations are made about the suitability of this software for
  12.  *  any purpose. It is provided "as is" without express or implied
  13.  *  warranty. [Yes, I'm a copyright paranoid]
  14.  */
  15.  
  16. #ifndef TopLevelProject
  17. # define TopLevelProject    LessTif
  18. #endif
  19.  
  20. #ifndef ProjectRulesFile
  21. # define ProjectRulesFile    <LessTif.rules>
  22. #endif
  23.  
  24. #ifndef ProjectTmplFile
  25. # define ProjectTmplFile    <LessTif.tmpl>
  26. #endif
  27.  
  28. /*
  29.  *  Check if mxkmmf passed parameters
  30.  */
  31. #if defined(LessTifXmVersion)
  32. # define LTVersFlags    -DLessTifXmVersion=LessTifXmVersion
  33. #else
  34. # define LTVersFlags    /* nothing */
  35. #endif
  36.  
  37. #if defined(MotifProjectRoot) 
  38. # define LTRootFlags    -I$(MCONFIGDIR) -DMotifProjectRoot=$(MPROJECTROOT)
  39. #else
  40. # define LTRootFlags    /* nothing */
  41. #endif
  42.  
  43. /*
  44.  *  The script mxmkmf is used to bootstrap imake. If LessTif is not
  45.  *  installed under the standard X directory tree (i.e., libraries in
  46.  *  XROOT/lib, includes in XROOT/include, data and configuration files in
  47.  *  XROOT/lib/X11) then mxmkmf defines MotifProjectRoot and we need to
  48.  *  redefine ImakeCmd to asure that imake will look at the LessTif config
  49.  *  directory *before* looking at the standard X config directory, because
  50.  *  Motif configuration files may be installed there. Yes, it's dirty hack,
  51.  *  but we live in a cruel world...
  52.  */
  53. #if defined(LessTifXmVersion) || defined(MotifProjectRoot)
  54. # undef ImakeCmd
  55. # define ImakeCmd    imake LTVersFlags LTRootFlags
  56. #endif
  57.