-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (49 loc) · 1.21 KB
/
Makefile
File metadata and controls
67 lines (49 loc) · 1.21 KB
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
# SPDX-License-Identifier: CC0-1.0
#
# SPDX-FileContributor: Antonio Niño Díaz, 2023
MAXMOD_MAJOR := 1
MAXMOD_MINOR := 0
MAXMOD_PATCH := 12
VERSION := $(MAXMOD_MAJOR).$(MAXMOD_MINOR).$(MAXMOD_PATCH)
# Tools
# -----
CP := cp
INSTALL := install
MAKE := make
RM := rm -rf
# Verbose flag
# ------------
ifeq ($(VERBOSE),1)
V :=
else
V := @
endif
# Targets
# -------
.PHONY: all clean docs ds7 ds9 gba install
all: gba ds7 ds9 ds
clean:
@echo " CLEAN"
@rm -rf lib build
ds: ds7 ds9
gba:
@+$(MAKE) SYSTEM=GBA -f Makefile.plat --no-print-directory
@+$(MAKE) SYSTEM=GBA -f Makefile.plat --no-print-directory DEBUG=1
ds7:
@+$(MAKE) SYSTEM=DS7 -f Makefile.plat --no-print-directory
@+$(MAKE) SYSTEM=DS7 -f Makefile.plat --no-print-directory DEBUG=1
ds9:
@+$(MAKE) SYSTEM=DS9 -f Makefile.plat --no-print-directory
@+$(MAKE) SYSTEM=DS9 -f Makefile.plat --no-print-directory DEBUG=1
ds: ds7 ds9
INSTALLDIR ?= /opt/blocksds/core/libs/maxmod
INSTALLDIR_ABS := $(abspath $(INSTALLDIR))
install: ds
@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