add rules for dll

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@162 4ee2a332-4b2b-5046-8439-1ba90f034370
This commit is contained in:
shirait 2007-07-03 07:13:03 +00:00
parent 45684e38f1
commit ef3e25e0aa
2 changed files with 53 additions and 0 deletions

View File

@ -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 -----

View File

@ -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)