-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.mk
83 lines (70 loc) · 1.74 KB
/
common.mk
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
74
75
76
77
78
79
80
81
82
83
OPT ?= -O2
GENERATED ?=
AARCH = --isa=sh4 --little
CARCH ?= -m4-single-only -ml
CFLAGS += -mfsca -funsafe-math-optimizations -ffast-math
OBJARCH = -O elf32-shl -B sh4
TARGET = sh4-none-elf-
START_OBJ = \
$(LIB)/start.o \
$(LIB)/runtime.o \
$(LIB)/sh7091/cache.o
geometry/%.hpp: geometry/%.obj
PYTHONPATH=regs/gen python tools/obj_to_cpp.py $< > [email protected]
mv [email protected] $@
build-fonts:
./tools/ttf_outline 20 7f 20 0 little /usr/share/fonts/dejavu/DejaVuSans.ttf font/dejavusansmono/dejavusansmono.data
./tools/ttf_outline 20 7f 20 1 little /usr/share/fonts/dejavu/DejaVuSans.ttf font/dejavusansmono/dejavusansmono_mono.data
./tools/ttf_outline 20 7f 20 1 little /usr/share/fonts/terminus/ter-u20n.otb font/ter_u20n/ter_u20n.data
sine.pcm: common.mk
sox \
--rate 44100 \
--encoding signed-integer \
--bits 16 \
--channels 1 \
--endian big \
--null \
synth 100s sin 700 vol -10dB
mv [email protected] $@
%.iso: %.bin ip.bin
mkisofs \
-C 0,11702 \
-sysid "SEGA SEGAKATANA" \
-volid "SAMPLE_GAME_TITLE" \
-volset "SAMPLE_GAME_TITLE" \
-publisher "SEGA ENTERPRISES, LTD." \
-preparer "CRI CD CRAFT VER.2.27" \
-copyright "COPYRIGH.TXT" \
-abstract "ABSTRACT.TXT" \
-biblio "BIBLIOGR.TXT" \
-G ip.bin \
-o $@ \
-graft-points \
/1ST_READ.BIN=./$< \
/=./COPYRIGH.TXT \
/=./ABSTRACT.TXT \
/=./BIBLIOGR.TXT \
/=./pcm/REIGN.PCM \
/=./pcm/PILLAR.PCM \
/=./pcm/RIDDLE.PCM \
/=./pcm/PRELUDE.PCM \
/=./pcm/CLOCKTOW.PCM \
/=./pcm/ELEC.PCM \
/=./pcm/ECCLESIA.PCM \
/=jvm.bin
clean:
find -P \
-regextype posix-egrep \
-regex '.*\.(iso|o|d|bin|elf|cue|gch|scramble)$$' \
-exec rm {} \;
phony:
.SUFFIXES:
.INTERMEDIATE:
.SECONDARY:
.PHONY: all clean phony
%: RCS/%,v
%: RCS/%
%: %,v
%: s.%
%: SCCS/s.%