On 12/13/08, Jason Curl <jcurln...@arcor.de> wrote:
>  .rc.lo:
>   $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile
> $(RC) $(RCFLAGS) $< -o $@
>
>  libwin_la_LDFLAGS = -no-undefined -version-info @WINLIB_VERSION_INFO@
> @SHLIB_VERSION_ARG@
>

You can look at OpenSC implementation it works both for libtool-1.5
and libtool-2.
Maybe I am doing something wrong... But at least it works... :)
I will be happy to know if there is a better way.

I have the followings:
RCCOMPILE = $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
        $(AM_CPPFLAGS) $(CPPFLAGS)
LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RCCOMPILE)

.rc.lo:
        $(LTRCCOMPILE) -i "$<" -o "$@"

.rc.o:
        $(RCCOMPILE) -i "$<" -o "$@"

Look at:
http://www.opensc-project.org/svn/opensc/trunk/configure.ac
http://www.opensc-project.org/svn/opensc/trunk/win32/ltrc.inc
http://www.opensc-project.org/svn/opensc/trunk/src/libopensc/Makefile.am

Alon.


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to