Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!sun-barr!decwrl!shelby!neon!news From: weening@Gang-of-Four.Stanford.EDU (Joe Weening) Newsgroups: comp.windows.x Subject: Makefile problem with contrib clients Message-ID: <1990Jan8.001827.19896@Neon.Stanford.EDU> Date: 8 Jan 90 00:18:27 GMT Sender: news@Neon.Stanford.EDU (USENET News System) Organization: Computer Science Department, Stanford University Lines: 33 The makefiles that I get with "xmkmf" for contrib clients have a problem with library dependencies. Here's what I'm doing: (The MIT libraries and clients have all been installed in the standard locations.) % cd /src/X11R4/contrib/clients/xrn % xmkmf mv Makefile Makefile.bak imake -DUseInstalled -I/usr/lib/X11/config % make ... all the sources are compiled with no problems ... Make: Don't know how to make -lXaw. Stop. % It is fairly easy to see what the problem is, by looking in the Makefile. It includes the lines: XAWLIB = -lXaw DEPLIBS = $(LOCAL_LIBRARIES) LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) xrn: $(OBJS) $(DEPLIBS) $(RM) $@ $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) So "xrn" eventually depends on "-lXaw", which make doesn't know about. This problem is the result of -DUseInstalled, since it doesn't affect the MIT clients. -- Joe Weening Computer Science Dept. weening@Gang-of-Four.Stanford.EDU Stanford University