forked from hzeller/rpi-rgb-led-matrix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (28 loc) · 867 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This toplevel Makefile compiles the library in the lib subdirectory.
# If you want to see how to integrate the library in your own projects, check
# out the sub-directories examples-api-use/ and utils/
RGB_LIBDIR=./lib
RGB_LIBRARY_NAME=rgbmatrix
RGB_LIBRARY=$(RGB_LIBDIR)/lib$(RGB_LIBRARY_NAME).a
# Some language bindings.
PYTHON_LIB_DIR=bindings/python
CSHARP_LIB_DIR=bindings/c\#
all : $(RGB_LIBRARY)
$(RGB_LIBRARY): FORCE
$(MAKE) -C $(RGB_LIBDIR)
$(MAKE) -C examples-api-use
$(MAKE) -C nurdspace
clean:
$(MAKE) -C lib clean
$(MAKE) -C utils clean
$(MAKE) -C examples-api-use clean
$(MAKE) -C nurdspace clean
$(MAKE) -C $(PYTHON_LIB_DIR) clean
build-csharp:
$(MAKE) -C $(CSHARP_LIB_DIR) build
build-python: $(RGB_LIBRARY)
$(MAKE) -C $(PYTHON_LIB_DIR) build
install-python: build-python
$(MAKE) -C $(PYTHON_LIB_DIR) install
FORCE:
.PHONY: FORCE