[OpenIndiana-discuss] How do I get OpenIndana's make (not gmake) to accept the following

Joshua M. Clulow josh at sysmgr.org
Sun Jun 3 14:34:23 UTC 2012


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

-- 
Joshua M. Clulow
UNIX Admin/Developer
http://blog.sysmgr.org



More information about the OpenIndiana-discuss mailing list