You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.3 KiB
56 lines
1.3 KiB
19 years ago
|
# ===========================================================================
|
||
19 years ago
|
# OpenWrt configuration targets
|
||
19 years ago
|
# These targets are used from top-level makefile
|
||
|
|
||
|
# ===========================================================================
|
||
|
# Shared Makefile for the various kconfig executables:
|
||
|
# conf: Used for defconfig, oldconfig and related targets
|
||
|
# mconf: Used for the mconfig target.
|
||
|
# Utilizes the lxdialog package
|
||
|
# object files used by all kconfig flavours
|
||
|
|
||
19 years ago
|
|
||
|
# Platform specific fixes
|
||
|
#
|
||
|
# FreeBSD
|
||
18 years ago
|
export CFLAGS+=-DKBUILD_NO_NLS
|
||
19 years ago
|
|
||
19 years ago
|
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
|
||
|
|
||
|
.PHONY: lxdialog
|
||
|
lxdialog:
|
||
|
$(MAKE) -C lxdialog
|
||
|
|
||
|
conf: $(conf-objs)
|
||
|
mconf: $(mconf-objs)
|
||
|
|
||
|
clean:
|
||
|
rm -f *.o $(clean-files) conf mconf
|
||
|
$(MAKE) -C lxdialog clean
|
||
|
|
||
|
zconf.tab.o: lex.zconf.c zconf.hash.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.hash.c: zconf.gperf
|
||
|
|
||
|
%.tab.c: %.y
|
||
19 years ago
|
cp $@_shipped $@ || bison -l -b $* -p $(notdir $*) $<
|
||
19 years ago
|
|
||
|
lex.%.c: %.l
|
||
19 years ago
|
cp $@_shipped $@ || flex -L -P$(notdir $*) -o$@ $<
|
||
19 years ago
|
|
||
|
%.hash.c: %.gperf
|
||
19 years ago
|
cp $@_shipped $@ || gperf < $< > $@
|