# ===========================================================================
-# Kernel configuration targets
+# OpenWrt configuration targets
# These targets are used from top-level makefile
# ===========================================================================
# Utilizes the lxdialog package
# object files used by all kconfig flavours
+
+# Platform specific fixes
+#
+# FreeBSD
+export CFLAGS+=-DKBUILD_NO_NLS
+
conf-objs := conf.o zconf.tab.o
mconf-objs := mconf.o zconf.tab.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
+all: conf mconf lxdialog/lxdialog
-.PHONY: lxdialog
-lxdialog:
+lxdialog/lxdialog:
$(MAKE) -C lxdialog
conf: $(conf-objs)
zconf.hash.c: zconf.gperf
%.tab.c: %.y
- bison -l -b $* -p $(notdir $*) $< && cp $@ $@_shipped || cp $@_shipped $@
+ cp $@_shipped $@ || bison -l -b $* -p $(notdir $*) $<
lex.%.c: %.l
- flex -L -P$(notdir $*) -o$@ $< && cp $@ $@_shipped || cp $@_shipped $@
+ cp $@_shipped $@ || flex -L -P$(notdir $*) -o$@ $<
%.hash.c: %.gperf
- gperf < $< > $@ && cp $@ $@_shipped || cp $@_shipped $@
+ cp $@_shipped $@ || gperf < $< > $@