St.Antario
St.Antario

Reputation: 27385

"modules" in kernel module makefile

Consider the following kernel make-file:

obj-m += procsview.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

default: 
          $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

What does mean modules in the default's recipe.

Upvotes: 0

Views: 90

Answers (1)

l0b0
l0b0

Reputation: 58828

modules is the target in $(KDIR)/Makefile which is executed by make (assuming, of course, that $(MAKE) refers to a Make executable).

Upvotes: 1

Related Questions