forked from chocolate-doom/chocolate-doom
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile.vita
65 lines (53 loc) · 2.68 KB
/
Makefile.vita
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
APPNAME := Chocolate Doom
TITLE := CHOC66666
VPKNAME := ChocolateDoom
vpk: doom heretic hexen strife launcher
vita-mksfoex -s TITLE_ID="$(TITLE)" "$(APPNAME)" param.sfo
cp -f param.sfo vita/build/sce_sys/param.sfo
vita-pack-vpk -s vita/build/sce_sys/param.sfo -b vita/build/eboot.bin \
--add vita/build/doom.bin=doom.bin \
--add vita/build/heretic.bin=heretic.bin \
--add vita/build/hexen.bin=hexen.bin \
--add vita/build/strife.bin=strife.bin \
--add vita/build/sce_sys/icon0.png=sce_sys/icon0.png \
--add vita/build/sce_sys/livearea/contents/bg.png=sce_sys/livearea/contents/bg.png \
--add vita/build/sce_sys/livearea/contents/startup.png=sce_sys/livearea/contents/startup.png \
--add vita/build/sce_sys/livearea/contents/template.xml=sce_sys/livearea/contents/template.xml \
$(VPKNAME).vpk
doom: textscreen/libtextscreen.a opl/libopl.a pcsound/libpcsound.a vita/vita2dlib/libvita2d/libvita2d.a
$(MAKE) -C src -f Makefile.vita $@
cp -f src/doom.elf.unstripped.elf doom.elf.unstripped.elf
cp -f src/doom.bin vita/build/doom.bin
heretic: textscreen/libtextscreen.a opl/libopl.a pcsound/libpcsound.a vita/vita2dlib/libvita2d/libvita2d.a
$(MAKE) -C src -f Makefile.vita $@
cp -f src/heretic.elf.unstripped.elf heretic.elf.unstripped.elf
cp -f src/heretic.bin vita/build/heretic.bin
hexen: textscreen/libtextscreen.a opl/libopl.a pcsound/libpcsound.a vita/vita2dlib/libvita2d/libvita2d.a
$(MAKE) -C src -f Makefile.vita $@
cp -f src/hexen.elf.unstripped.elf hexen.elf.unstripped.elf
cp -f src/hexen.bin vita/build/hexen.bin
strife: textscreen/libtextscreen.a opl/libopl.a pcsound/libpcsound.a vita/vita2dlib/libvita2d/libvita2d.a
$(MAKE) -C src -f Makefile.vita $@
cp -f src/strife.elf.unstripped.elf strife.elf.unstripped.elf
cp -f src/strife.bin vita/build/strife.bin
launcher:
$(MAKE) -C vita/launcher -f Makefile.vita
cp -f vita/launcher/launcher.elf.unstripped.elf launcher.elf.unstripped.elf
cp -f vita/launcher/launcher.bin vita/build/eboot.bin
textscreen/libtextscreen.a:
$(MAKE) -C textscreen -f Makefile.vita
opl/libopl.a:
$(MAKE) -C opl -f Makefile.vita
pcsound/libpcsound.a:
$(MAKE) -C pcsound -f Makefile.vita
vita/vita2dlib/libvita2d/libvita2d.a:
$(MAKE) -C vita/vita2dlib/libvita2d
clean:
@rm -rf param.sfo vita/build/sce_sys/param.sfo vita/build/eboot.bin
@rm -rf vita/build/doom.bin vita/build/heretic.bin vita/build/hexen.bin vita/build/strife.bin
$(MAKE) -C src -f Makefile.vita clean
$(MAKE) -C textscreen -f Makefile.vita clean
$(MAKE) -C opl -f Makefile.vita clean
$(MAKE) -C pcsound -f Makefile.vita clean
$(MAKE) -C vita/launcher -f Makefile.vita clean
$(MAKE) -C vita/vita2dlib/libvita2d clean