1#! make -f 2#--------------------------------------------------------------------------- 3# Project: TwlSDK - tools - envconv 4# File: Makefile 5# 6# Copyright 2005-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#--------------------------------------------------------------------------- 18 19override TARGET_PLATFORM = NITRO 20 21include $(TWLSDK_ROOT)/build/buildtools/commondefs 22 23TARGETS = init2env.exe 24 25SOURCES = init.l init.y 26 27OBJECTS = init.tab.o init.yy.o 28 29INSTALL_DIR = $(TWL_INSTALL_TOOLSDIR)/bin 30INSTALL_TARGETS = $(TARGETS) 31 32LDIRT_CLEAN = $(OBJECTS) $(TARGETS) init.yy.c init.tab.c init.tab.h 33 34include $(TWLSDK_ROOT)/build/buildtools/modulerules.x86 35 36#---------------------------------------------------------------------------- 37# build 38#---------------------------------------------------------------------------- 39do-build: $(TARGETS) 40 41$(TARGETS): $(OBJECTS) 42 $(CC_X86) $+ -o $@ 43 44lex.yy.o: init.yy.c init.tab.c 45lex.yy.c: init.l 46y.tab.c: init.y 47