Oh, I should also say, after you edit backend/Makefile.am, you must run automake. This will create backend/Makefile.in. Then you must run ./configure again, to create backend/Makefile.
allan On Thu, Jun 6, 2013 at 8:48 PM, m. allan noah <kitno455 at gmail.com> wrote: > 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 > $(MATH_LIB) $(SCSI_LIBS) $(USB_LIBS) $(RESMGR_LIBS) > 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. > > allan > > > 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" -- "The truth is an offense, but not a sin"
