5056b238a2
using xz embedded (public domain code). in order to be enable to use ordinary xz files, support for crc64 was activated. (if using crc32 only, one would need to use a command like xz --check=crc32 --lzma2=preset=6e,dict=64KiB to create the files. with crc64, one can use files that have been compressed with settings up to -9 (however, those need 64+1MB for decompression). since gb/gbc files are small anyway, using compression level 6-8 might be preferable to keep client memory consumption down. every step in xz compression level downwards decreases decomp mem usage by 50% (so level 8 would need 32+1 MB, etc).
33 lines
539 B
Text
33 lines
539 B
Text
|
|
include Version
|
|
|
|
XZ_OBJS = xz/xz_crc32.o xz/xz_crc64.o xz/xz_dec_lzma2.o xz/xz_dec_stream.o xz/xz_dec_bcj.o
|
|
|
|
OBJS = lcd.o refresh.o lcdc.o palette.o cpu.o mem.o rtc.o hw.o sound.o \
|
|
events.o keytable.o \
|
|
loader.o save.o debug.o emu.o main.o \
|
|
rccmds.o rckeys.o rcvars.o rcfile.o exports.o \
|
|
split.o path.o inflate.o $(XZ_OBJS)
|
|
|
|
INCS = -I.
|
|
|
|
MYCC = $(CC) $(CFLAGS) $(INCS) $(SYS_INCS) $(SYS_DEFS)
|
|
MYAS = $(AS) $(ASFLAGS) $(INCS) $(SYS_INCS) $(SYS_DEFS)
|
|
|
|
main.o: Version
|
|
|
|
.c.o:
|
|
$(MYCC) -c $< -o $@
|
|
|
|
.s.o:
|
|
$(MYAS) -c $< -o $@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|