FreeBSD kernel Makefile variables SRCTOP and SYSDIR
I am currently writing a FreeBSD device driver and find myself lugging around the entire src. As you can imagine, this is quite large, especially if you are using any sort of version tracking system. So following the example here, I extracted out:
/usr/src/sys/modules/rtwn/
/usr/src/sys/dev/rtwn/
into
/home/user/src/rtwn/sys/modules/rtwn/
/home/user/src/rtwn/sys/dev/rtwn/
However, when I ran make(1) in the /home/user/src/rtwn/sys/modules/rtwn
, I received an error saying:
make: don't know how to make r92c_attach.c. Stop
This error message is extremely non-descriptive of the actual issue. After reviewing the aforementioned functioning Makefiles, I identified that the SRCTOP
and SYSDIR
were not set correctly.