[OpenIndiana-discuss] How do I get OpenIndana's make (not gmake) to accept the following
Richard Sharpe
realrichardsharpe at gmail.com
Sun Jun 3 14:59:03 UTC 2012
On Sun, Jun 3, 2012 at 7:34 AM, Joshua M. Clulow <josh at sysmgr.org> wrote:
> On 3 June 2012 23:55, Richard Sharpe <realrichardsharpe at gmail.com> wrote:
>> We have the following in the Makefile:
>> .SUFFIXES: .so
>>
>> .o.so:
>> @echo "Linking $<"
>> @$(CC) $(LDSHFLAGS) $(LDFLAGS) $*.o -o $*.so
>>
>> and make is objecting with: Don't know how to make blah.so.
>>
>> Is there any way to work around this?
>
> You need both suffixes in .SUFFIXES...
>
> i.e.
>
> .SUFFIXES: .down .up
> TR= /usr/bin/tr
> .down.up:
> @echo "Munging $<"
> $(TR) "[:lower:]" "[:upper:]" < $*.down > $*.up
OK, thanks for that. Can I assume that .SUFFIXES operate additively
and does not replace any built-in ones?
--
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)
More information about the OpenIndiana-discuss
mailing list