diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-04-20 16:00:07 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-04-20 16:00:07 +0000 |
commit | 01c2f5b0f20331bcfb16df2b7e1f3122a57795c2 (patch) | |
tree | 3ada8023901f77ce8e3206748bd31d7265d80095 /payloads/libpayload/util/kconfig/Makefile | |
parent | 682ea3cc2132639311d772ad9bcb00748e59a257 (diff) |
Copy mingw support for kconfig from coreboot to libpayload
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5463 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/util/kconfig/Makefile')
-rw-r--r-- | payloads/libpayload/util/kconfig/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/payloads/libpayload/util/kconfig/Makefile b/payloads/libpayload/util/kconfig/Makefile index a20ccedbe6..f613a62fa3 100644 --- a/payloads/libpayload/util/kconfig/Makefile +++ b/payloads/libpayload/util/kconfig/Makefile @@ -4,6 +4,12 @@ PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config +_OS=$(shell uname -s |cut -c-7) +regex-objs= +ifeq ($(_OS),MINGW32) + regex-objs=regex.o +endif + Kconfig := Config.in xconfig: prepare $(objk)/qconf @@ -113,8 +119,8 @@ HOST_EXTRACFLAGS += -DLOCALE lxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o lxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o -conf-objs := conf.o zconf.tab.o -mconf-objs := mconf.o zconf.tab.o $(lxdialog) +conf-objs := conf.o zconf.tab.o $(regex-objs) +mconf-objs := mconf.o zconf.tab.o $(lxdialog) $(regex-objs) kxgettext-objs := kxgettext.o zconf.tab.o hostprogs-y := conf qconf gconf kxgettext @@ -133,11 +139,11 @@ endif ifeq ($(qconf-target),1) qconf-cxxobjs := qconf.o -qconf-objs := kconfig_load.o zconf.tab.o +qconf-objs := kconfig_load.o zconf.tab.o $(regex-objs) endif ifeq ($(gconf-target),1) -gconf-objs := gconf.o kconfig_load.o zconf.tab.o +gconf-objs := gconf.o kconfig_load.o zconf.tab.o $(regex-objs) endif clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ @@ -306,6 +312,8 @@ $(objk)/mconf.o: $(srck)/mconf.c $(Q)$(HOSTCC) $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) -c -o $@ $< $(objk)/conf.o: $(srck)/conf.c $(Q)$(HOSTCC) $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) -c -o $@ $< +$(objk)/regex.o: $(srck)/regex.c + $(HOSTCC) $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) -DHAVE_STRING_H -c -o $@ $< $(objk)/zconf.tab.o: $(objk)/zconf.tab.c $(objk)/lex.zconf.c \ $(objk)/zconf.hash.c |