
include			../../Makefile.top

WFLAGS			:= -Wall
PROGRAMS		:= mconfig config
mconfig-OBJS		:= zconf-y.o mconf.o
mconfig-LDADD		:= $(ODIR)/libkconf.a
config-OBJS		:= zconf-y.o conf.o
XTARGETS		:= kconf
kconf-OBJS		:= zconf-y.o
LIBS			:= $(LEXLIB)

LXDIALOG		:= ./config/lxdialog/$(ODIR)/lxdialog
PROJECT			:= "Mac-on-Linux"
DEFCONFIG		:= config/defconfig-$(ARCH)
CONFHEADER		:= config/kconfig/.autoinclude/autoconf-$(ARCH).h

export 			LXDIALOG VERSION EXTRAVERSION PROJECT DEFCONFIG
export			CONFHEADER

.autoinclude:
	@install -d $@

distclean-local:
	@rm -rf .autoinclude

menuconfig: $(ODIR)/mconfig .autoinclude
	cd $(top_srcdir) ; ./config/kconfig/$(ODIR)/mconfig config/Kconfig 

config: $(ODIR)/config .autoinclude
	cd $(top_srcdir) ; ./config/kconfig/$(ODIR)/config config/Kconfig 

defconfig: $(ODIR)/config .autoinclude
	cd $(top_srcdir) ; ./config/kconfig/$(ODIR)/config -d config/Kconfig 

oldconfig: $(ODIR)/config .autoinclude
	cd $(top_srcdir) ; ./config/kconfig/$(ODIR)/config -o config/Kconfig 

YFLAGS			= -p zconf
MAINTAINERCLEANFILES	= zconf-y.c zconf-y.h zconf-l.c

$(ODIR)/zconf-y.o: zconf-y.c zconf-l.c zconf-y.h

all-local:
	@$(RM) lex.backup

include			../../Rules.make
