aboutsummaryrefslogtreecommitdiff
path: root/kconfig/Makefile
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-03-12 22:54:02 -0400
committerRob Landley <rob@landley.net>2007-03-12 22:54:02 -0400
commit217047b6b2a4ecfe87bda18fa425dc2df998f564 (patch)
treeec243b89dd14b3fc3cfc5e3d9b8e1110c9cb1476 /kconfig/Makefile
parent6126b258dc7c11d983ef007459e65a19925c0b2f (diff)
downloadtoybox-217047b6b2a4ecfe87bda18fa425dc2df998f564.tar.gz
Move project name to Makefile.
Diffstat (limited to 'kconfig/Makefile')
-rw-r--r--kconfig/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/kconfig/Makefile b/kconfig/Makefile
index f998e7bf..3ce2330f 100644
--- a/kconfig/Makefile
+++ b/kconfig/Makefile
@@ -3,6 +3,7 @@
# These targets are used from top-level makefile
KCONFIG_TOP = Config.in
+KCONFIG_PROJECT = ToyBox
obj = ./kconfig
PHONY += clean help oldconfig menuconfig config silentoldconfig \
randconfig allyesconfig allnoconfig allmodconfig #defconfig
@@ -52,11 +53,13 @@ SHIPPED = kconfig/zconf.tab.c kconfig/lex.zconf.c kconfig/zconf.hash.c
gen_config.h: .config
kconfig/mconf: $(SHIPPED)
- $(HOSTCC) -o $@ kconfig/{mconf.c,zconf.tab.c,lxdialog/*.c} \
- -lcurses -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS=1
+ $(HOSTCC) -o $@ kconfig/mconf.c kconfig/zconf.tab.c \
+ kconfig/lxdialog/*.c -lcurses -DCURSES_LOC="<ncurses.h>" \
+ -DKBUILD_NO_NLS=1 -DPROJECT_NAME=\"$(KCONFIG_PROJECT)\"
kconfig/conf: $(SHIPPED)
- $(HOSTCC) -o $@ kconfig/{conf.c,zconf.tab.c} -DKBUILD_NO_NLS=1
+ $(HOSTCC) -o $@ kconfig/{conf.c,zconf.tab.c} -DKBUILD_NO_NLS=1 \
+ -DPROJECT_NAME=\"$(KCONFIG_PROJECT)\"
clean::
rm -f $(wildcard kconfig/*zconf*.c) kconfig/{conf,mconf}