1#!/usr/bin/env omake 2#---------------------------------------------------------------------------- 3# Project: Horizon 4# File: OMakefile 5# 6# Copyright (C)2009-2012 Nintendo Co., Ltd. All rights reserved. 7# 8# These coded instructions, statements, and computer programs contain 9# proprietary information of Nintendo of America Inc. and/or Nintendo 10# Company Ltd., and are protected by Federal copyright law. They may 11# not be disclosed to third parties or copied or duplicated in any form, 12# in whole or in part, without the prior written consent of Nintendo. 13# 14# $Rev: 46365 $ 15#---------------------------------------------------------------------------- 16SUPPORTED_TARGETS = CTR-T*.Process.MPCore.* 17 18SOURCES[] = main.cpp 19 20TARGET_PROGRAM = UncompressBlz 21 22ROMFS_ROOT = romfiles 23 24# Compress data using ctr_compress, and include it in ROMFS 25COMPRESS = $(CTRSDK_ROOT)/tools/CommandLineTools/ctr_compress32.exe 26public.CompressFile(input, output, opt) = 27 IN_PATH = $(ROMFS_ROOT)/$(input) 28 OUT_PATH = $(ROMFS_ROOT)/$(output) 29 $(OUT_PATH): $(IN_PATH) $(COMPRESS) 30 $(COMPRESS) -s -$(opt) -o $(OUT_PATH) $(IN_PATH) 31 return $(OUT_PATH) 32ROMFS_FILES = $(CompressFile data.bin, archive.bin, lb) 33ROMFS_DEPENDENCIES = $(ROMFS_FILES) 34 35# NN_LOG output is performed even with the Release build 36DEBUG_PRINT = true 37 38include $(ROOT_OMAKE)/modulerules 39 40build: $(DEFAULT_TARGETS) 41