Kbuild 753 B

12345678910111213141516171819202122232425
  1. # Makefile for busybox
  2. #
  3. # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
  4. #
  5. # Licensed under the GPL v2, see the file LICENSE in this tarball.
  6. obj-y:=
  7. obj-y += applets.o
  8. hostprogs-y:=
  9. hostprogs-y += usage
  10. always:= $(hostprogs-y)
  11. # Generated files need additional love
  12. quiet_cmd_gen_usage_compressed = GEN include/usage_compressed.h
  13. cmd_gen_usage_compressed = $(srctree)/applets/usage_compressed include/usage_compressed.h applets
  14. HOSTCFLAGS_usage.o = -I$(srctree)/include
  15. applets/applets.o: include/usage_compressed.h
  16. applets/usage: .config $(srctree)/applets/usage_compressed
  17. include/usage_compressed.h: applets/usage $(srctree)/applets/usage_compressed
  18. $(call cmd,gen_usage_compressed)