avrlib and arduino

Hello,

I'm interested in adding interrupt support to my Arduino program. I see there is extint.c in avrlib. From looking at the way targets are set up, I figured I could copy extint.c/h into the lib/targets/Arduino folder and it would just work. The header file is getting included now that I've added it to wiring.h, but the build system isn't compiling the .c file. How exactly does the Arduino build system work? Is there any documentation on this? I'd be happy to write something up if someone could provide a few clues. I'm assuming there are others like me who are happy with the Arduino system but want to add a few things. I've searched the list archives in vain. Any help much appreciated!

thanks,

darren