Compile Fails
Hello, I am using rhel 7.2 and i am trying to make/compile the makefile and this what i get.
" make -C module
make[1]: Entering directory /home/luckyodirile/Downloads/contec/iolib/module'
pwd` V=1 modules
make -C /usr/src/kernels/3.10.0-327.el7.x86_64 SUBDIRS=
make: Entering an unknown directory
make: *** /usr/src/kernels/3.10.0-327.el7.x86_64: No such file or directory. Stop.
make: Leaving an unknown directory
make[1]: *** [iolib.ko] Error 2 "
Here is what the makefiles look like:
DEST_DIR := $(shell uname -r)
KERNEL_SRC := $(shell if [ -d /usr/src/linux ]; then echo /usr/src/linux; else echo /usr/src/kernels/$(DEST_DIR); fi)
all: iolib.ko
iolib.ko: iolib_module.c iolib_user_irq.c
make -C $(KERNEL_SRC) SUBDIRS=pwd
V=1 modules
clean :
make -C $(KERNEL_SRC) SUBDIRS=pwd
V=1 clean
obj-m := iolib.o
iolib-objs := iolib_module.o iolib_user_irq.o
clean-files := .o *.ko *.mod.[co] *~ ..cmd
install:
Any help and comment would be highly appreciated