-
Notifications
You must be signed in to change notification settings - Fork 129
/
Copy pathMakefile
77 lines (66 loc) · 1.97 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
74
75
76
77
# Set Bash as the shell.
SHELL=/bin/bash
# /src files
srcFiles=src/anim.go \
src/bgdef.go \
src/bytecode.go \
src/camera.go \
src/char.go \
src/common.go \
src/compiler.go \
src/compiler_functions.go \
src/font.go \
src/image.go \
src/input.go \
src/lifebar.go \
src/main.go \
src/render.go \
src/script.go \
src/sound.go \
src/stage.go \
src/stdout_windows.go \
src/system.go \
src/util_desktop.go \
src/util_js.go
# Windows 64-bit target
Ikemen_GO.exe: ${srcFiles}
cd ./build && bash ./build.sh Win64
# Windows 64-bit target (GL 3.2)
Ikemen_GO_GL32.exe: ${srcFiles}
cd ./build && bash ./build.sh Win64GL32
# Windows 32-bit target
Ikemen_GO_86.exe: ${srcFiles}
cd ./build && bash ./build.sh Win32
# Linux target
Ikemen_GO_Linux: ${srcFiles}
cd ./build && ./build.sh Linux
# Linux target (GL 3.2)
Ikemen_GO_Linux_GL32: ${srcFiles}
cd ./build && ./build.sh LinuxGL32
# Linux ARM target
Ikemen_GO_LinuxARM: ${srcFiles}
cd ./build && ./build.sh LinuxARM
# Linux ARM target (GL 3.2)
Ikemen_GO_LinuxARM_GL32: ${srcFiles}
cd ./build && ./build.sh LinuxARMGL32
# MacOS x64 target
Ikemen_GO_MacOS: ${srcFiles}
cd ./build && bash ./build.sh MacOS
# MacOS app bundle
appbundle:
mkdir -p I.K.E.M.E.N-Go.app
mkdir -p I.K.E.M.E.N-Go.app/Contents
mkdir -p I.K.E.M.E.N-Go.app/Contents/MacOS
mkdir -p I.K.E.M.E.N-Go.app/Contents/Resources
cp bin/Ikemen_GO_MacOS I.K.E.M.E.N-Go.app/Contents/MacOS/Ikemen_GO_MacOS
cp ./build/Info.plist I.K.E.M.E.N-Go.app/Contents/Info.plist
cp ./build/bundle_run.sh I.K.E.M.E.N-Go.app/Contents/MacOS/bundle_run.sh
chmod +x I.K.E.M.E.N-Go.app/Contents/MacOS/bundle_run.sh
chmod +x I.K.E.M.E.N-Go.app/Contents/MacOS/Ikemen_GO_MacOS
cd ./build && mkdir -p ./icontmp/icon.iconset && \
cp ../external/icons/IkemenCylia_256.png ./icontmp/icon.iconset/icon_256x256.png && \
iconutil -c icns ./icontmp/icon.iconset && \
cp icontmp/icon.icns ../I.K.E.M.E.N-Go.app/Contents/Resources/icon.icns && \
rm -rf icontmp
clean_appbundle:
rm -rf I.K.E.M.E.N-Go.app