disable gettext in menuconfig
[openwrt.git] / scripts / config / Makefile
1 # ===========================================================================
2 # OpenWrt configuration targets
3 # These targets are used from top-level makefile
4
5 # ===========================================================================
6 # Shared Makefile for the various kconfig executables:
7 # conf: Used for defconfig, oldconfig and related targets
8 # mconf: Used for the mconfig target.
9 # Utilizes the lxdialog package
10 # object files used by all kconfig flavours
11
12
13 # Platform specific fixes
14 #
15 # FreeBSD
16 export CFLAGS+=-DKBUILD_NO_NLS
17
18 conf-objs := conf.o zconf.tab.o
19 mconf-objs := mconf.o zconf.tab.o
20
21 clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \
22 .tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c
23
24 all: conf mconf lxdialog
25
26 .PHONY: lxdialog
27 lxdialog:
28 $(MAKE) -C lxdialog
29
30 conf: $(conf-objs)
31 mconf: $(mconf-objs)
32
33 clean:
34 rm -f *.o $(clean-files) conf mconf
35 $(MAKE) -C lxdialog clean
36
37 zconf.tab.o: lex.zconf.c zconf.hash.c
38
39 kconfig_load.o: lkc_defs.h
40
41 lkc_defs.h: $(src)/lkc_proto.h
42 sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
43
44 zconf.tab.c: zconf.y
45 lex.zconf.c: zconf.l
46 zconf.hash.c: zconf.gperf
47
48 %.tab.c: %.y
49 cp $@_shipped $@ || bison -l -b $* -p $(notdir $*) $<
50
51 lex.%.c: %.l
52 cp $@_shipped $@ || flex -L -P$(notdir $*) -o$@ $<
53
54 %.hash.c: %.gperf
55 cp $@_shipped $@ || gperf < $< > $@
This page took 0.048767 seconds and 5 git commands to generate.