Makefile 842 B

123456789101112131415161718192021222324252627282930313233
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. prepare:
  5. if [ ! -d $(BUILD_DIR)/rtems ]; then \
  6. cd $(BUILD_DIR) ;\
  7. git clone git://git.rtems.org/rtems.git ;\
  8. fi
  9. if [ ! -f $(BUILD_DIR)/rtems/configure ]; then \
  10. cd $(BUILD_DIR)/rtems && ./bootstrap ;\
  11. fi
  12. -mkdir $(BUILD_DIR)/rtems-build
  13. cd $(BUILD_DIR)/rtems-build && \
  14. PATH='$(TARGET_PATH)' $(BUILD_DIR)/rtems/configure \
  15. --prefix=$(BUILD_DIR)/rtems-install
  16. --target=$(ADK_TARGET_CPU_ARCH)-$(ADK_TARGET_OS) \
  17. --enable-tests=samples \
  18. compile:
  19. PATH='$(TARGET_PATH)' $(MAKE) -C \
  20. $(BUILD_DIR)/rtems-build
  21. install:
  22. -mkdir $(BUILD_DIR)/rtems-install
  23. PATH='$(TARGET_PATH)' $(MAKE) -C \
  24. $(BUILD_DIR)/rtems-build install
  25. clean:
  26. targethelp: