Files
intel-linux-sgx-driver/Makefile
T
Angie Chinchilla 24bd0ac2c4 SGX 2.0 Implementation
Authors:
Serge Ayoun <serge.ayoun@intel.com>
Angie Chinchilla <angie.v.chinchilla@intel.com>
Shay Katz-zamir <shay.katz-zamir@intel.com>
Cedric Xing <cedric.xing@intel.com>

Signed-off-by: Angie Chinchilla <angie.v.chinchilla@intel.com>
2017-10-30 16:50:18 -04:00

24 lines
523 B
Makefile

ifneq ($(KERNELRELEASE),)
isgx-y := \
sgx_main.o \
sgx_page_cache.o \
sgx_ioctl.o \
sgx_vma.o \
sgx_util.o
obj-m += isgx.o
else
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
install: default
$(MAKE) INSTALL_MOD_DIR=kernel/drivers/intel/sgx -C $(KDIR) M=$(PWD) modules_install
sh -c "cat /etc/modules | grep -Fxq isgx || echo isgx >> /etc/modules"
endif
clean:
rm -vrf *.o *.ko *.order *.symvers *.mod.c .tmp_versions .*o.cmd .*.o.d