On Sun, Jun 3, 2012 at 7:34 AM, Joshua M. Clulow <[email protected]> wrote:
> On 3 June 2012 23:55, Richard Sharpe <[email protected]> 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
(何以解憂?唯有杜康。--曹操)

_______________________________________________
OpenIndiana-discuss mailing list
[email protected]
http://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to