From ef3e25e0aafdc6324baa3f16830e6a1d937a77b8 Mon Sep 17 00:00:00 2001 From: shirait Date: Tue, 3 Jul 2007 07:13:03 +0000 Subject: [PATCH] add rules for dll git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@162 4ee2a332-4b2b-5046-8439-1ba90f034370 --- build/buildtools/modulerules.add-ins.twldll | 49 +++++++++++++++++++++ build/tests/el/el-1/ARM7/Makefile | 4 ++ 2 files changed, 53 insertions(+) create mode 100644 build/buildtools/modulerules.add-ins.twldll diff --git a/build/buildtools/modulerules.add-ins.twldll b/build/buildtools/modulerules.add-ins.twldll new file mode 100644 index 0000000..c7bc1e8 --- /dev/null +++ b/build/buildtools/modulerules.add-ins.twldll @@ -0,0 +1,49 @@ +#! make -f +#---------------------------------------------------------------------------- +# Project: TwlSDK - modulerules - common rules for build system +# File: modulerules +# +# Copyright 2007 Nintendo. All rights reserved. +# +# These coded instructions, statements, and computer programs contain +# proprietary information of Nintendo of America Inc. and/or Nintendo +# Company Ltd., and are protected by Federal copyright law. They may +# not be disclosed to third parties or copied or duplicated in any form, +# in whole or in part, without the prior written consent of Nintendo. +# +# $Log: $ +# $NoKeywords: $ +#---------------------------------------------------------------------------- +ifndef TWLDLL_MODULERULES_ + +#---------------------------------------------------------------------------- + +#MakefileでDLL_FILESを定義しておくとmake dllでstaticsymlist.cができます + +DLL_LIBS ?= $(addprefix $(TWL_LIBDIR)/,$(addsuffix $(TWL_LIBSUFFIX).a,$(DLL_FILES))) +STATIC_LIBS ?= $(addprefix $(TWL_LIBDIR)/,$(TWL_LIBS)) + +.PHONY: dll + +dll: + @$(MAKE_SUBDIR) + @$(ECHO_CURDIR) +ifdef DLL_FILES + $(TWLSDK_ROOT)/tools/makelst/makelst.exe -o $(SRCDIR)/staticsymlist.c \ + -static $(STATIC_LIBS) \ + -dll $(DLL_LIBS) +endif + + +# +# $(foreach DLLFILE, $(DLL_LIBS), \ +# $(TWLSDK_ROOT)/tools/makelst/makelst.exe -o staticsymlist.c \ +# -static $(STATIC_LIBS) \ +# -dll $(TWL_LIBDIR)/$(DLLFILE) +#) +# + +#---------------------------------------------------------------------------- +TWLDLL_MODULERULES_ = TRUE +endif # TWLDLL_MODULERULES_ +#----- End of modulerules ----- diff --git a/build/tests/el/el-1/ARM7/Makefile b/build/tests/el/el-1/ARM7/Makefile index 307675c..71ab09b 100644 --- a/build/tests/el/el-1/ARM7/Makefile +++ b/build/tests/el/el-1/ARM7/Makefile @@ -24,6 +24,8 @@ LCFILE_SPEC = main.lsf #TWL_CODEGEN = THUMB TWL_PROC = ARM7 +DLL_FILES = libsampledll_sp + TARGET_BIN = main.axf SRCS = sample1.c staticsymlist.c \ @@ -45,6 +47,8 @@ include $(TWLSDK_ROOT)/build/buildtools/commondefs #---------------------------------------------------------------------------- + + do-build: $(TARGETS)