1#! make -f 2#--------------------------------------------------------------------------- 3# Project: TwlSDK - tools - makelcf 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 = TWL 19 20include $(TWLSDK_ROOT)/build/buildtools/commondefs 21 22TARGET = simple1.lcf simple2.lcf test.autogen.lcf ARM9-TEG.autogen.lcf overlay.autogen.lcf 23TARGET += test2.lcf 24 25LCFILE_TEMPLATE = $(NITRO_INCDIR)/nitro/specfiles/$(NITRO_PROC)-$(NITRO_PLATFORM).lcf.template 26 27%.autogen.lcf: %.lsf $(MAKELCF) $(LCFILE_TEMPLATE) 28 $(MAKELCF) $(MAKELCF_FLAGS) $< $(LCFILE_TEMPLATE) $@ 29 30simple1.lcf: simple.lsf $(MAKELCF) simple.lcf.template 31 $(MAKELCF) $(MAKELCF_FLAGS) -V1 $< simple.lcf.template $@ 32 33simple2.lcf: simple.lsf $(MAKELCF) simple.lcf.template 34 $(MAKELCF) $(MAKELCF_FLAGS) -V2 $< simple.lcf.template $@ 35 36test2.lcf: test2.lsf $(MAKELCF) test2.def 37 $(MAKELCF) $(MAKELCF_FLAGS) -Mtest2.def $< $(LCFILE_TEMPLATE) $@ 38 39MAKELCF = $(NITRO_TOOLSDIR)/bin/makelcf.exe 40 41.PHONY: build install do-autotest clean clobber 42 43define ECHO_CURDIR 44 echo "==== $(CURDIR)"; 45endef 46 47build: 48 @$(ECHO_CURDIR) 49 @$(MAKE) $(TARGET) 50 51install do-autotest: 52 @$(ECHO_CURDIR) 53 54clean clobber super-clobber: 55 @$(ECHO_CURDIR) 56 -rm -f $(TARGET) *~ 57