[Nut-upsdev] problems reviving and old ups-driver
clepple at gmail.com
Sun Dec 30 00:24:19 UTC 2007
On Dec 29, 2007 1:38 PM, uwe <nut at df3du.mine.nu> wrote:
> I get the exact same errors although the hp.c is now really the working
> skel.c - my expectation was to just throw in the hp.c file and have
> "make" take care of all dependencies.
> There seems to be more to it and I could not find any hints so far.
> What am I missing?
The drivers/Makefile.am file lists all of the source files that need
to be considered for compiling and dependency checking.
Since hp.c is a serial driver, just check for the "serial drivers'
comment and add a line like the following:
hp_SOURCES = hp.c
If it uses any math library functions, there are several examples
showing how to add "-lm" to the LD flags.
Eventually, you will want to add it to the SERIAL_DRIVERLIST variable
so that it is built automatically.
In order to automatically pick up any changes to Makefile.am or the
other build files, you probably want to pass
"--enable-maintainer-mode" to ./configure as well as the
"--with-drivers=hp" flag. You will need recent versions of autoconf
Thanks for taking the time to update this driver! Email the list if
you have any other questions.
- Charles Lepple
More information about the Nut-upsdev