Init basesystem source codes.
[staging/basesystem.git] / nsframework / framework_unified / client / NativeServices / makefile_PosixBasedOS001
1 #
2 # @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16
17 # Top level makefile triggered to export all options
18
19 # Set Optimization on for all lower makefiles
20 #export OPTIMIZATION=OPTIMIZE
21
22 all interface clean clean_interface clean_test:
23         $(MAKE) -C src OPTIMIZATION=FULL_OPTIMIZE DYNAMIC=TRUE $(MAKECMDGOALS)
24         $(MAKE) -C src DEBUG=TRUE OPTIMIZATION=NONE DYNAMIC=TRUE $(MAKECMDGOALS)
25         $(MAKE) -C src TARGET=x86 DYNAMIC=TRUE $(MAKECMDGOALS)
26         $(MAKE) -C src TARGET=x86 DEBUG=TRUE DYNAMIC=TRUE $(MAKECMDGOALS)
27
28 # doxygen and graphviz tools must be in path of Jazz Build Engine
29 # tested with doxygen 1.7.2 and graphviz 2.26.3
30 docs:
31         $(MAKE) -C dox all
32
33 lint:
34         $(MAKE) -C src TARGET=analysis lint
35
36 # unit tests require main libraries -- typically not run directly, but part of a build engine
37 unittest:
38         #$(MAKE) -C src OPTIMIZATION=FULL_OPTIMIZE $(MAKECMDGOALS)
39         #$(MAKE) -C src TARGET=x86 $(MAKECMDGOALS)
40         $(MAKE) -C src TARGET=x86 DYNAMIC=TRUE $(MAKECMDGOALS)
41         $(MAKE) -C src TARGET=x86 DEBUG=TRUE DYNAMIC=TRUE $(MAKECMDGOALS)
42
43 functionaltest misc:
44         #$(MAKE) -C src OPTIMIZATION=FULL_OPTIMIZE DYNAMIC=TRUE $(MAKECMDGOALS)
45         #$(MAKE) -C src DEBUG=TRUE OPTIMIZATION=NONE DYNAMIC=TRUE $(MAKECMDGOALS)
46         $(MAKE) -C src TARGET=x86 DYNAMIC=TRUE $(MAKECMDGOALS)
47         #$(MAKE) -C src TARGET=x86 DEBUG=TRUE DYNAMIC=TRUE $(MAKECMDGOALS)
48
49
50 # Stage is a forced clean, build, export
51 # Expectation is that the user sets the STAGE_LOCATION in initiating the makefile
52 stage:
53         $(MAKE) clean
54         $(MAKE) all
55         $(MAKE) -C src stage