small fix

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@163 4ee2a332-4b2b-5046-8439-1ba90f034370
This commit is contained in:
shirait 2007-07-03 09:36:43 +00:00
parent ef3e25e0aa
commit 69e6e4873f
2 changed files with 6 additions and 2 deletions

View File

@ -21,6 +21,7 @@ ifndef TWLDLL_MODULERULES_
#MakefileでDLL_FILESを定義しておくとmake dllでstaticsymlist.cができます
DLL_LIBS ?= $(addprefix $(TWL_LIBDIR)/,$(addsuffix $(TWL_LIBSUFFIX).a,$(DLL_FILES)))
NODBG_LIBS ?= $(addprefix $(TWL_LIBDIR)/,$(addsuffix $(TWL_LIBSUFFIX).nodbg.a,$(DLL_FILES)))
STATIC_LIBS ?= $(addprefix $(TWL_LIBDIR)/,$(TWL_LIBS))
.PHONY: dll
@ -29,9 +30,12 @@ dll:
@$(MAKE_SUBDIR)
@$(ECHO_CURDIR)
ifdef DLL_FILES
$(foreach DLLFILE, $(DLL_LIBS), \
$(TWLSDK_ROOT)/tools/stripdebug/stripdebug.exe -o $(subst .a,.nodbg.a,$(DLLFILE)) $(DLLFILE))
$(TWLSDK_ROOT)/tools/makelst/makelst.exe -o $(SRCDIR)/staticsymlist.c \
-static $(STATIC_LIBS) \
-dll $(DLL_LIBS)
-dll $(NODBG_LIBS)
endif

View File

@ -163,7 +163,7 @@ void TwlSpMain( void)
/*----------*/
// fd = po_open( (byte*)"\\libdlltest.a", (PO_CREAT|PO_BINARY|PO_WRONLY), PS_IREAD);
fd = po_open( (byte*)"\\libsampledll_sp.twl.a", (PO_CREAT|PO_BINARY|PO_WRONLY), PS_IREAD);
fd = po_open( (byte*)"\\libsampledll_sp.twl.nodbg.a", (PO_CREAT|PO_BINARY|PO_WRONLY), PS_IREAD);
if( fd < 0) {
PRINTDEBUG( "po_open failed.\n");
while( 1) {};