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
2007-06-28 13:53:59 +02:00
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))
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)))
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_$@) $(HOST_LOADLIBES) $($@-objs) -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