Makefile 817 B

12345678910111213141516171819202122232425262728293031323334
  1. # This toplevel Makefile compiles the library in the lib subdirectory.
  2. # If you want to see how to integrate the library in your own projects, check
  3. # out the sub-directories examples-api-use/ and utils/
  4. RGB_LIBDIR=./lib
  5. RGB_LIBRARY_NAME=rgbmatrix
  6. RGB_LIBRARY=$(RGB_LIBDIR)/lib$(RGB_LIBRARY_NAME).a
  7. # Some language bindings.
  8. PYTHON_LIB_DIR=bindings/python
  9. CSHARP_LIB_DIR=bindings/c\#
  10. all : $(RGB_LIBRARY)
  11. $(RGB_LIBRARY): FORCE
  12. $(MAKE) -C $(RGB_LIBDIR)
  13. $(MAKE) -C examples-api-use
  14. clean:
  15. $(MAKE) -C lib clean
  16. $(MAKE) -C utils clean
  17. $(MAKE) -C examples-api-use clean
  18. $(MAKE) -C $(PYTHON_LIB_DIR) clean
  19. build-csharp:
  20. $(MAKE) -C $(CSHARP_LIB_DIR) build
  21. build-python: $(RGB_LIBRARY)
  22. $(MAKE) -C $(PYTHON_LIB_DIR) build
  23. install-python: build-python
  24. $(MAKE) -C $(PYTHON_LIB_DIR) install
  25. FORCE:
  26. .PHONY: FORCE