summaryrefslogtreecommitdiff
path: root/kconfig/Makefile
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-07-15 09:09:04 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-07-15 09:09:04 (GMT)
commite9916d58e93c921b099170b4b5ffcd954b7da818 (patch)
treeb78c1cafe2c96884451b334cb4f534bfa7c15898 /kconfig/Makefile
parentcaab647ef249b65c00e04ae9b269163fe4ce71d9 (diff)
Rename all Makefiles used by ct-ng into (something).mk, to avoid confusion.
Diffstat (limited to 'kconfig/Makefile')
-rw-r--r--kconfig/Makefile103
1 files changed, 0 insertions, 103 deletions
diff --git a/kconfig/Makefile b/kconfig/Makefile
deleted file mode 100644
index 4765374..0000000
--- a/kconfig/Makefile
+++ /dev/null
@@ -1,103 +0,0 @@
-# ===========================================================================
-# crosstool-NG configuration targets
-# These targets are used from top-level makefile
-
-# Derive the project version from, well, the project version:
-export PROJECTVERSION=$(CT_VERSION)
-
-KCONFIG_TOP = config/config.in
-obj = $(CT_TOP_DIR)/kconfig
-PHONY += clean help oldconfig menuconfig config defoldconfig
-
-# Darwin (MacOS-X) does not have proper libintl support
-ifeq ($(shell uname -s),Darwin)
-KBUILD_NO_NLS:=1
-endif
-
-ifneq ($(KBUILD_NO_NLS),)
-CFLAGS += -DKBUILD_NO_NLS
-endif
-
-# Build a list of all config files
-DEBUG_CONFIG_FILES = $(shell find $(CT_LIB_DIR)/config/debug -type f -name '*.in')
-TOOLS_CONFIG_FILES = $(shell find $(CT_LIB_DIR)/config/tools -type f -name '*.in')
-
-STATIC_CONFIG_FILES = $(shell find $(CT_LIB_DIR)/config -type f -name '*.in')
-GEN_CONFIG_FILES=$(CT_TOP_DIR)/config.gen/debug.in \
- $(CT_TOP_DIR)/config.gen/tools.in
-
-CONFIG_FILES=$(STATIC_CONFIG_FILES) $(GEN_CONFIG_FILES)
-
-$(GEN_CONFIG_FILES):: $(CT_TOP_DIR)/config.gen
-
-$(CT_TOP_DIR)/config.gen:
- @mkdir -p $(CT_TOP_DIR)/config.gen
-
-$(CT_TOP_DIR)/config.gen/debug.in:: $(DEBUG_CONFIG_FILES)
- @echo "# Debug facilities menu" >$@
- @echo "# Generated file, do not edit!!!" >>$@
- @echo "menu \"Debug facilities\"" >>$@
- @for f in $(patsubst $(CT_TOP_DIR)/%,%,$(wildcard $(CT_TOP_DIR)/config/debug/*.in)); do \
- echo "source $${f}"; \
- done >>$@
- @echo "endmenu" >>$@
-
-$(CT_TOP_DIR)/config.gen/tools.in:: $(TOOLS_CONFIG_FILES)
- @echo "# Tools facilities menu" >$@
- @echo "# Generated file, do not edit!!!" >>$@
- @echo "menu \"Tools facilities\"" >>$@
- @for f in $(patsubst $(CT_TOP_DIR)/%,%,$(wildcard $(CT_TOP_DIR)/config/tools/*.in)); do \
- echo "source $${f}"; \
- done >>$@
- @echo "endmenu" >>$@
-
-config menuconfig oldconfig defoldconfig:: $(KCONFIG_TOP)
-
-$(KCONFIG_TOP):
- @ln -s $(CT_LIB_DIR)/config config
-
-menuconfig:: $(obj)/mconf $(CONFIG_FILES)
- @$< $(KCONFIG_TOP)
-
-config:: $(obj)/conf $(CONFIG_FILES)
- @$< $(KCONFIG_TOP)
-
-oldconfig:: $(obj)/conf $(CONFIG_FILES)
- @$< -s $(KCONFIG_TOP)
-
-defoldconfig:: $(obj)/conf $(CONFIG_FILES)
- @yes "" |$< -s $(KCONFIG_TOP) >/dev/null
-
-# Help text used by make help
-help-config::
- @echo ' config - Update current config using a line-oriented program'
- @echo ' menuconfig - Update current config using a menu based program'
- @echo ' oldconfig - Update current config using a provided .config as base'
-
-# Cheesy build
-
-SHIPPED = $(CT_LIB_DIR)/kconfig/zconf.tab.c $(CT_LIB_DIR)/kconfig/lex.zconf.c $(CT_LIB_DIR)/kconfig/zconf.hash.c
-
-%.c: %.c_shipped
- @ln -s $(notdir $<) $@
-
-$(obj)/conf $(obj)/mconf:: $(obj)
-
-$(obj):
- @mkdir -p $(obj)
-
-$(obj)/mconf:: $(SHIPPED) $(CT_LIB_DIR)/kconfig/mconf.c
- @$(HOST_CC) $(CFLAGS) -o $@ $(CT_LIB_DIR)/kconfig/{mconf.c,zconf.tab.c,lxdialog/*.c} \
- -lcurses "-DCURSES_LOC=<ncurses.h>"
-
-$(obj)/conf:: $(SHIPPED) $(CT_LIB_DIR)/kconfig/conf.c
- @$(HOST_CC) $(CFLAGS) -o $@ $(CT_LIB_DIR)/kconfig/{conf.c,zconf.tab.c}
-
-clean::
- @rm -f $(CT_TOP_DIR)/kconfig/{,m}conf
- @rmdir --ignore-fail-on-non-empty $(CT_TOP_DIR)/kconfig 2>/dev/null || true
- @rm -f $(CT_TOP_DIR)/config
- @rm -rf $(CT_TOP_DIR)/config.gen
-
-distclean::
- @rm -f $(CT_TOP_DIR)/config