[unixODBC-support] Adding a static library to Drivers/template?

Eric Davies eric at barrodale.com
Mon Feb 21 16:10:31 GMT 2011

Thank you Nick, and fans-of-Nick ;-),

Garden variety makefile it is!

At 01:54 PM 2/18/2011, Nick Gorham wrote:
>On 18/02/2011 21:03, Eric Davies wrote:
>>I'm trying to implement a new ODBC driver by using the 
>>Drivers/template example files. My new code will rely on a library 
>>I wrote for another project. How do I get it linked into the new 
>>driver's shared library?
>>It appears that the Makefile and Makefile.in is reconstructed from 
>>the Makefile.am file, precluding just modifying the Makefile. The 
>>libtemplate.la appears to be built from the config.status file. I'm 
>>an experienced C programmer but my Makefiles tend to be rather straightforward.
>I would start from scratch with the makefile. The one in unixOdbc is 
>tied up with autoconf tools. Even if you intend to use autoconf with 
>your driver it will need to start from scratch.
>I wold start with the template .c and .h files and build a makefile 
>from than, then add your libs with a normal -lyourlib entry.
>unixODBC-support mailing list
>unixODBC-support at mailman.unixodbc.org

Eric Davies, M.Sc.
Senior Programmer Analyst
Barrodale Computing Services Ltd.
625 Alpha Street, Suite 8
Victoria BC V8Z 1B5

Telephone: (250) 590-8395
Web: http://www.barrodale.com
Email: eric at barrodale.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20110221/de9f4770/attachment.html>

More information about the unixODBC-support mailing list