[sane-devel] sanei_magic

m. allan noah kitno455 at gmail.com
Fri Jun 7 00:48:28 UTC 2013

If you editing an existing backend to add support for sanei_magic, you
must edit backend/Makefile.am. Find the section which lists your
backend, and add the required dependencies. Here is an example of the
sane-fujitsu backend:

libfujitsu_la_SOURCES = fujitsu.c fujitsu.h fujitsu-scsi.h
libfujitsu_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=fujitsu

nodist_libsane_fujitsu_la_SOURCES = fujitsu-s.c
libsane_fujitsu_la_CPPFLAGS = $(AM_CPPFLAGS) -DBACKEND_NAME=fujitsu
libsane_fujitsu_la_LDFLAGS = $(DIST_SANELIBS_LDFLAGS)
libsane_fujitsu_la_LIBADD = $(COMMON_LIBS) libfujitsu.la
../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo
../sanei/sanei_config.lo ../sanei/sanei_config2.lo sane_strstatus.lo
../sanei/sanei_usb.lo ../sanei/sanei_scsi.lo ../sanei/sanei_magic.lo
EXTRA_DIST += fujitsu.conf.in

Notice the: "../sanei/sanei_magic.lo $(MATH_LIB)" in libsane_fujitsu_la_LIBADD.

Notice also that your other variables might be different, if your
backend uses other libraries. Only include the ones you need.


On Thu, Jun 6, 2013 at 2:06 PM, Tiago Zaniquelli <ztiago at gmail.com> wrote:
> I am trying put in my backend the lib sanei_magic.h.
> So, How i do to configure the ./configure file to it understands and compile
> it?
> I did this in the makefile only for my test.
> So, when i tried to compile "make" I have problem with "math.h" lib, it does
> not find the function "tan...atan...etc..."
> Allan Noah do you have skype?
> Best Regards,
> Tiago Zaniquelli
> --
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>              to sane-devel-request at lists.alioth.debian.org

"The truth is an offense, but not a sin"

More information about the sane-devel mailing list