-
Notifications
You must be signed in to change notification settings - Fork 1
/
MakefileForHourglass
53 lines (42 loc) · 1.28 KB
/
MakefileForHourglass
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
##
# Build the hourglass RISC OS source files.
#
SOURCE = $(wildcard source.*)
ROFILES = rm32/Hourglass,ffa aif32/hourglass_test,ff8
# RISC OS Build tool to use
ROBUILD = riscos-build-online
ifeq (${MODULE_NAME},)
MODULE_SUFFIX = Custom_module
else
MODULE_SUFFIX = Shape:_${MODULE_NAME}
endif
all: frame_0.png hourglass_basic,fd1 ${ROFILES}
full:
make clean
rm shape.py
make all
clean:
-rm frame*.png simple*.png example.png animated.gif palette.ppm
-rm *.pyc .robuild.yaml
-rm -rf aif32 rm32 o32 oz32
shape.py frame_0.png: ${SOURCE} build-shape.sh
./build-shape.sh
hourglass_basic,fd1 s/asm: shape.py ../makehourglass.py
../makehourglass.py
aif32/hourglass_test,ff8: s/asm ../c/hourglass_test
ifeq (${USE_ROBUILD},)
riscos-amu -f ../MakefileROTest BUILD32=1
else
@echo Not building C test.
endif
rm32/Hourglass,ffa: s/asm ../cmhg/modhead ../c/module ../VersionNum
ifeq (${USE_ROBUILD},)
riscos-amu -f ../MakefileROModule BUILD32=1 MODULE_SUFFIX=${MODULE_SUFFIX}
else
rm -f ../for-riscos.zip
sed "s/'MODULE_SUFFIX': .*/'MODULE_SUFFIX': '${MODULE_SUFFIX}'/" < ../robuild-template.yaml > .robuild.yaml
zip -r ../for-riscos.zip s h .robuild.yaml
cd .. && zip -r for-riscos.zip c cmhg MakefileROModule VersionNum
mkdir -p rm32
${ROBUILD} -i ../for-riscos.zip -o rm32/Hourglass
endif