[JDEV] Re: pthsock/makefile

Doug Claar doug_claar at hp.com
Thu Dec 13 11:40:15 CST 2001


> On Solaris 2.7 with Sun WorkShop C++ 4.2 the pthsock/makefile fails on line
> 3.
> That line needs to read:
> CFLAGS += -I ../jabberd
> 
> This is needed in order to append -I ../jabberd to the CFLAGS macro.

The append mechanism is specific to each different make. gmake uses the
mechanism in the current makefiles. One of the changes I'd like to see
(and have made in my local copy) is to remove dependencies on make
extensions. The portable, supported-by-every-make-in-the-world method
for doing this is to define two different variables, say CFLAGS and CCFLAGS,
and use one for the common settings, the other for specific ones. So the
makefiles (like pthsock/Makefile) have:

CFLAGS=$(CCFLAGS) -I../jabberd/

And platform-settings has the common ones:

CCFLAGS= -g +z -I. -I.. +DS2.0 +DA2.0W -I/home/dclaar/src/pth-1.4.0/include

==Doug Claar



More information about the JDev mailing list