Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. obj := .
  2. src := .
  3. top_srcdir=../../
  4. top_builddir=../../
  5. srctree := .
  6. include $(top_builddir)Rules.mak
  7. include Makefile.kconfig
  8. __hostprogs := $(sort $(hostprogs-y) $(hostprogs-m))
  9. host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m)))
  10. host-cmulti := $(foreach m,$(__hostprogs),\
  11. $(if $($(m)-cxxobjs),,$(if $($(m)-objs),$(m))))
  12. host-cobjs := $(sort $(foreach m,$(__hostprogs),$($(m)-objs)))
  13. $(host-csingle): %: %.c FORCE
  14. $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(HOST_LOADLIBES) $< -o $@
  15. $(host-cmulti): %: $(host-cobjs) $(host-cshlib) FORCE
  16. $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(HOST_LOADLIBES) $($@-objs) -o $@
  17. $(host-cobjs): %.o: %.c FORCE
  18. $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) -c $< -o $@
  19. $(obj)/%:: $(src)/%_shipped
  20. $(Q)cat $< > $@
  21. clean:
  22. $(Q)rm -f $(clean-files)
  23. distclean: clean
  24. $(Q)rm -f $(lxdialog) $(conf-objs) $(mconf-objs) $(kxgettext-objs) \
  25. $(hostprogs-y) $(qconf-cxxobjs) $(qconf-objs) $(gconf-objs)
  26. FORCE:
  27. .PHONY: FORCE clean distclean