13 lines
274 B
Makefile
Executable File
13 lines
274 B
Makefile
Executable File
ifneq ($(KERNELRELEASE), )
|
|
obj-m := procapi.o
|
|
procapi-objs += proc_api.o cJSON.o
|
|
else
|
|
#KDIR ?= /opt/fsl-kernel/x86/linux-4.9.140
|
|
KDIR ?= /home/hx/raspberrypi/linux
|
|
#PWD := $(shell pwd)
|
|
all:
|
|
make -C $(KDIR) M=$(PWD) modules
|
|
clean:
|
|
make -C $(KDIR) M=$(PWD) clean
|
|
endif
|