Makefile 1.1 KB

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