I'm trying to follow a guide to compile a program for Debian in FreeBSD. I have the following makefile:
obj-m += kernelinfo.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
I'm confused as to how I would compile this on FreeBSD since I do not have a /lib/modules
folder on the machine. I have installed all of the default headers on FreeBSD in the /usr/src/
directory but I can't find a modules folder. I'm guessing the Makefile needs to be translated for FreeBSD, though I am very new to Linux and so I have no idea. Any help is much appreciated.