Date: Wed, 13 Sep 2000 11:24:41 -0700 From: Jim Pirzyk <Jim.Pirzyk@disney.com> To: freebsd-questions@freebsd.org Subject: ifdef SMP in lkm source and Makefile questions. Message-ID: <00091311251005.42186@snoopy.fan.fa.disney.com>
next in thread | raw e-mail | index | archive | help
I am trying to compile a Loadable kernel module that needs the SMP flag. How would I get the Makefile to read that SMP flag if the system really is SMP? So in my .c file I have #ifdef SMP Do special code here #endif What I can see, SMP is only defined when compiling kernel, but not the /sys/modules subdirs. Also how do I include in the makefile a file from a different dir? I had in the SRCS= line ../../foo/bar.c, but then the .o file was in the wrong dir. I changed it to bar.c and created a sym link back to ../../foo/bar.c - JimP -- --- @(#) $Id: dot.signature,v 1.9 2000/07/10 16:43:05 pirzyk Exp $ __o Jim.Pirzyk@disney.com ------------------------------------- _'\<,_ Senior Systems Engineer, Walt Disney Feature Animation (*)/ (*) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00091311251005.42186>