forked from gyrovorbis/sh4zam
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.kos
More file actions
40 lines (28 loc) · 861 Bytes
/
Makefile.kos
File metadata and controls
40 lines (28 loc) · 861 Bytes
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
CMAKE_BUILD_DIR := build
$(CMAKE_BUILD_DIR)/Makefile: CMakeLists.txt
kos-cmake -S $(<D) -DSHZ_ENABLE_TESTS=on -B $(@D)
.PHONY: $(CMAKE_BUILD_DIR)/libsh4zam.a
$(CMAKE_BUILD_DIR)/libsh4zam.a: $(CMAKE_BUILD_DIR)/Makefile
$(MAKE) -C $(@D) sh4zam
$(CMAKE_BUILD_DIR)/test/Sh4zamTests.elf: $(CMAKE_BUILD_DIR)/Makefile
$(MAKE) -C $(@D) Sh4zamTests
all: lib tests
lib: $(CMAKE_BUILD_DIR)/libsh4zam.a
tests: $(CMAKE_BUILD_DIR)/test/Sh4zamTests.elf
run: tests
${KOS_LOADER} $(CMAKE_BUILD_DIR)/test/Sh4zamTests.elf
install: lib
$(MAKE) -C $(CMAKE_BUILD_DIR) install
uninstall:
rm -rf ${KOS_BASE}/addons/include/dreamcast/sh4zam
rm -f ${KOS_BASE}/addons/lib/dreamcast/libsh4zam.a
clean:
-rm -rf $(CMAKE_BUILD_DIR)
docs:
-rm -rf doc/html
-rm -rf doc/latex
cd doc && doxygen
open doc/html/index.html
update:
git checkout master
git pull origin master