6d41b96fd7
Note that this code is dormant unless the options files exist. Also, parsing of quoted options in the config files is improved. What this allows, is all the options in LINT to be specified to be configured as #defines in a file rather than on the CC command line at kernel build time. This means that 'make depend' will catch dependencies on actual *options*, meaning that you can run 'config' and 'make depend' in complete safety WITHOUT removing the compile directory each time. Unfortunately, this requires a pass over the source to get the individual files to #include the new .h files that would be generated by config. This has a small compile time penalty (appears up to about 2% slower) from a "fresh" build. Of course, you should not be needing to do complete rebuilds very often once this was completed, so it would be an overall win for most people. Since this code is dormant and we've got a lot of other things happening on the kernel tree at the moment (prototypes, devfs, static declarations etc) I am not planning on doing any changes to activate this feature just yet.
16 lines
362 B
Makefile
16 lines
362 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
|
|
|
PROG= config
|
|
CFLAGS+=-I. -I${.CURDIR}
|
|
SRCS= config.c main.c lang.c mkioconf.c mkmakefile.c mkglue.c mkheaders.c \
|
|
mkoptions.c mkswapconf.c
|
|
MAN8= config.8
|
|
DPADD= ${LIBL}
|
|
LDADD= -ll
|
|
CLEANFILES+= config.c lang.c lex.yy.c y.tab.[ch]
|
|
.if defined(CONFIG_NO_CLOBBER_EVER)
|
|
CFLAGS+=-DNO_CLOBBER_EVER
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|