forked from magnusfeuer/m1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.inc
125 lines (103 loc) · 2.28 KB
/
Makefile.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#
# All rights reserved. Reproduction, modification, use or disclosure
# to third parties without express authority is forbidden.
# Copyright Magden LLC, California, USA, 2004, 2005, 2006, 2007.
#
#
# Master include file used by app under m1/app/[platform]/[app]/[version]
# Also used by the Makefile in this root directory.
#
SHELL=/bin/bash
export SHELL
BUILD_ROOT ?= $(PWD)
export BUILD_ROOT
#
# Versions for different components (app etc)
#
include $(BUILD_ROOT)/Version.inc
export CORE_VERSION
export APP_VERSION
M1_TARGET_ARCH ?= jway
export M1_TARGET_ARCH
#
# Target framebuffer descriptor
# rgb, bgr, argb, bgra etc.
# Will be passed on to ~/m1/app/src/[source_packet]/[version]/build_dds.sh
#
TARGET_FRAMEBUFFER ?= bgra
export TARGET_FRAMEBUFFER
#
# M1 core prefix
#
M1_CORE_ROOT=core
export M1_CORE_ROOT
#
# M1 core absolute path
#
M1_CORE_ABS_ROOT=$(BUILD_ROOT)/$(M1_CORE_ROOT)
export M1_CORE_ABS_ROOT
#
# M1 core include
#
#M1_CORE_INCLUDE=$(M1_CORE_ABS_ROOT)/$(CORE_VERSION)/include
#export M1_CORE_INCLUDE
#
# Epic include
#
#EPIC_INCLUDE=$(M1_CORE_ABS_ROOT)/$(CORE_VERSION)/epic/include
#export EPIC_INCLUDE
#
# Extern tool include
#
#EXTERN_INCLUDE=$(M1_CORE_ABS_ROOT)/$(CORE_VERSION)/extern/include
#export EXTERN_INCLUDE
#
# Application root, containing all Mpl apps.
#
APP_ROOT=app
export APP_ROOT
#
# Absolute path to app root dir in file system
#
APP_ABS_ROOT=$(BUILD_ROOT)/$(APP_ROOT)
export APP_ABS_ROOT
#
# plugin (C++ drivers to integrate various hardware) root
#
PLUGIN_ROOT=$(APP_ROOT)/plugins
export PLUGIN_ROOT
#
# Absolute path to plugin root in file system
#
PLUGIN_ABS_ROOT=$(BUILD_ROOT)/$(PLUGIN_ROOT)
export PLUGIN_ABS_ROOT
#
# Where do we want the result_m1, result_dds and result_launch directories
# to be created. This local value will be overridden if this Makefile
# is invoked by another make
#
TARGET_DIR?=$(PWD)/out
export TARGET_DIR
#
# Font root
#
FONT_ROOT=$(APP_ROOT)/src/fonts
export FONT_ROOT
#
# Absolute path to app root dir in file system
#
FONT_ABS_ROOT=$(APP_ABS_ROOT)/src/fonts
export FONT_ABS_ROOT
#
# BINDIR
#
BINDIR?=$(BUILD_ROOT)/bin
export BINDIR
#
# PACKDIR
# Packfiles are the distribution format, like deb or rpm files,
# used by m1. M1 boxes can be upgraded using USB sticks with
# packfiles on them.
#
PACKDIR?=$(BUILD_ROOT)/packfiles
export PACKDIR