blob: a8af336dba5ee8543b3ef6795094dad1eaf398bb (
plain)
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
|
N64_EXE_STRIPPED := scummvm_stripped$(EXEEXT)
bundle_name = n64-dist/scummvm
BASESIZE = 2097152
all: $(N64_EXE_STRIPPED)
$(N64_EXE_STRIPPED): $(EXECUTABLE)
$(STRIP) $< -o $@
n64-distclean:
rm -rf $(bundle_name)
rm $(N64_EXE_STRIPPED)
n64-dist: all
$(MKDIR) $(bundle_name)
$(MKDIR) $(bundle_name)/romfs
ifdef DIST_FILES_ENGINEDATA
$(CP) $(DIST_FILES_ENGINEDATA) $(bundle_name)/romfs
endif
ifdef DIST_FILES_NETWORKING
$(CP) $(DIST_FILES_NETWORKING) $(bundle_name)/romfs
endif
ifdef DIST_FILES_VKEYBD
$(CP) $(DIST_FILES_VKEYBD) $(bundle_name)/romfs
endif
$(CP) $(DIST_FILES_DOCS) $(bundle_name)/
genromfs -f $(bundle_name)/romfs.img -d $(bundle_name)/romfs -V scummvmn64
mips64-objcopy $(EXECUTABLE) $(bundle_name)/scummvm.elf -O binary
cat $(N64SDK)/hkz-libn64/bootcode $(bundle_name)/scummvm.elf $(bundle_name)/romfs.img > scummvm.v64
$(srcdir)/backends/platform/n64/pad_rom.sh scummvm.v64
rm scummvm.bak
mv scummvm.v64 $(bundle_name)/scummvm.v64
|