2007-06-28 12:46:19 +02:00
|
|
|
obj := .
|
|
|
|
src := .
|
|
|
|
top_srcdir=../../
|
|
|
|
top_builddir=../../
|
|
|
|
srctree := .
|
2004-10-09 03:06:03 +02:00
|
|
|
|
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 || :
|
2004-10-09 03:06:03 +02:00
|
|
|
|
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)))
|
2004-10-09 03:06:03 +02:00
|
|
|
|
2007-06-28 12:46:19 +02:00
|
|
|
$(host-csingle): %: %.c
|
|
|
|
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(HOST_LOADLIBES) $< -o $@
|
2004-10-09 03:06:03 +02:00
|
|
|
|
2007-06-28 12:46:19 +02:00
|
|
|
$(host-cmulti): %: $(host-cobjs) $(host-cshlib)
|
|
|
|
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(HOST_LOADLIBES) $($@-objs) -o $@
|
2004-10-09 03:06:03 +02:00
|
|
|
|
2007-06-28 12:46:19 +02:00
|
|
|
$(host-cobjs): %.o: %.c
|
|
|
|
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) -c $< -o $@
|
2004-10-09 03:06:03 +02:00
|
|
|
|
2007-06-28 12:46:19 +02:00
|
|
|
$(obj)/%:: $(src)/%_shipped
|
|
|
|
$(Q)cat $< > $@
|
2004-10-09 03:06:03 +02:00
|
|
|
|
|
|
|
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) \
|
2007-07-06 06:58:01 +02:00
|
|
|
$(hostprogs-y) $(qconf-cxxobjs) $(qconf-objs) $(gconf-objs) \
|
|
|
|
mconf .depend
|
2004-10-09 03:06:03 +02:00
|
|
|
|
2007-06-28 12:46:19 +02:00
|
|
|
FORCE:
|
|
|
|
.PHONY: FORCE clean distclean
|