0

I am writing a simple makefile for loadable kernel module, in below you can see makefile content:

obj-m += ali.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

this make file work, but i do't know how specify optimization level of compilation in this makefile.

can anyone help to set the optimization level of compilation??

0 Answers0