I have this code for makefile automake:
noinst_LTLIBRARIES = libwinsane.la
libwinsane_la_SOURCES = init.c
libwinsane_la_CXXFLAGS = -I$(top_srcdir)
libwinsane_la_DEPENDENCIES = manifest.$(OBJEXT)
libwinsane_la_LIBADD = manifest.$(OBJEXT)
manifest.$(OBJEXT): manifest.rc utf8.xml
windres -o $@ $(top_builddir)/libwinsane/manifest.rc
it configures with ./configure fine, but in the end, 'make' command results with error:
libtool: error: cannot build libtool library 'libwinsane.la' from non-libtool objects on this host: manifest.o
But I belive that manifest.o can be totally merged with init.o, I don't understand, why libtool complains about that so hard. Is there any solution?