🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37781

Imake and DEPLIBS (and a tiny xlock patch for old SunOS systems)

#37781
From: David C Lawrence
Date: Wed, 07 Mar 1990 12:05
39 lines
1988 bytes
I could have sworn I just saw a message about this in the past couple
of days but I just couldn't find it again; sorry for the repeated
topic.

I don't understand why Project.tmpl does this:

#if HasSunOSSharedLibraries
          DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
#else
          DEPLIBS = $(LOCAL_LIBRARIES)
#endif

It causes problems when building some contrib things (it just got me
in gwm and xlock) under SunOS 3.5.  On SunOS 4.0 it is okay because a
line which eventually ends up looking like this gets seen by make:

xlock: [ objects ] /usr/lib/libXext.a /usr/lib/libX11.a

Because of the above rule, the line ends up like this in 3.5:

xlock: [ objects ] -lXext -lX11

which make whines about because it has no clue about how to build the
-lX* targets.  Bummer.  So for now I just go in and edit the Makefile
by hand to get around it, because I don't know enough about Imake yet
and don't really want to change the Imakefile from the distributed
version.   Are the Imakefiles doing something wrong?  Or is it
Project.tmpl?  (I think the message I saw here said that the Imakefiles
were wrong but I don't recall whether it said anything about a remedy.)

Speaking of not changing the distributed Imakefiles, here's what I
added to the very end of xlock's Imakefile to cope with the fact that
SunOS 3.5 doesn't define MAXHOSTNAMELEN in <sys/param.h> (or anywhere):

#if (SunOSPlatform) && (OSMajorVersion < 4)
SpecialObjectRule(xlock.o, ,-DHOSTNAMELEN=64)
#endif
-- 
   (setq mail '("tale@cs.rpi.edu" "tale@ai.mit.edu" "tale@rpitsmts.bitnet"))
Technical Details
Message-ID: <~7-#QH#@rpi.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!tale

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!tale
From: tale@cs.rpi.edu (David C Lawrence)
Newsgroups: comp.windows.x
Subject: Imake and DEPLIBS (and a tiny xlock patch for old SunOS systems)
Message-ID: <~7-#QH#@rpi.edu>
Date: 7 Mar 90 12:05:51 GMT
Organization: Rensselaer Polytechnic Institute, Troy NY
Lines: 39