The HyperNews Linux KHG Discussion Pages

Question: Kernel Makefile Configuration: how?

Forum: The Linux Kernel Hackers' Guide
Keywords: Makefile, configuration
Date: Sun, 14 Sep 1997 03:41:59 GMT
From: Simon Green <sgreen@emunet.com.au>

I'm aware of the make config/menuconfig/xconfig etc., but a program I am writing for Uni will require that I am able to directly configure the Makefile(s)...

Can anyone give me a general overview of where all the CONFIG_blah_blah_blahs go? I had a look at the Makefile, but it wasn't very instructive. For example, in drivers/net/Makefile:

.
.
.
ifeq($(CONFIG_NE2000),y)
L_OBJS += ne.o
.
.
.

Where does CONFIG_NE2000 get defined? I'd appreciate it if someone could tell me the general rule.
Thanks