Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 41 lines (28 sloc) 0.872 kb
a530c23 @thughes cmake: Add wrapper Makefile and README.
thughes authored
1 BUILD?=build
2 VERBOSE?=0
3 PARALLEL_JOBS?=1
4 CMAKE?=cmake
ae8262a @thughes cmake: Add toolchain file for cross-compiling.
thughes authored
5 TOOLCHAIN_FILE=#./cmake/codesourcery-arm-toolchain.cmake
a530c23 @thughes cmake: Add wrapper Makefile and README.
thughes authored
6
ae8262a @thughes cmake: Add toolchain file for cross-compiling.
thughes authored
7 all: package
a530c23 @thughes cmake: Add wrapper Makefile and README.
thughes authored
8
9 $(BUILD)/Makefile:
10 mkdir $(BUILD) || exit 0
ae8262a @thughes cmake: Add toolchain file for cross-compiling.
thughes authored
11 cd $(BUILD) && $(CMAKE) -DCMAKE_VERBOSE_MAKEFILE=$(VERBOSE) -DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) ..
a530c23 @thughes cmake: Add wrapper Makefile and README.
thughes authored
12
13 build: $(BUILD)/Makefile
14 cd $(BUILD) && make -j $(PARALLEL_JOBS)
15
16 install: build
17 cd $(BUILD) && sudo make install
18
19 clean:
20 rm -rf $(BUILD)
21
22 doc: $(BUILD)/Makefile
23 cd $(BUILD) && make doc
24
25 package: $(BUILD)/Makefile
26 cd $(BUILD) && make package
27
28 test: $(BUILD)/Makefile
29 cd $(BUILD) && make test
30
14e6b07 @thughes cmake: Add cdash support.
thughes authored
31 cdash: $(BUILD)/Makefile
32 cd $(BUILD) && make Experimental
33
b46f10a @thughes cmake: Add coverage support.
thughes authored
34 cdash-cov: $(BUILD)/Makefile
35 cd $(BUILD) && $(CMAKE) -DUSE_GCOV=True .. && make Experimental
36
cf1811a @thughes cmake: Add valgrind support.
thughes authored
37 cdash-mem: $(BUILD)/Makefile
38 cd $(BUILD) && make NightlyMemoryCheck
39
40 .PHONY: build install clean doc package test cdash cdash-cov cdash-mem
Something went wrong with that request. Please try again.