SOLUTION to "Make: Don't know how to make -lXext."

Richard P. Signell rsignell at crusty.er.usgs.gov
Thu May 2 01:14:53 AEST 1991


Since a lot of other people requested the solution to my
imake problems (i.e "Make:  Don't know how to make -lXext."),
I thought I'd share the solution with the Group (courtesy of
Mike Marques):

>From mike at apex.yorku.ca Mon Apr 29 15:15:57 1991
Received: by apex.yorku.ca (5.57/Ultrix3.0-C)
	id AA06393; Mon, 29 Apr 91 15:16:47 -0400
Message-Id: <9104291916.AA06393 at apex.yorku.ca>
To: rsignell at crusty.er.usgs.gov (Richard P. Signell)
Subject: Re: Make:  Don't know how to make -lXext.
In-Reply-To: rsignell at crusty.er.usgs.gov's message of 26 Apr 91 19:31:16 GMT
Date: Mon, 29 Apr 91 15:16:43 -0400
From: Mike Marques <mike at apex.yorku.ca>
Status: OR

> When I do a: 
>  xmkmf
>  make Makefile
>  make all
> 
> I often get:
> 
> Make:  Don't know how to make -lXext.
> 
> Can someone tell me how to fix this?  Is it the ultrix.config file,
> or the Ultrix Make?
Nope it's Imake.tmpl which does not check if you are compiling in the
source directory or just from the installed stuff.
It makes any libraries it has to use as dependencies which of course
does not work.  Following my signature are my fixes to Imake.rules.
No garantees but compiles started working for me after I fixed it.
Hope it helps.

Just in case you haven't seen it before:
Imake.rules resides in /usr/lib/X11/config
or <wherever you like to install X>/lib/config

							Mike

          Mike Marques               )(  Usenet: ......!utzoo!yunexus!mike 
 Computing & Communications Services )(          mike at outland.yorku.ca
   (IT division),  York University.  )(  Bitnet: mike at yulibra
   Only visiting this planet...      )(  Voice: (416) 736-5257


*** 1.1	1990/11/09 16:25:16
--- Imake.rules	1991/01/03 04:01:04
***************
*** 193,198 ****
--- 193,199 ----
   * Imakefiles that describe a single program.
   */
  #ifndef ComplexProgramTarget
+ #ifndef UseInstalled
  #define	ComplexProgramTarget(program)					@@\
          PROGRAM = program						@@\
  									@@\
***************
*** 211,216 ****
--- 212,237 ----
  									@@\
  clean::									@@\
  	$(RM) $(PROGRAM)
+ #else
+ #define	ComplexProgramTarget(program)					@@\
+         PROGRAM = program						@@\
+ 									@@\
+ AllTarget(program)							@@\
+ 									@@\
+ program: $(OBJS)							@@\
+ 	RemoveTargetProgram($@)						@@\
+ 	$(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\
+ 									@@\
+ SaberProgramTarget(program,$(SRCS),$(OBJS),$(LOCAL_LIBRARIES), /**/)	@@\
+ 									@@\
+ InstallProgram(program,$(BINDIR))					@@\
+ InstallManPage(program,$(MANDIR))					@@\
+ DependTarget()								@@\
+ LintTarget()								@@\
+ 									@@\
+ clean::									@@\
+ 	$(RM) $(PROGRAM)
+ #endif /* UseInstalled */
  #endif /* ComplexProgramTarget */
  
  
***************
*** 222,227 ****
--- 243,249 ----
   * program in Imakefiles that describe multiple programs.
   */
  #ifndef ComplexProgramTarget_1
+ #ifndef UseInstalled
  #define	ComplexProgramTarget_1(program,locallib,syslib)			@@\
              OBJS = $(OBJS1) $(OBJS2) $(OBJS3)				@@\
              SRCS = $(SRCS1) $(SRCS2) $(SRCS3)				@@\
***************
*** 242,247 ****
--- 264,291 ----
  									@@\
  clean::									@@\
  	$(RM) $(PROGRAMS)
+ #else
+ #define	ComplexProgramTarget_1(program,locallib,syslib)			@@\
+             OBJS = $(OBJS1) $(OBJS2) $(OBJS3)				@@\
+             SRCS = $(SRCS1) $(SRCS2) $(SRCS3)				@@\
+ 									@@\
+ AllTarget($(PROGRAMS))							@@\
+ 									@@\
+ program: $(OBJS1)							@@\
+ 	RemoveTargetProgram($@)						@@\
+ 	$(CC) -o $@ $(LDOPTIONS) $(OBJS1) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
+ 									@@\
+ InstallProgram(program,$(BINDIR))					@@\
+ InstallManPage(program,$(MANDIR))					@@\
+ 									@@\
+ SaberProgramTarget(program,$(SRCS1),$(OBJS1),locallib,syslib)		@@\
+ 									@@\
+ DependTarget()								@@\
+ LintTarget()								@@\
+ 									@@\
+ clean::									@@\
+ 	$(RM) $(PROGRAMS)
+ #endif /* UseInstalled */
  #endif /* ComplexProgramTarget_1 */
  
  
***************
*** 252,257 ****
--- 296,302 ----
   * describing more than one program.
   */
  #ifndef ComplexProgramTarget_2
+ #ifndef UseInstalled
  #define	ComplexProgramTarget_2(program,locallib,syslib)			@@\
  program: $(OBJS2) $(DEPLIBS2)						@@\
  	RemoveTargetProgram($@)						@@\
***************
*** 261,266 ****
--- 306,322 ----
  									@@\
  InstallProgram(program,$(BINDIR))					@@\
  InstallManPage(program,$(MANDIR))
+ #else
+ #define	ComplexProgramTarget_2(program,locallib,syslib)			@@\
+ program: $(OBJS2)							@@\
+ 	RemoveTargetProgram($@)						@@\
+ 	$(CC) -o $@ $(LDOPTIONS) $(OBJS2) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
+ 									@@\
+ SaberProgramTarget(program,$(SRCS2),$(OBJS2),locallib,syslib)		@@\
+ 									@@\
+ InstallProgram(program,$(BINDIR))					@@\
+ InstallManPage(program,$(MANDIR))
+ #endif /* UseInstalled */ 
  #endif /* ComplexProgramTarget_2 */
  
  
***************
*** 271,276 ****
--- 327,333 ----
   * describing more than one program.
   */
  #ifndef ComplexProgramTarget_3
+ #ifndef UseInstalled
  #define	ComplexProgramTarget_3(program,locallib,syslib)			@@\
  program: $(OBJS3) $(DEPLIBS3)						@@\
  	RemoveTargetProgram($@)						@@\
***************
*** 280,285 ****
--- 337,353 ----
  									@@\
  InstallProgram(program,$(BINDIR))					@@\
  InstallManPage(program,$(MANDIR))
+ #else
+ #define	ComplexProgramTarget_3(program,locallib,syslib)			@@\
+ program: $(OBJS3)							@@\
+ 	RemoveTargetProgram($@)						@@\
+ 	$(CC) -o $@ $(LDOPTIONS) $(OBJS3) locallib $(LDLIBS) syslib $(EXTRA_LOAD_FLAGS) @@\
+ 									@@\
+ SaberProgramTarget(program,$(SRCS3),$(OBJS3),locallib,syslib)		@@\
+ 									@@\
+ InstallProgram(program,$(BINDIR))					@@\
+ InstallManPage(program,$(MANDIR))
+ #endif /* UseInstalled */
  #endif /* ComplexProgramTarget_3 */
  
  

--
Rich Signell               |   rsignell at crusty.er.usgs.gov
U.S. Geological Survey     |   (508) 548-8700
Quissett Campus            |   "You need a license to dig clams...
Woods Hole, MA  02543      |      ... but anybody can have kids."



More information about the Comp.unix.ultrix mailing list