That is very odd, looks like you may actually be running the wrong makefile.
First of all, to compile LIRC, you should be in the lirc directory. Gunzip and untar the lirc download and then 'cd' into the directory it creates. Read the readme on what to do next, basically you need to run (./configure and then make). To install it you MUST be root, you can compile as a user, but install must be as root.
You are in the kernel directory you should NOT be there for lirc.
|