kumquat-buildroot/package/config/Makefile

41 lines
1.2 KiB
Makefile
Raw Normal View History

2007-06-28 12:46:19 +02:00
obj := .
src := .
top_srcdir=../../
top_builddir=../../
srctree := .
2007-06-28 12:46:19 +02:00
include Makefile.kconfig
#HOSTCFLAGS+=-Dinline="" -include foo.h
2007-06-28 12:46:19 +02:00
-include .depend
.depend: $(wildcard *.h *.c)
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > .depend 2>/dev/null || :
2007-06-28 12:46:19 +02:00
__hostprogs := $(sort $(hostprogs-y) $(hostprogs-m))
2007-08-22 14:35:41 +02:00
host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m)))
2007-06-28 12:46:19 +02:00
host-cmulti := $(foreach m,$(__hostprogs),\
$(if $($(m)-cxxobjs),,$(if $($(m)-objs),$(m))))
2007-08-22 14:35:41 +02:00
host-cobjs := $(sort $(foreach m,$(__hostprogs),$($(m)-objs)))
2007-06-28 12:46:19 +02:00
$(host-csingle): %: %.c
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $< $(HOST_LOADLIBES) -o $@
2007-06-28 12:46:19 +02:00
$(host-cmulti): %: $(host-cobjs) $(host-cshlib)
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $($@-objs) $(HOST_LOADLIBES) -o $@
2007-06-28 12:46:19 +02:00
$(host-cobjs): %.o: %.c
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) -c $< -o $@
2007-06-28 12:46:19 +02:00
$(obj)/%:: $(src)/%_shipped
$(Q)cat $< > $@
clean:
2007-06-28 12:46:19 +02:00
$(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) \
mconf .depend
$(Q)rm -rf buildroot-config
2007-06-28 12:46:19 +02:00
FORCE:
.PHONY: FORCE clean distclean