-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
debian_lenny build user
committed
Nov 30, 2009
1 parent
7afeb3d
commit 25544b8
Showing
3 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#!/usr/bin/make -f | ||
|
||
include /usr/share/cdbs/1/rules/debhelper.mk | ||
include /usr/share/cdbs/1/class/autotools.mk | ||
#include /usr/share/cdbs/1/class/autotools.mk | ||
|
||
CFLAGS += -fvisibility=hidden | ||
|
||
DEB_CONFIGURE_EXTRA_FLAGS := --disable-rpath --host=$(DEB_HOST_GNU_TYPE) | ||
DEB_MAKE_CLEAN_TARGET := clean | ||
|
||
clean:: | ||
cmake -D CMAKE_TOOLCHAIN_FILE=../tools/toolchain-$(DEB_HOST_GNU_TYPE)-oi.cmake -D GUI=CRGUI_XCB .. | ||
cmake -D CMAKE_TOOLCHAIN_FILE=tools/toolchain-$(DEB_HOST_GNU_TYPE).cmake -D GUI=CRGUI_XCB . | ||
|
||
# ./configure --prefix=/usr --sysconfdir=/etc $(DEB_CONFIGURE_EXTRA_FLAGS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# CMake toolchain file for building ARM software on OI environment | ||
|
||
# this one is important | ||
SET(CMAKE_SYSTEM_NAME Linux) | ||
#this one not so much | ||
SET(CMAKE_SYSTEM_VERSION 1) | ||
|
||
# specify the cross compiler | ||
SET(CMAKE_C_COMPILER /usr/bin/arm-ip-linux-gnueabi-gcc) | ||
SET(CMAKE_CXX_COMPILER /usr/bin/arm-ip-linux-gnueabi-g++) | ||
|
||
# where is the target environment | ||
SET(CMAKE_FIND_ROOT_PATH /usr/arm-ip-linux-gnueabi) | ||
|
||
# search for programs in the build host directories | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
# for libraries and headers in the target directories | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# CMake toolchain file for building MIPS software on OI environment | ||
|
||
# this one is important | ||
SET(CMAKE_SYSTEM_NAME Linux) | ||
#this one not so much | ||
SET(CMAKE_SYSTEM_VERSION 1) | ||
|
||
# specify the cross compiler | ||
SET(CMAKE_C_COMPILER /usr/bin/mipsel-ip-linux-gnueabi-gcc) | ||
SET(CMAKE_CXX_COMPILER /usr/bin/mipsel-ip-linux-gnueabi-g++) | ||
|
||
# where is the target environment | ||
SET(CMAKE_FIND_ROOT_PATH /usr/mipsel-ip-linux-gnueabi) | ||
|
||
# search for programs in the build host directories | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
# for libraries and headers in the target directories | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) |