corda/sgx-jvm/linux-sgx-driver/Makefile
Tommy Lillehagen a260d7eb0b
ENT-1189 - Update SGX driver (#163)
* Remove linux-sgx-driver; re-add subtree (currently not playing ball)

* Squashed 'sgx-jvm/linux-sgx-driver/' content from commit 03435d33d

git-subtree-dir: sgx-jvm/linux-sgx-driver
git-subtree-split: 03435d33de0bcca6c5777f23ac161249b9158f1e
2017-12-14 12:36:34 +00:00

25 lines
561 B
Makefile

ifneq ($(KERNELRELEASE),)
isgx-y := \
sgx_main.o \
sgx_page_cache.o \
sgx_ioctl.o \
sgx_vma.o \
sgx_util.o\
sgx_encl.o
obj-m += isgx.o
else
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) CFLAGS_MODULE="-DDEBUG -g -O0" 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