3
0

Kbuild 1022 B

12345678910111213141516171819202122232425262728293031323334
  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 applet_tables
  10. always:= $(hostprogs-y)
  11. # Generated files need additional love
  12. HOSTCFLAGS_usage.o = -I$(srctree)/include
  13. applets/applets.o: include/usage_compressed.h include/applet_tables.h
  14. applets/usage: .config $(srctree)/applets/usage_compressed
  15. applets/applet_tables: .config
  16. quiet_cmd_gen_usage_compressed = GEN include/usage_compressed.h
  17. cmd_gen_usage_compressed = $(srctree)/applets/usage_compressed include/usage_compressed.h applets
  18. include/usage_compressed.h: applets/usage $(srctree)/applets/usage_compressed
  19. $(call cmd,gen_usage_compressed)
  20. quiet_cmd_gen_applet_tables = GEN include/applet_tables.h
  21. cmd_gen_applet_tables = applets/applet_tables include/applet_tables.h
  22. include/applet_tables.h: applets/applet_tables
  23. $(call cmd,gen_applet_tables)