Jan Birke wrote: > Hi, > > I'm stuck with some Makefile issues concerning a kernel module using > RTnet. My default Makefile for building a module looks like this: > > ifneq ($(KERNELRELEASE),) > obj-m := module.o > > else > KDIR := /lib/modules/$(shell uname -r)/build > PWD := $(shell pwd) > > default: > $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules > > endif > > Now how can I tell the Makefile to look for headers in > /usr/local/rtnet/include respectively how could I set my CFLAGS?
EXTRA_CFLAGS := -I ... > Sorry for that not really RTnet dependent question, but I couldn't find > a Makefile-howto covering this question. Maybe this helps, though it a bit more complicated due to serving 2.4 and 2.6 kernels: http://svn.gna.org/viewcvs/xenomai/trunk/examples/rtdm/driver-api/Makefile?view=auto Jan
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users