Project

General

Profile

Bug #628 » Makefile.include

Include file, updated for latest omxplayer - Hammel, 02 Aug 2018 11:01

 
1
USE_BUILDROOT=1
2
FLOAT=hard
3

    
4
PREFIX      :=/usr
5
BUILDROOT   :=[OMXSTAGING]
6
SDKSTAGE    :=$(BUILDROOT)/output/staging
7
TARGETFS    :=$(BUILDROOT)/output/target
8
TOOLCHAIN   :=[XI]
9
HOST        :=arm-unknown-linux-gnueabi
10
SYSROOT     :=$(TOOLCHAIN)/$(HOST)/sysroot
11

    
12
JOBS=2
13

    
14
CFLAGS +=  -mfloat-abi=hard -mcpu=arm1176jzf-s -fomit-frame-pointer -mabi=aapcs-linux -mtune=arm1176jzf-s -mfpu=vfp -Wno-psabi -mno-apcs-stack-check -O3 -mstructure-size-boundary=32 -mno-sched-prolog -march=armv6zk
15
CXXFLAGS	:= $(CFLAGS)
16
CPPFLAGS	:= $(CFLAGS)
17
LDFLAGS		:= -L$(BUILDROOT)/lib
18
LD			:= $(TOOLCHAIN)/bin/$(HOST)-ld --sysroot=$(SYSROOT)
19
CC			:= $(TOOLCHAIN)/bin/$(HOST)-gcc --sysroot=$(SYSROOT)
20
CXX         := $(TOOLCHAIN)/bin/$(HOST)-g++ --sysroot=$(SYSROOT)
21
OBJDUMP		:= $(TOOLCHAIN)/bin/$(HOST)-objdump
22
RANLIB		:= $(TOOLCHAIN)/bin/$(HOST)-ranlib
23
STRIP		:= $(TOOLCHAIN)/bin/$(HOST)-strip
24
AR 			:= $(TOOLCHAIN)/bin/$(HOST)-ar
25
CXXCP 		:= $(CXX) -E
26

    
27
PATH        := $(TOOLCHAIN)/bin:$(PATH)
28

    
29
# LDFLAGS	+= -L$(SDKSTAGE)/lib -L$(SDKSTAGE)/usr/lib -L$(SDKSTAGE)/opt/vc/lib/ -Lpcre/build
30
# INCLUDES	+= -isystem$(SDKSTAGE)/opt/vc/include -isystem$(SYSROOT)/usr/include -isystem$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -Ipcre/build -Iboost-trunk -Ifreetype2/include
31

    
32
LDFLAGS     := \
33
	-Lffmpeg_compiled/usr/local/lib \
34
	-L$(SYSROOT)/lib \
35
	-L$(SYSROOT)/usr/lib \
36
	-L$(TARGETFS)/opt/vc/lib/ \
37
	-L$(SDKSTAGE)/usr/lib
38

    
39
INCLUDES    =  \
40
	-I$(SYSROOT)/usr/include \
41
	-I$(TARGETFS)/opt/vc/include \
42
	-I$(TARGETFS)/opt/vc/include/IL \
43
	-I$(TARGETFS)/opt/vc/include/interface/vcos/pthreads \
44
	-I$(TARGETFS)/opt/vc/include/interface/vmcs_host \
45
	-I$(SDKSTAGE)/usr/lib/dbus-1.0/include \
46
	-isystem$(SDKSTAGE)/usr/include \
47
	-isystem$(SDKSTAGE)/usr/include/freetype2
(3-3/4)