Re: [HACKERS] Removing PORTNAME from libpq/Makefile - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Removing PORTNAME from libpq/Makefile
Date
Msg-id 22422.893347889@sss.pgh.pa.us
Whole thread Raw
In response to Removing PORTNAME from libpq/Makefile  (darrenk@insightdist.com (Darren King))
List pgsql-hackers
darrenk@insightdist.com (Darren King) writes:
> So to summarize a little, in libpq/Makefile, make a libpq.o and then
> in Makefile.$(PORTNAME), make the shared libpq.  Seem reasonable?

Close, but no cigar.  What happens when we have two, or three, or ten
shared libs to make?

The right thing to do is to have makefiles/Makefile.PLATFORM contain
some sort of generic shared-library-making rule that can then be
applied in libpq/Makefile and any other module makefile that wants
to produce a shared library.

I'm a little out of practice on generic rules in gmakefiles, but
since we already assume that gmake is being used, it shouldn't be
too hard to do it this way.

I'll be glad to help with the HPUX version of the rule.

            regards, tom lane

pgsql-hackers by date:

Previous
From: darrenk@insightdist.com (Darren King)
Date:
Subject: Removing PORTNAME from libpq/Makefile
Next
From: Hannu Krosing
Date:
Subject: Re: [INTERFACES] retrieving varchar size