diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-04-18 12:05:16 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-04-18 12:05:16 +0000 |
commit | 9d5510a500a1804484152adb8951dda3688658bc (patch) | |
tree | 6e4d8725c2956742201d0e14126f7e457b453c66 /scripts/config/Makefile | |
parent | 97e7fdf6fdb8a91da52f622b499181171262af19 (diff) | |
download | upstream-9d5510a500a1804484152adb8951dda3688658bc.tar.gz upstream-9d5510a500a1804484152adb8951dda3688658bc.tar.bz2 upstream-9d5510a500a1804484152adb8951dda3688658bc.zip |
build: add new menuconfig code based on linux 3.9
SVN-Revision: 36361
Diffstat (limited to 'scripts/config/Makefile')
-rw-r--r-- | scripts/config/Makefile | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/scripts/config/Makefile b/scripts/config/Makefile index 54c5fe25af..3de98082b5 100644 --- a/scripts/config/Makefile +++ b/scripts/config/Makefile @@ -13,41 +13,39 @@ # Platform specific fixes # # FreeBSD -export CFLAGS+=-DKBUILD_NO_NLS + +check_lxdialog = $(shell $(SHELL) $(CURDIR)/lxdialog/check-lxdialog.sh -$(1)) +export CFLAGS += -DKBUILD_NO_NLS -I. $(call check_lxdialog,ccflags) conf-objs := conf.o zconf.tab.o mconf-objs := mconf.o zconf.tab.o +lxdialog-objs := \ + lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o \ + lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o -clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ - .tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c - -all: conf mconf lxdialog/lxdialog +clean-files := zconf.tab.c lex.zconf.c zconf.hash.c -lxdialog/lxdialog: - $(MAKE) -C lxdialog +all: conf mconf conf: $(conf-objs) -mconf: $(mconf-objs) +mconf: $(mconf-objs) $(lxdialog-objs) + $(CC) -o $@ $^ $(call check_lxdialog,ldflags $(CC)) clean: - rm -f *.o $(clean-files) conf mconf - $(MAKE) -C lxdialog clean + rm -f *.o lxdialog/*.o $(clean-files) conf mconf -zconf.tab.o: lex.zconf.c zconf.hash.c confdata.c +zconf.tab.o: zconf.lex.c zconf.hash.c confdata.c kconfig_load.o: lkc_defs.h -lkc_defs.h: $(src)/lkc_proto.h - sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' - zconf.tab.c: zconf.y -lex.zconf.c: zconf.l +zconf.lex.c: zconf.l zconf.hash.c: zconf.gperf %.tab.c: %.y cp $@_shipped $@ || bison -l -b $* -p $(notdir $*) $< -lex.%.c: %.l +%.lex.c: %.l cp $@_shipped $@ || flex -L -P$(notdir $*) -o$@ $< %.hash.c: %.gperf |