Xref: utzoo comp.windows.x.motif:321 comp.windows.x:25208 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!mailrus!iuvax!ux1.cso.uiuc.edu!midway!mimsy!mojo!news From: tom@eng.umd.edu (Tom Riddle) Newsgroups: comp.windows.x.motif,comp.windows.x Subject: Library Makefiles for X, Motif Message-ID: <1990Aug2.033813.5943@eng.umd.edu> Date: 2 Aug 90 03:38:13 GMT Sender: news@eng.umd.edu (The News System) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 37 Is there a reason why the X and Motif library Makefiles do not take advantage of the library target rule of make? Currently in mit/lib/* and motif/lib/* there are two copies of each object file (the .o file and a copy of it in the .a file), whereas with the library target rule there would only need to be one. This may seem like a minor point since most people probably do a make clean after everthing is installed, but regardless, I think this can be improved. If there is a good reason why things should remain the way they are please let me know, otherwise, I have modified makedepend, defined new macros for imake, and modified the Imakefiles for Motif so that the resulting Makefiles use the library target rule. It would not require much effort to do the same thing for the X libraries and would result in a smaller demand for disk space during the build process. For those unfimilar with the library target rule, it has the following syntax: libname.a: libname.a(obj1.o) libname.a(obj2.o) ... libname.a(objn.o) ranlib libname.a And the dependancies look like this: libname.a(obj1.o): ... libname.a(obj2.o): ... . . . libname.a(objn.o): ... If anyone is interested I can e-mail or post a patch for makedepend, the new macros for imake, and the modified Motif Imakefiles. Tom Riddle CALCE Center University of Maryland, College Park (301) 454-7705 email: tom@eng.umd.edu