-
Notifications
You must be signed in to change notification settings - Fork 30
/
targets.mk
102 lines (82 loc) · 2.32 KB
/
targets.mk
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
################################################################
#
# Copyright 2013, Big Switch Networks, Inc.
#
# Licensed under the Eclipse Public License, Version 1.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.eclipse.org/legal/epl-v10.html
#
# 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.
#
################################################################
###############################################################################
#
# targets.mk
#
###############################################################################
ifndef __TARGETS_MK__
__TARGETS_MK__=1
include $(BUILDER)/builder.mk
show_toolchains:
@echo Available Toolchains:
@echo " " $(ALL_TOOLCHAINS)
@echo ""
show_targets:
@echo Available Targets:
@echo " " $(ALL_TARGETS)
@echo ""
show_libs:
@echo Available Libraries:
@echo " " $(LIBRARY_TARGETS)
@echo ""
show_bins:
@echo Available Binaries:
@echo " " $(BINARY_TARGETS)
@echo ""
show_shared:
@echo Available Shared Libraries:
@echo " " $(SHAREDLIB_TARGETS)
@echo ""
show_scripts:
@echo Available Scripts:
@echo " " $(SCRIPT_TARGETS)
@echo ""
SHOW_TARGETS := show_targets show_libs show_bins show_shared show_scripts show_toolchains
ifdef __DIRS_MK__
SHOW_TARGETS += show_dirs
endif
show: $(SHOW_TARGETS)
.PHONY: libraries
libraries: $(LIBRARY_TARGETS)
binaries: $(BINARY_TARGETS)
sharedlibs: $(SHAREDLIB_TARGETS)
scripts: $(SCRIPT_TARGETS)
libs: libraries
bins: binaries
clean:
@echo Cleaning Files
@rm -rf $(CLEAN_TARGETS)
@echo Cleaning Directories
@rm -rf $(CLEAN_DIRECTORIES)
superclean:
@echo Removing BUILD directory
@rm -rf $(SUPERCLEAN_BUILD_DIR)
alltargets: libraries binaries sharedlibs scripts
#
# This special target will build the given target against all toolchains
#
alltoolchains:
@$(foreach tc,$(ALL_TOOLCHAINS),$(MAKE) -C . $(MAKETARGET) TOOLCHAIN=$(tc); )
alltc: alltoolchains
dox:
doxygen $(MODULE).doxy > /dev/null
doxv:
doxygen $(MODULE).doxy
endif # __TARGETS_MK__