home *** CD-ROM | disk | FTP | other *** search
- /*
- * Host definitions to use LessTif with X11R6.3 and above
- * by Carlos A. M. dos Santos, casantos@cpmet.ufpel.tche.br
- *
- * Copyright ⌐ 1999 by Carlos A M dos Santos.
- *
- * Permission to use, copy, modify, distribute, and sell this software
- * for any purpose is hereby granted without fee, provided that the above
- * copyright notice appear in all copies.
- *
- * No representations are made about the suitability of this software for
- * any purpose. It is provided "as is" without express or implied
- * warranty. [Yes, I'm a copyright paranoid]
- */
-
- #ifndef TopLevelProject
- # define TopLevelProject LessTif
- #endif
-
- #ifndef ProjectRulesFile
- # define ProjectRulesFile <LessTif.rules>
- #endif
-
- #ifndef ProjectTmplFile
- # define ProjectTmplFile <LessTif.tmpl>
- #endif
-
- /*
- * Check if mxkmmf passed parameters
- */
- #if defined(LessTifXmVersion)
- # define LTVersFlags -DLessTifXmVersion=LessTifXmVersion
- #else
- # define LTVersFlags /* nothing */
- #endif
-
- #if defined(MotifProjectRoot)
- # define LTRootFlags -I$(MCONFIGDIR) -DMotifProjectRoot=$(MPROJECTROOT)
- #else
- # define LTRootFlags /* nothing */
- #endif
-
- /*
- * The script mxmkmf is used to bootstrap imake. If LessTif is not
- * installed under the standard X directory tree (i.e., libraries in
- * XROOT/lib, includes in XROOT/include, data and configuration files in
- * XROOT/lib/X11) then mxmkmf defines MotifProjectRoot and we need to
- * redefine ImakeCmd to asure that imake will look at the LessTif config
- * directory *before* looking at the standard X config directory, because
- * Motif configuration files may be installed there. Yes, it's dirty hack,
- * but we live in a cruel world...
- */
- #if defined(LessTifXmVersion) || defined(MotifProjectRoot)
- # undef ImakeCmd
- # define ImakeCmd imake LTVersFlags LTRootFlags
- #endif
-