-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
31 lines (24 loc) · 799 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
-include config.mk
example:
#build example program of libqpsolver
@echo "Build example program"
@$(MAKE) -C ./example -f build_example.mk
libqpsolver:
#build library as static object
@echo "Build libqpsolver.a"
@$(MAKE) -C ./src -f libqpsolver.mk
unit_test_qp:
#test of linear algebra functions
@$(MAKE) -C ./unit_test/qpsolver -f Makefile
@./unit_test/qpsolver/run_test.sh
unit_test_matrix:
#test of quadratic programming solver
@$(MAKE) -C ./unit_test/matrix -f Makefile
@./unit_test/matrix/run_test.sh
astyle:
astyle --style=linux --indent=tab=8 --recursive "*.c,*.cpp,*.h"
clean:
@$(MAKE) -C ./src -f libqpsolver.mk clean
@$(MAKE) -C ./example -f build_example.mk clean
@$(MAKE) -C ./unit_test/qpsolver -f Makefile clean
.PHONY: example libqpsolver unit_test astyle clean