The Makefile's in madwifi-old releases have accompanying Makefile.kernel's in some directories (e.g. ath/, ath_hal/ etc). These files have commented out lines for both kernel versions 2.4.x & 2.6.x. I assume it's necessary to uncomment the line specific to your kernel version?