Feature #191 » pibox.mk
| 1 |
# Copyright (c) 2010,
|
|---|---|
| 2 |
# Gavriloaie Eugen-Andrei (shiretu@gmail.com)
|
| 3 |
#
|
| 4 |
# This file is part of crtmpserver.
|
| 5 |
# crtmpserver is free software: you can redistribute it and/or modify
|
| 6 |
# it under the terms of the GNU General Public License as published by
|
| 7 |
# the Free Software Foundation, either version 3 of the License, or
|
| 8 |
# (at your option) any later version.
|
| 9 |
#
|
| 10 |
# crtmpserver is distributed in the hope that it will be useful,
|
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 13 |
# GNU General Public License for more details.
|
| 14 |
#
|
| 15 |
# You should have received a copy of the GNU General Public License
|
| 16 |
# along with crtmpserver. If not, see <http://www.gnu.org/licenses/>.
|
| 17 |
|
| 18 |
#toolchain paths
|
| 19 |
TOOLCHAIN_BASE=$(TC) |
| 20 |
TOOLCHAIN_PREFIX=arm-unknown-linux-gnueabi |
| 21 |
# CCOMPILER=$(CC)
|
| 22 |
CCOMPILER=$(TOOLCHAIN_PREFIX)-gcc |
| 23 |
CXXCOMPILER=$(TOOLCHAIN_PREFIX)-g++ |
| 24 |
#output settings
|
| 25 |
STATIC_LIB_SUFIX=.a |
| 26 |
STATIC_LIB_PREFIX=lib |
| 27 |
DYNAMIC_LIB_SUFIX=.so |
| 28 |
DYNAMIC_LIB_PREFIX=lib |
| 29 |
|
| 30 |
FPIC = -fPIC |
| 31 |
OPTIMIZATIONS = -O3 |
| 32 |
COMPILE_FLAGS = $(FPIC) $(OPTIMIZATIONS) $(CFLAGS) |
| 33 |
|
| 34 |
#linking flags
|
| 35 |
dynamic_lib_flags = $(FPIC) $(OPTIMIZATIONS) -Wl,-soname,$(DYNAMIC_LIB_PREFIX)$(1)$(DYNAMIC_LIB_SUFIX) -Wl,-rpath,"\$$ORIGIN" |
| 36 |
dynamic_exec_flags = $(FPIC) $(OPTIMIZATIONS) -Wl,-rpath,"\$$ORIGIN" |
| 37 |
|
| 38 |
#compile switches
|
| 39 |
PLATFORM_DEFINES = \ |
| 40 |
-DLINUX \ |
| 41 |
-DLITTLE_ENDIAN_BYTE_ALIGNED \ |
| 42 |
-DNET_EPOLL
|
| 43 |
|
| 44 |
# SSL_BASE=/usr/local
|
| 45 |
SSL_BASE=/home/mjhammel/src/ximba/raspberrypi/bld/buildroot-2013.02/output/staging |
| 46 |
|