1#! make -f 2#---------------------------------------------------------------------------- 3# Project: TwlSDK - libraries - init - ARM9.TWL 4# File: Makefile.FLX 5# 6# Copyright 2007-2009 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:: 2009-06-04#$ 15# $Rev: 10698 $ 16# $Author: okubata_ryoma $ 17#---------------------------------------------------------------------------- 18 19override TARGET_PLATFORM = TWL 20 21# Codegen for main processer 22override TWL_PROC = ARM9 23 24# Avoid to build THUMB version object 25override TWL_CODEGEN = ARM 26 27# Avoid to use pre-compile-header of "nitro.h" 28TWL_NO_STD_PCHDR = True 29 30# build ARM & THUMB libraries 31TWL_CODEGEN ?= ALL 32 33# build HYBRID & LIMITED libraries 34TWL_ARCHGEN ?= ALL 35 36SRCDIR = ../common/src src 37INCDIR = ../common/include 38 39SRCS = crt0.FLX.c 40TARGET_OBJ = crt0$(ARCHGEN_TYPE).TWL.o 41 42include $(TWLSDK_ROOT)/build/buildtools/commondefs 43#---------------------------------------------------------------------------- 44 45INSTALL_TARGETS = $(TARGETS) 46INSTALL_DIR = $(TWL_INSTALL_LIBDIR) 47 48include $(TWLSDK_ROOT)/build/buildtools/modulerules 49#---------------------------------------------------------------------------- 50 51do-build: $(TARGETS) 52 53$(OBJDIR)/$(TARGET_OBJ): $(OBJDIR)/$(SRCS:.c=.o) 54 $(CP) $< $@ 55 56 57#===== End of Makefile ===== 58