summaryrefslogtreecommitdiffstats
path: root/nsframework/framework_unified/client/NativeServices/makefile_PosixBasedOS001
blob: 9b512f432f83643fe738c338f70bcfd8ed92f14c (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
#
# @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Top level makefile triggered to export all options

# Set Optimization on for all lower makefiles
#export OPTIMIZATION=OPTIMIZE

all interface clean clean_interface clean_test:
	$(MAKE) -C src OPTIMIZATION=FULL_OPTIMIZE DYNAMIC=TRUE $(MAKECMDGOALS)
	$(MAKE) -C src DEBUG=TRUE OPTIMIZATION=NONE DYNAMIC=TRUE $(MAKECMDGOALS)
	$(MAKE) -C src TARGET=x86 DYNAMIC=TRUE $(MAKECMDGOALS)
	$(MAKE) -C src TARGET=x86 DEBUG=TRUE DYNAMIC=TRUE $(MAKECMDGOALS)

# doxygen and graphviz tools must be in path of Jazz Build Engine
# tested with doxygen 1.7.2 and graphviz 2.26.3
docs:
	$(MAKE) -C dox all

lint:
	$(MAKE) -C src TARGET=analysis lint

# unit tests require main libraries -- typically not run directly, but part of a build engine
unittest:
	#$(MAKE) -C src OPTIMIZATION=FULL_OPTIMIZE $(MAKECMDGOALS)
	#$(MAKE) -C src TARGET=x86 $(MAKECMDGOALS)
	$(MAKE) -C src TARGET=x86 DYNAMIC=TRUE $(MAKECMDGOALS)
	$(MAKE) -C src TARGET=x86 DEBUG=TRUE DYNAMIC=TRUE $(MAKECMDGOALS)

functionaltest misc:
	#$(MAKE) -C src OPTIMIZATION=FULL_OPTIMIZE DYNAMIC=TRUE $(MAKECMDGOALS)
	#$(MAKE) -C src DEBUG=TRUE OPTIMIZATION=NONE DYNAMIC=TRUE $(MAKECMDGOALS)
	$(MAKE) -C src TARGET=x86 DYNAMIC=TRUE $(MAKECMDGOALS)
	#$(MAKE) -C src TARGET=x86 DEBUG=TRUE DYNAMIC=TRUE $(MAKECMDGOALS)


# Stage is a forced clean, build, export
# Expectation is that the user sets the STAGE_LOCATION in initiating the makefile
stage:
	$(MAKE) clean
	$(MAKE) all
	$(MAKE) -C src stage