changeset 110:db63b2829eda

Move project name to Makefile.
author Rob Landley <rob@landley.net>
date Mon, 12 Mar 2007 22:54:02 -0400
parents 1c5fa783450b
children a3b8838c3908
files kconfig/Makefile kconfig/lkc.h
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/kconfig/Makefile	Mon Mar 12 21:17:01 2007 -0400
+++ b/kconfig/Makefile	Mon Mar 12 22:54:02 2007 -0400
@@ -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 @@
 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}
--- a/kconfig/lkc.h	Mon Mar 12 21:17:01 2007 -0400
+++ b/kconfig/lkc.h	Mon Mar 12 22:54:02 2007 -0400
@@ -6,9 +6,6 @@
 #ifndef LKC_H
 #define LKC_H
 
-//#define PROJECT_NAME "Linux kernel"
-#define PROJECT_NAME "Toybox"
-
 // Make some warnings go away
 #define YYENABLE_NLS 0
 #define YYLTYPE_IS_TRIVIAL 0