1234567891011121314151617181920212223242526272829303132333435 |
- obj := .
- src := .
- top_srcdir=../../
- top_builddir=../../
- srctree := .
- include $(top_builddir)Rules.mak
- 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
|