forked from FastVM/Web49
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (24 loc) · 935 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
.PHONY: help clean config
help:
@grep -E '^[a-zA-Z_0-9]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
./build:
@cmake -B build .
config: ./build ## Configure host-build (cmake)
./build/null0: ./build
@make -C build
./build/rimage_libretro.dylib:
@make -C build libretro
null0: ./build/null0 ## Build standalone host
libretro: ./build/rimage_libretro.dylib ## Build retroarch core
./build/log.null0: carts/log.ts
@echo "building cart:log"
./carts/build_assemblyscript_cart carts/log.ts
./build/raylib.null0: carts/raylib.ts
@echo "building cart:raylib"
./carts/build_assemblyscript_cart carts/raylib.ts
./build/raylib2.null0: carts/raylib2.c
@echo "building cart:raylib"
./carts/build_c_cart carts/raylib2.c
carts: ./build/log.null0 ./build/raylib.null0 ./build/raylib2.null0 ## Build some demo carts
clean: ## Delete built files
@rm -rf build