Re: Smart CONFIG_* Dependencies

Michael Elizabeth Chastain (
Sat, 22 Nov 1997 14:23:19 -0600

Martin von Loewis writes:

> Unfortunately, it currently cannot build all modules. I found that
> the Hisax ISDN driver and the VFAT filesystem driver won't build
> as modules. This is because both drivers define an O_TARGET, and
> then define the M_OBJS to include the O_TARGET. Since the O_TARGET
> is obtained by linking together the O_OBJS, there is no way defined
> to build mod-O_TARGET.

Hmmm, you are right. mod-*.o is not sufficient.

> a.o: a.c
> $(CC) -c $(CFLAGS) a.c
> @echo 'ifneq ($(RECOMPILE_CFLAGS),$$(RECOMPILE_CFLAGS))' > $@.flags
> @echo ".PHONY: $@" >>$@.flags
> @echo endif >>$@.flags

I like this a lot and I'm going to go play with it.

I think I will need to edit some more individual Makefiles because they
override these rules. For instance, drivers/net/Makefile.

Michael Chastain
"love without fear"