diff options
author | Tom Hughes <tom.hughes@palm.com> | 2010-12-09 00:37:28 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-12-23 03:12:49 +0300 |
commit | ae8262a176cfe47cf4a506433abe83d28ab97fe8 (patch) | |
tree | 12e0e3f95b9ccb6d69f07b84666c75d1e9d98a12 /Makefile.cmake | |
parent | e03fae1447b6c1f2bd34da9a6218d124704abdc6 (diff) |
cmake: Add toolchain file for cross-compiling.
Diffstat (limited to 'Makefile.cmake')
-rw-r--r-- | Makefile.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.cmake b/Makefile.cmake index aaa3f6f258c..0281b413e7c 100644 --- a/Makefile.cmake +++ b/Makefile.cmake @@ -2,12 +2,13 @@ BUILD?=build VERBOSE?=0 PARALLEL_JOBS?=1 CMAKE?=cmake +TOOLCHAIN_FILE=#./cmake/codesourcery-arm-toolchain.cmake -all: doc package +all: package $(BUILD)/Makefile: mkdir $(BUILD) || exit 0 - cd $(BUILD) && $(CMAKE) -DCMAKE_VERBOSE_MAKEFILE=$(VERBOSE) .. + cd $(BUILD) && $(CMAKE) -DCMAKE_VERBOSE_MAKEFILE=$(VERBOSE) -DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) .. build: $(BUILD)/Makefile cd $(BUILD) && make -j $(PARALLEL_JOBS) |