Re: should I create both static and shared libraries manually?
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
Reply to: