diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2016-07-05 23:27:47 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2016-07-05 23:27:47 +0300 |
commit | 639cdd363e35c13fe331939d0972aa4db5f5198d (patch) | |
tree | fe30e1b4e2aba61b3a9db42b281c7e18acf548de /quantum/serial_link/cgreen/Makefile.build | |
parent | 7d28d6a7bc81578bb5a83f1d55810ee3d1458e96 (diff) | |
parent | a20d513e3cdacbf6e0e70a80402497ad10166434 (diff) |
Add 'quantum/serial_link/' from commit 'a20d513e3cdacbf6e0e70a80402497ad10166434'
git-subtree-dir: quantum/serial_link
git-subtree-mainline: 7d28d6a7bc81578bb5a83f1d55810ee3d1458e96
git-subtree-split: a20d513e3cdacbf6e0e70a80402497ad10166434
Diffstat (limited to 'quantum/serial_link/cgreen/Makefile.build')
-rw-r--r-- | quantum/serial_link/cgreen/Makefile.build | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/quantum/serial_link/cgreen/Makefile.build b/quantum/serial_link/cgreen/Makefile.build new file mode 100644 index 0000000000..f76165244c --- /dev/null +++ b/quantum/serial_link/cgreen/Makefile.build @@ -0,0 +1,33 @@ +# This Makefile is copied from the cgreen top directory (where it is +# named Makefile.build) and put in a subdirectory called 'build' where +# builds are made This Makefile then automatically creates +# subdirectories for C and C++ builds configuring them using the cmake +# command. Once created you can always tweak the cmake setup as with +# any cmake build directory + +all: build-c build-c++ + for d in build-* ; do cd $$d; make ; cd .. ; done + +clean: + for d in build-* ; do cd $$d; make clean ; cd .. ; done + +check test: + for d in build-* ; do cd $$d; make check ; cd .. ; done + +package: + for d in build-* ; do cd $$d; make package ; cd .. ; done + +install: + for d in build-* ; do cd $$d; make install ; cd .. ; done + +############ Internal + +build-c: + mkdir build-c + cd build-c; cmake -G "Unix Makefiles" $(CGREEN_DIR) + +build-c++: + mkdir build-c++ + cd build-c++; cmake -G "Unix Makefiles" -DWITH_CXX:bool=ON $(CGREEN_DIR) + +.SILENT: |