forked from sverx/libxm7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (38 loc) · 820 Bytes
/
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
# SPDX-License-Identifier: CC0-1.0
#
# SPDX-FileContributor: Antonio Niño Díaz, 2023
# Tools
# -----
CP := cp
INSTALL := install
MAKE := make
RM := rm -rf
# Verbose flag
# ------------
ifeq ($(VERBOSE),1)
V :=
else
V := @
endif
# Targets
# -------
.PHONY: all arm7 arm9 docs clean install
all: arm9 arm7
arm9:
@+$(MAKE) -f Makefile.arm9 --no-print-directory
arm7:
@+$(MAKE) -f Makefile.arm7 --no-print-directory
clean:
@echo " CLEAN"
@$(RM) $(VERSION_HEADER) lib build
INSTALLDIR ?= /opt/blocksds/core/libs/libxm7
INSTALLDIR_ABS := $(abspath $(INSTALLDIR))
install: all
@echo " INSTALL $(INSTALLDIR_ABS)"
@test $(INSTALLDIR_ABS)
$(V)$(RM) $(INSTALLDIR_ABS)
$(V)$(INSTALL) -d $(INSTALLDIR_ABS)
$(V)$(CP) -r include lib COPYING $(INSTALLDIR_ABS)
docs:
@echo " DOXYGEN"
@doxygen Doxyfile