aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen-deps
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen-deps')
-rwxr-xr-xscripts/gen-deps4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/gen-deps b/scripts/gen-deps
index b764deb..6ddd289 100755
--- a/scripts/gen-deps
+++ b/scripts/gen-deps
@@ -18,16 +18,18 @@ genlink () {
genrule () {
gencommon "${1}"
- echo " \$(COMPILE) -c \$< -o \$@" >> deps.mk
+ echo " \$(COMPILE) ${defs} -c \$< -o \$@" >> deps.mk
}
case "${1}" in
--kern)
suffix=.k.o
+ defs=-DKERNEL
func=genrule
;;
--init)
suffix=.i.o
+ defs=-DINIT
func=genrule
;;
--link)