-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
73 lines (67 loc) · 1.28 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
67
68
69
70
71
72
73
EXAMPLES:= \
arp-comm \
bcl \
c++ \
cd-block \
cpu-divu \
cpu-dmac \
cpu-dual \
cpu-frt \
cpu-wdt \
dbgio-font \
dbgio-menu \
dbgio-usb-cart \
dma-queue \
dram-cart \
fibers \
gamemath \
gdb \
mm-stats \
netlink-template \
overlay \
scu-dsp \
smpc-rtc \
usb-cart \
vdp1-balls \
vdp1-drawing \
vdp1-interlace \
vdp1-mesh \
vdp1-mic3d \
vdp1-software-blending \
vdp1-st-niccc \
vdp1-uv-coords \
vdp1-zoom-sprite \
vdp2-24bpp-bitmap \
vdp2-all-nbgs \
vdp2-back-screen \
vdp2-effect-tunnel \
vdp2-line-scroll \
vdp2-nbg0 \
vdp2-normal-bitmap \
vdp2-rbg0 \
vdp2-rbg0-bitmap \
vdp2-reduction-bitmap \
vdp2-special-function \
vdp2-zooming
# Following examples are broken:
# scu-timers
# fileserver
ifeq ($(strip $(YAUL_INSTALL_ROOT)),)
$(error Undefined YAUL_INSTALL_ROOT (install root directory))
endif
ifeq ($(strip $(SILENT)),)
ECHO=
else
ECHO=@
endif
export ECHO
.PHONY: all clean list-examples
all clean:
$(ECHO)for example in $(EXAMPLES); do \
printf -- "[1;36m$@[m [1;32mexamples/$$example[m\n"; \
($(MAKE) -C $$example $@) || exit $$?; \
done
# Exclude directories: shared
# _template
list-examples:
$(ECHO)/usr/bin/find . -maxdepth 1 -type d | tail -n +2 | sed -E 's/^\.\///g;/^\./d;/^_/d;/^shared$$/d' | sort -n