[comp.sys.sgi] imake

blue@AZURE.CAM.NIST.GOV (Jim Blue) (09/25/90)

On my PI running 3.3.1, I invoked imake with
    imake -I/usr/lib/X11/config -TOPDIR=/usr
	
Selected lines from the created Makefile follow:

			  TOP = /usr
                 ...
		   LIBSRC = $(TOP)/lib
                 ...
       AWIDGETSRC = $(LIBSRC)/Xaw
                 ...
        DEPXAWLIB =  $(AWIDGETSRC)/libXaw.a
           XAWLIB =   $(DEPXAWLIB)
	
This is clearly incorrect, since libXaw.a is in /usr/lib, not
in /usr/lib/Xaw.

Did I invoke imake wrong?
Is /usr/lib/X11/config/Imake.tmpl wrong?
Is /usr/lib/X11/config/sgi.cf wrong?
Is imake wrong?
Jim Blue
Center for Computing and Applied Mathematics
National Institute for Standards and Technology

jim@baroque.Stanford.EDU (James Helman) (09/26/90)

	imake -I/usr/lib/X11/config -TOPDIR=/usr

Almost, but imake still thinks it's in the source tree try:

	imake -I/usr/lib/X11/config -DTOPDIR=/usr -DUseInstalled

The "-DUseInstalled" tells imake to use the installed stuff rather
than the nonexistant source tree.

Jim Helman
Department of Applied Physics			Durand 012
Stanford University				FAX: (415) 725-3377
(jim@KAOS.stanford.edu) 			Work: (415) 723-9127

moss@brl.mil (Gary S. Moss (VLD/VMB) <moss>) (09/26/90)

In article <JIM.90Sep25152241@baroque.Stanford.EDU>, jim@baroque.Stanford.EDU (James Helman) writes:
|> 
|> 	imake -I/usr/lib/X11/config -TOPDIR=/usr
|> 
|> Almost, but imake still thinks it's in the source tree try:
|> 
|> 	imake -I/usr/lib/X11/config -DTOPDIR=/usr -DUseInstalled
|> 
Better yet, use xmkmf.  It's easier to remember and saves typing.

$ xmkmf
mv Makefile Makefile.bak
imake -DUseInstalled -I/usr/X11/lib/X11/config

There should be no need to define TOPDIR with UseInstalled defined.  I'm
not sure if xmkmf comes with the SGI X binaries, the X development package
or whatever, but it's free from MIT.  Note that xmkmf knows where to find
your config files.
-Gary