Mercurial > hg > toybox
comparison kconfig/Makefile @ 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 | 4dc8017fdb0e |
comparison
equal
deleted
inserted
replaced
109:1c5fa783450b | 110:db63b2829eda |
---|---|
1 # =========================================================================== | 1 # =========================================================================== |
2 # Kernel configuration targets | 2 # Kernel configuration targets |
3 # These targets are used from top-level makefile | 3 # These targets are used from top-level makefile |
4 | 4 |
5 KCONFIG_TOP = Config.in | 5 KCONFIG_TOP = Config.in |
6 KCONFIG_PROJECT = ToyBox | |
6 obj = ./kconfig | 7 obj = ./kconfig |
7 PHONY += clean help oldconfig menuconfig config silentoldconfig \ | 8 PHONY += clean help oldconfig menuconfig config silentoldconfig \ |
8 randconfig allyesconfig allnoconfig allmodconfig #defconfig | 9 randconfig allyesconfig allnoconfig allmodconfig #defconfig |
9 | 10 |
10 menuconfig: $(obj)/mconf | 11 menuconfig: $(obj)/mconf |
50 @ln -s $(notdir $<) $@ | 51 @ln -s $(notdir $<) $@ |
51 | 52 |
52 gen_config.h: .config | 53 gen_config.h: .config |
53 | 54 |
54 kconfig/mconf: $(SHIPPED) | 55 kconfig/mconf: $(SHIPPED) |
55 $(HOSTCC) -o $@ kconfig/{mconf.c,zconf.tab.c,lxdialog/*.c} \ | 56 $(HOSTCC) -o $@ kconfig/mconf.c kconfig/zconf.tab.c \ |
56 -lcurses -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS=1 | 57 kconfig/lxdialog/*.c -lcurses -DCURSES_LOC="<ncurses.h>" \ |
58 -DKBUILD_NO_NLS=1 -DPROJECT_NAME=\"$(KCONFIG_PROJECT)\" | |
57 | 59 |
58 kconfig/conf: $(SHIPPED) | 60 kconfig/conf: $(SHIPPED) |
59 $(HOSTCC) -o $@ kconfig/{conf.c,zconf.tab.c} -DKBUILD_NO_NLS=1 | 61 $(HOSTCC) -o $@ kconfig/{conf.c,zconf.tab.c} -DKBUILD_NO_NLS=1 \ |
62 -DPROJECT_NAME=\"$(KCONFIG_PROJECT)\" | |
60 | 63 |
61 clean:: | 64 clean:: |
62 rm -f $(wildcard kconfig/*zconf*.c) kconfig/{conf,mconf} | 65 rm -f $(wildcard kconfig/*zconf*.c) kconfig/{conf,mconf} |