Project

General

Profile

Feature #191 » pibox.mk

Hammel, 19 Jul 2013 10:41

 
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
STAGING=/home/mjhammel/src/ximba/raspberrypi/bld/buildroot-2013.02/output/staging
20
TOOLCHAIN_BASE=$(TC)/bin/
21
TOOLCHAIN_PREFIX=arm-unknown-linux-gnueabi-
22
# CCOMPILER=$(CC)
23
# CCOMPILER=$(TOOLCHAIN_PREFIX)-gcc
24
# CXXCOMPILER=$(TOOLCHAIN_PREFIX)-g++
25
CFLAGS=-I$(STAGING)/usr/include
26
LDFLAGS=-L$(STAGING)/usr/lib -L$(STAGING)/lib --sysroot=$(STAGING)/
27

    
28
# TINYXML_INC=-I$(STAGING)/usr/include
29

    
30
#output settings
31
STATIC_LIB_SUFIX=.a
32
STATIC_LIB_PREFIX=lib
33
DYNAMIC_LIB_SUFIX=.so
34
DYNAMIC_LIB_PREFIX=lib
35

    
36
FPIC = -fPIC
37
OPTIMIZATIONS = -O3
38
COMPILE_FLAGS = $(FPIC) $(OPTIMIZATIONS) $(CFLAGS)
39

    
40
#linking flags
41
dynamic_lib_flags = $(FPIC) $(OPTIMIZATIONS) -Wl,-soname,$(DYNAMIC_LIB_PREFIX)$(1)$(DYNAMIC_LIB_SUFIX) -Wl,-rpath,"\$$ORIGIN"
42
dynamic_exec_flags = $(FPIC) $(OPTIMIZATIONS) -Wl,-rpath,"\$$ORIGIN"
43

    
44
#compile switches
45
PLATFORM_DEFINES = \
46
	-DLINUX \
47
	-DLITTLE_ENDIAN_BYTE_ALIGNED \
48
	-DNET_EPOLL
49

    
50
# SSL_BASE=/usr/local
51
SSL_BASE=$(STAGING)
52

    
(3-3/3)