-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
66 lines (55 loc) · 1.8 KB
/
Makefile
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
# ******************************************************************************
# @file Makefile
# @brief CALoE Library Makefile. It builds CALoE library and examples.
#
# Copyright (C) 2013
#
# CALoE library makefile.
#
# @author Miguel Jimenez Lopez <[email protected]>
#
# @bug none!
#
# ******************************************************************************
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 3 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library. If not, see <http//www.gnu.org/licenses/>.
# ******************************************************************************
all: etherbone-submodule build-etherbone build-lib build-devices build-tools end
etherbone-submodule:
@echo "main: SUBMODULE Etherbone..."
@git submodule init
@git submodule update
build-etherbone: etherbone
@echo "main: Building Etherbone library..."
@make -C ./etherbone/api
build-devices:
@make -C ./devices
build-tools:
@make -C ./tools
build-lib:
@make -C ./lib
build-doxygen:
@make -C ./doxygen
build-doc:
@make -C ./doc
end:
@echo "main: Compilation terminated successfully"
clean:
@echo "main: Cleanup..."
@-rm *~
@make -C ./devices clean
@make -C ./tools clean
@make -C ./lib clean
@make -C ./doxygen clean
@make -C ./etherbone/api clean
@make -C ./doc clean