diff options
author | gibbs <gibbs@FreeBSD.org> | 1994-11-17 20:30:01 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1994-11-17 20:30:01 +0000 |
commit | 8aa7a37ccea05f9b9ace655762ecee3fc54d1d97 (patch) | |
tree | 373bc925211666d905d56d30f3306f04f3b413ad /usr.sbin/config/config.h | |
parent | ead58c9f62b0ea7f0f4b4090eb1cb3a6f7a32540 (diff) | |
download | FreeBSD-src-8aa7a37ccea05f9b9ace655762ecee3fc54d1d97.zip FreeBSD-src-8aa7a37ccea05f9b9ace655762ecee3fc54d1d97.tar.gz |
Add new keywords to config. The options availible in file.i386 are now:
/*
* filename [ standard | optional ] [ config-dependent ]
* [ dev* | profiling-routine ] [ device-driver] [ no-obj ]
* [ compile-with "compile rule" [no-implicit-rule] ]
* [ dependancy "dependancy-list"]
*/
I added
no-obj - This entry does not create anything linkable to the kernel.
dependancy - Add additional dependancy rules to a target.
no-implicit-rule - Don't assume .c -> .o type rules. Config is really
dumb in this area and assumes that everything is a .c file
irregarless of extention. This was the best choice really
since there may even be .c file that you don't want to follow
the standard rules.
This was all done so that the building to the aic7770 assembler and using
the aic7770 assembler in the building of the aic7770 driver could be config
dependant. I can now have an entry like this for the driver:
aic7770 optional ahc device-driver \
compile-with "${CC} $> -o $@" \
dependancy "$S/gnu/misc/aic7770/aic7770.c" \
no-obj no-implicit-rule
aic7770_seq.h optional ahc device-driver \
compile-with "${.CURDIR}/aic7770 -o $@ $S/gnu/misc/aic7770/aic7770.seq"\
dependancy "$S/gnu/misc/aic7770/aic7770.seq aic7770" \
no-obj no-implicit-rule
i386/isa/aic7770.c optional ahc device-driver \
dependancy "aic7770_seq.h"
I also added '\' escaping to newlines so that this doesn't look as gross as
it could have.
Reviewed by: jkh
Diffstat (limited to 'usr.sbin/config/config.h')
-rw-r--r-- | usr.sbin/config/config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/config/config.h b/usr.sbin/config/config.h index 012a249..ec89072 100644 --- a/usr.sbin/config/config.h +++ b/usr.sbin/config/config.h @@ -48,6 +48,7 @@ struct file_list { u_char f_type; /* see below */ u_char f_flags; /* see below */ char *f_special; /* special make rule if present */ + char *f_depends; /* additional dependancies */ char *f_needs; /* * Random values: @@ -94,6 +95,8 @@ struct file_list { * Attributes (flags). */ #define CONFIGDEP 1 +#define NO_IMPLCT_RULE 2 +#define NO_OBJ 4 struct idlst { char *id; |