1 .PHONY: default all clean
3 include $(XSEG_HOME)/base.mk
5 KDIR := /lib/modules/$(shell uname -r)/build
7 EXTRA_CFLAGS += -g -I$(BASE) -I$(BASE)/sys/kernel
8 LIBDIR=$(BASE)/lib/kernel
14 $(BASE)/drivers/kernel/Module.symvers:
15 $(MAKE) -C $(BASE)/drivers/kernel TARGET=kernel default
17 all: $(BASE)/drivers/kernel/Module.symvers
19 $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) V=$(V) modules
20 cp -vaf xsegbd.ko $(LIBDIR)
24 make -C /lib/modules/$(shell uname -r)/build M=$(PWD) V=$(V) clean