blob: 5597f45884528aefe99a71bde74fa84e9002f9bb (
plain)
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
|
# @licence app begin@
# SPDX-License-Identifier: MPL-2.0
#
# \copyright Copyright (C) 2013-2014, PCA Peugeot Citroen
#
# \file Makefile
#
# \brief This file is part of the Build System.
#
# \author Martin Schaller <martin.schaller@it-schaller.de>
# \author Philippe Colliot <philippe.colliot@mpsa.com>
#
# \version 1.0
#
# This Source Code Form is subject to the terms of the
# Mozilla Public License (MPL), v. 2.0.
# If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# For further information see http://www.genivi.org/.
#
# List of changes:
#
# 4/6/2014, Philippe Colliot, complete src-clean option
# 18/6/2014, Philippe Colliot, APT_GET option for Fedora
#
# @licence end@
SRC_DIR=$(CURDIR)/../../navigation
PATCH_DIR=$(SRC_DIR)/patches
API_DIR=$(CURDIR)/../../../api
BIN_DIR=$(CURDIR)/../bin
MAP_DIR=$(CURDIR)/../../map
CONSTANTS_BIN=$(BIN_DIR)/constants
QMAKE=qmake
ifndef $(APT_GET)
APT_GET=apt-get
endif
default: help
help::
@echo "The following targets exist"
@echo "all: Build $(ALL)"
@echo "all2: Install all necessary dependencies and build all"
@echo "clean: Clean up build dir"
@echo "src-clean: Clean up all checked out sources"
@echo "make APT_GET=yum for Fedora, by default APT_GET is set to apt-get"
#initialize the variable ALL to an empty string
ALL=
#include makefiles
include *.mk
#ALL is updated in the makefiles
all: $(ALL)
src-clean: $(SRC_CLEAN)
deps::
sudo $(APT_GET) install $(DEPS)
# See https://bugs.launchpad.net/ubuntu/+source/freetype/+bug/1319642 why this is necessary
[ -e /usr/include/freetype2/freetype ] || sudo ln -s . /usr/include/freetype2/freetype
all2: deps all
navit-plugins: all
clean:
rm -rf $(BIN_DIR)
|