[comp.windows.x] Imake.tmpl and files it includes

sitongia@hao.HAO.UCAR.EDU (Leonard Sitongia) (03/08/90)

Environment: Sun-4,SunOS-4.0.3c,MIT X11R4+fix-{1,2,3,4},Sun cc

Imake.tmpl includes other files by "#include <file>".  Making imake puts
those files in /usr/lib/X11/config.  In making Makefiles, those files
were looked for in /usr/include.  I didn't see any indication of
/usr/lib/X11/config being put on the include files paths list.
Do those files have to be in /usr/include?

Another question is, why is <site.def> the first file included in
Imake.tmpl?  How do redefines in site.def override those in other
include files, e.g., Project.tmpl, if site.def is included before those
files?

Thank you for your time

-Leonard E. Sitongia    System Manager		 (303) 497-1509
USPS Mail: High Altitude Observatory P.O. Box 3000 Boulder CO  80307
Internet:               sitongia@hao.ucar.edu
SPAN:			NSFGW::"hao.ucar.edu!sitongia"	[NSFGW=9580]

jim@EXPO.LCS.MIT.EDU (Jim Fulton) (03/09/90)

    I didn't see any indication of
    /usr/lib/X11/config being put on the include files paths list.

Within the build tree, there is a -I$(TOP)/config.  Outside the tree,
xmkmf does -I/usr/lib/X11/config.


    Another question is, why is <site.def> the first file included in
    Imake.tmpl?  How do redefines in site.def override those in other
    include files.

It is first to give it a chance to do any special initialization of
parameters.  The rest of the templates use #ifndef to tell whether or
not the default value is needed:

		#ifndef HasPutenv
		#define HasPutenv NO
		#endif