1#! make -f 2#--------------------------------------------------------------------------- 3# Project: TwlSDK - tools - ppmconv 4# File: Makefile 5# 6# Copyright 2003-2008 Nintendo. 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# $Date:: 2008-09-18#$ 15# $Rev: 8573 $ 16# $Author: okubata_ryoma $ 17#--------------------------------------------------------------------------- 18TARGET_PLATFORM = NITRO TWL 19 20include $(TWLSDK_ROOT)/build/buildtools/commondefs 21 22TARGETS = ppmconv.exe ppmconv8.exe ppmconvbg.exe 23SOURCES = $(TARGETS:.exe=.c) 24OBJECTS = $(SOURCES:.c=.o) 25HEADERS = 26 27INSTALL_DIR = $(TWL_INSTALL_TOOLSDIR)/bin 28INSTALL_TARGETS = $(TARGETS) 29 30LDIRT_CLEAN = $(OBJECTS) $(TARGETS) 31 32include $(TWLSDK_ROOT)/build/buildtools/modulerules.x86 33 34#---------------------------------------------------------------------------- 35# build 36#---------------------------------------------------------------------------- 37do-build: $(TARGETS) 38 39%.exe: %.o 40 $(CC_X86) $+ -o $@ 41 42#--- ppmconv 43ppmconv.o: ppmconv.c 44ppmconv8.o: ppmconv8.c 45ppmconvbg.o: ppmconvbg.c 46 47# 48