kamaraju kusumanchi wrote:

> In my makefile, I have a single rule to convert .c files to .o files. It
> goes like
> 
> 
> %.o : %.c
>    $(CC) $(FLAGS) -c $< -o $@
> 
> To produce both static and shared libraries, I need two such rules. Can
> someone tell me how to do that?

I think libtool can do that, it builds both .o and .lo files:

%.o : %.c
    $(LIBTOOL) --mode=compile $(CC) $(FLAGS) -c $< -o $@

but libtool requires quite a bit of changes to autoconf macro's and such

regards,
        Olivier


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to