summaryrefslogtreecommitdiff
path: root/extra/config/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-02-14 08:21:06 +0000
committerMike Frysinger <vapier@gentoo.org>2007-02-14 08:21:06 +0000
commit43a95b8896b0d271de3bbb28cc18810f39b2e15b (patch)
treed5a2c3215fb3de4cefaedb54b7d607cf0a951595 /extra/config/Makefile
parent38d85080f672b7f1815e81e6f10b4d4e1e2d45aa (diff)
pull latest kconfig from kernel
Diffstat (limited to 'extra/config/Makefile')
-rw-r--r--extra/config/Makefile42
1 files changed, 32 insertions, 10 deletions
diff --git a/extra/config/Makefile b/extra/config/Makefile
index 519d55844..84a0ed34f 100644
--- a/extra/config/Makefile
+++ b/extra/config/Makefile
@@ -1,13 +1,35 @@
-# Makefile for uClibc
-#
-# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
-#
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-#
-
+obj := .
+src := .
top_srcdir=../../
top_builddir=../../
+srctree := .
include $(top_builddir)Rules.mak
-all: objs
-include Makefile.in
-include $(top_srcdir)Makerules
+
+include Makefile.kconfig
+
+__hostprogs := $(sort $(hostprogs-y) $(hostprogs-m))
+host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m)))
+host-cmulti := $(foreach m,$(__hostprogs),\
+ $(if $($(m)-cxxobjs),,$(if $($(m)-objs),$(m))))
+host-cobjs := $(sort $(foreach m,$(__hostprogs),$($(m)-objs)))
+
+$(host-csingle): %: %.c FORCE
+ $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(HOST_LOADLIBES) $< -o $@
+
+$(host-cmulti): %: $(host-cobjs) $(host-cshlib) FORCE
+ $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(HOST_LOADLIBES) $($@-objs) -o $@
+
+$(host-cobjs): %.o: %.c FORCE
+ $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) -c $< -o $@
+
+$(obj)/%:: $(src)/%_shipped
+ $(Q)cat $< > $@
+
+clean:
+ $(Q)rm -f $(clean-files)
+distclean: clean
+ $(Q)rm -f $(lxdialog) $(conf-objs) $(mconf-objs) $(kxgettext-objs) \
+ $(hostprogs-y) $(qconf-cxxobjs) $(qconf-objs) $(gconf-objs)
+
+FORCE:
+.PHONY: FORCE clean distclean