Forum Discussion
Altera_Forum
Honored Contributor
20 years agoIncludes
Hello! I include some headers in one c-file of a project. These headers are in other directories as the c-file. I can't use absolute paths to include the header files, because the ...
Altera_Forum
Honored Contributor
20 years agoHi Mountain!
My makefile is:ifneq ($(KERNELRELEASE),)# kbuild part of makefile
obj-m := hello.o
else# Normal Makefile
KERNEL_PLUGIN:= /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0
KERNELDIR := $(KERNEL_PLUGIN)/linux-2.6.x
BUILDDIR := /cygdrive/c/Entwicklung/NIOS/workspace3/hello_driver_linux
all::
$(MAKE) -C $(KERNELDIR) M=`pwd` O=$(BUILDDIR) -o $@
endif And it's making a lot of compiler errors, which caused by path problems. Bye, Lothar.