Makefile 871 B

12345678910111213141516171819202122232425262728
  1. exec_target = busybox.manifest busybox_nofork.manifest
  2. target = busybox busybox_gdb busybox_nofork busybox_nofork_gdb
  3. level = ../../
  4. include ../../Makefile
  5. BUSYBOX_DIR = busybox-1.23.1
  6. ifeq ($(DEBUG),1)
  7. MAKE_FLAGS = CC="gcc -g"
  8. endif
  9. busybox busybox_gdb: config-graphene
  10. [ -d $(BUSYBOX_DIR) ] || tar -xjf $(BUSYBOX_DIR).tar.bz2
  11. cp config-graphene $(BUSYBOX_DIR)/.config
  12. cd $(BUSYBOX_DIR) && $(MAKE) $(MAKE_FLAGS)
  13. cp $(BUSYBOX_DIR)/busybox busybox
  14. cp $(BUSYBOX_DIR)/busybox_unstripped busybox_gdb
  15. busybox_nofork busybox_nofork_gdb: $(BUSYBOX_DIR) config-graphene-nofork
  16. [ -d $(BUSYBOX_DIR) ] || tar -xjf $(BUSYBOX_DIR).tar.bz2
  17. cp config-graphene-nofork $(BUSYBOX_DIR)/.config
  18. cd $(BUSYBOX_DIR) && $(MAKE) $(MAKE_FLAGS)
  19. cp $(BUSYBOX_DIR)/busybox busybox_nofork
  20. cp $(BUSYBOX_DIR)/busybox_unstripped busybox_nofork_gdb
  21. distclean: clean
  22. rm -rf $(BUSYBOX_DIR)