avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Exporting functions as lib


From: Anton Erasmus
Subject: Re: [avr-gcc-list] Exporting functions as lib
Date: Mon, 15 Dec 2003 22:58:12 +0200



On 2003/12/14 at 10:18 Joerg Wunsch wrote:

>As Christian Neumair <address@hidden> wrote:
>
>>Now, I'd like to build and install it, i.e. I can use it using
>>#include <mylib.h>
>>just like I can do
>>#include <stdio.h> and it should magically link against it.
>
>Btw., the way you access your include files is completely unrelated to
>what you're linking against.  Anything that is not in the standard C
>library needs a linker option -- even the math library, -lm, even
>though the include file is named <math.h>.  (This is mainly for
>hysterical raisins...)

Hopefully it is for historical reasons :-)

(I get  aufgelöst, hysterisch and "die Rosinen" from an online dictionary)

Anyway to get to the original question. I have modified the makefile that comes
with WinAVR, so that one can add a list of directories. The files in the 
directories are
then compiled and a library for each directory with the name of the directory 
is then created.
If anyone one wants this modified makefile, then let me know.

Regards
  Anton Erasmus







reply via email to

[Prev in Thread] Current Thread [Next in Thread]