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.
Asked by user3250889
(33 rep)
Jun 15, 2017, 03:01 PM
Last activity: Jan 27, 2023, 11:18 AM
Last activity: Jan 27, 2023, 11:18 AM