mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-05 21:31:36 +00:00
23 lines
534 B
Makefile
23 lines
534 B
Makefile
# If KERNELRELEASE is defined, we've been invoked from the
|
|
# kernel build system and can use its language.
|
|
ifneq ($(KERNELRELEASE),)
|
|
obj-m := graphene-ipc.o
|
|
# Otherwise we were called directly from the command
|
|
# line; invoke the kernel build system.
|
|
else
|
|
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
|
|
PWD := $(shell pwd)
|
|
|
|
.PHONY: default
|
|
default:
|
|
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
|
|
|
|
graphene-ipc.i: graphene-ipc.c
|
|
$(MAKE) -C $(KERNELDIR) M=$(PWD) $@
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
|
|
|
|
endif
|