Blame thirdparty/openblas/xianyi-OpenBLAS-e6e87a2/driver/mapper/Makefile

kusano 2b45e8
MODULENAME 	:= mapper
kusano 2b45e8
kusano 2b45e8
KDIR		:= /lib/modules/$(shell uname -r)/build
kusano 2b45e8
PWD		:= $(shell pwd)
kusano 2b45e8
kusano 2b45e8
CC		:= gcc -Wall
kusano 2b45e8
kusano 2b45e8
ifeq ($(KERNELRELEASE),)
kusano 2b45e8
all ::
kusano 2b45e8
	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
kusano 2b45e8
else
kusano 2b45e8
  obj-m	:= $(MODULENAME).o
kusano 2b45e8
endif
kusano 2b45e8
kusano 2b45e8
load:
kusano 2b45e8
	insmod ./$(MODULENAME).ko
kusano 2b45e8
kusano 2b45e8
unload:
kusano 2b45e8
	rmmod $(MODULENAME)
kusano 2b45e8
kusano 2b45e8
setup:
kusano 2b45e8
	./device_setup
kusano 2b45e8
kusano 2b45e8
clean:
kusano 2b45e8
	rm -rf *.o *.ko Module.symvers *.mod.c .tmp_versions .mapper* modules.order