@@ -30,7 +30,8 @@ LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile
3030LIBTOOL_LINK = $(LIBTOOL ) --mode=link
3131LIBTOOL_INSTALL = $(LIBTOOL ) --mode=install
3232LIBTOOL_UNINSTALL = $(LIBTOOL ) --mode=uninstall
33- WINDRES = @WINDRES@
33+ # Windows resource compiler (windres). Used via libtool.
34+ RC = @RC@
3435CP = cp
3536MV = mv
3637LN = @LN@
@@ -61,7 +62,7 @@ SOURCES = $(srcdir)/iconv.c $(srcdir)/../libcharset/lib/localcharset.c $(srcdir)
6162OBJECTS = iconv.lo localcharset.lo relocatable.lo $(OBJECTS_EXP_@WOE32DLL@ ) $(OBJECTS_RES_@WOE32@ )
6263OBJECTS_EXP_yes = iconv-exports.lo
6364OBJECTS_EXP_no =
64- OBJECTS_RES_yes = libiconv.res
65+ OBJECTS_RES_yes = libiconv.res.lo
6566OBJECTS_RES_no =
6667
6768all : libiconv.la
@@ -88,8 +89,8 @@ relocatable.lo : $(srcdir)/relocatable.c $(srcdir)/relocatable.h
8889iconv-exports.lo : $(srcdir ) /../woe32dll/iconv-exports.c
8990 $(LIBTOOL_COMPILE ) $(CC ) $(INCLUDES ) $(CPPFLAGS ) $(CFLAGS ) $(DEFS ) -c $(srcdir ) /../woe32dll/iconv-exports.c
9091
91- libiconv.res : $(srcdir ) /../windows/libiconv.rc
92- $(WINDRES ) ` $( SHELL) $( srcdir) /../windows/windres-options --escape $( PACKAGE_VERSION) ` -i $(srcdir ) /../windows/libiconv.rc -o libiconv.res --output-format=coff
92+ libiconv.res.lo : $(srcdir ) /../windows/libiconv.rc
93+ $(LIBTOOL_COMPILE ) --tag=RC $( RC ) ` $( SHELL) $( srcdir) /../windows/windres-options --escape $( PACKAGE_VERSION) ` -i $(srcdir ) /../windows/libiconv.rc -o libiconv.res.lo --output-format=coff
9394
9495# Installs the library and include files only. Typically called with only
9596# $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here.
@@ -125,7 +126,7 @@ check : all
125126mostlyclean : clean
126127
127128clean : force
128- $(RM ) * .o * .lo libiconv.res * .a * .la core * .stackdump so_locations
129+ $(RM ) * .o * .lo * .a * .la core * .stackdump so_locations
129130 $(RM ) -r .libs _libs
130131
131132distclean : clean
0 commit comments