Makefile 965 B

123456789101112131415161718192021222324252627
  1. IVORY_REPO ?= ../../../ivory
  2. TOWER_REPO ?= ../../../tower
  3. BSP_REPO ?= ../../../ivory-tower-stm32
  4. default:
  5. cabal build
  6. create-sandbox:
  7. cabal sandbox init
  8. cabal sandbox add-source $(IVORY_REPO)/ivory
  9. cabal sandbox add-source $(IVORY_REPO)/ivory-artifact
  10. cabal sandbox add-source $(IVORY_REPO)/ivory-serialize
  11. cabal sandbox add-source $(IVORY_REPO)/ivory-stdlib
  12. cabal sandbox add-source $(IVORY_REPO)/ivory-opts
  13. cabal sandbox add-source $(IVORY_REPO)/ivory-hw
  14. cabal sandbox add-source $(IVORY_REPO)/ivory-backend-c
  15. cabal sandbox add-source $(TOWER_REPO)/tower-config
  16. cabal sandbox add-source $(TOWER_REPO)/tower
  17. cabal sandbox add-source $(BSP_REPO)/ivory-freertos-bindings
  18. cabal sandbox add-source $(BSP_REPO)/tower-freertos-stm32
  19. cabal sandbox add-source $(BSP_REPO)/ivory-bsp-stm32
  20. cabal sandbox add-source $(BSP_REPO)/ivory-bsp-tests
  21. cabal install --enable-tests --dependencies-only
  22. test:
  23. cabal run -- --src-dir=codegen-out
  24. make -C codegen-out