Re: [Sdcc-user] Building a library

2014-07-05 Thread JuanPi
Hi all, Thanks for both answers it makes things a lot more clear. I managed to get something running (before I read these emails) so I will improve with the help provided. You can check the project here https://github.com/kakila/libdwengo-sdcc Is a library for an open-hardware development board

Re: [Sdcc-user] Building a library

2014-07-05 Thread Raphael Neider
Hi, sdcc does not create libraries for PICs -- you need to use gplib (from gputils) for that. http://linux.die.net/man/1/gplib I would not use libtool at all here -- static libraries are easy enough built manually. libtool only gets into your way. The sdcc project itself uses autotools to create

Re: [Sdcc-user] Building a library

2014-07-05 Thread Georg Ottinger
I use sdar for that - but i am not 100% sure if I understood the question correctly here is a snipplet from my Makefile: = CC=sdcc AR=sdar CFLAGS=-c -mstm8 -DSTM8S105 -I ../inc --opt-code-size LDFLAGS=-rc #SOURCES=stm8s_flash.c stm8s_uart2.c stm8s_tim4.c stm8s_clk.c stm8s_itc.c SOURCES=stm8s_

[Sdcc-user] Building a library

2014-07-05 Thread JuanPi
Hi all, I managed to get the code compiled by sdcc now I ma trying to create a library. I am using autotools and the problem I have is that when libtool calls sddc I get sdcc libio18f4550.lib libc18f.lib libsdcc.lib dwengoADC.lo libdwengo.la at 1: warning 119: don't know what to do with file 'd