try this
LOCAL_SRC_FILES += \
               dirA/test.c\
               dirB/tool.S

Regards,
Zova

On Tue, Nov 1, 2011 at 10:38 AM, guoguo <[email protected]> wrote:

> Hello every one
>
> I have a tool.S like this
>
> .text
> .align2
> .global asm_call
> asm_call:
>   mov r0 , #0
>   mov r1 , #1
>
>
> and I wrote a test.c like this
>
> #include <stdio.h>
> void asm_call();
>
> int main(int argc , char **argv)
> {
>     asm_call();
> }
>
> My make file like this
> LOCAL_PATH :=$(call my-dir)
> include $(CLEAR_VARS)
> LOCAL_MODULE_TAGS := optional
> LOCAL_MODULE := test
> arm_src_files := tool.S
> LOCAL_SRC_FILES := test.c
> LOCAL_SHARED_LIBRARIES :=libdl
>
> include $(BUILD_EXECUTABLE)
>
> when I run  mmm ./external/test
>
> there is an error said  : error undefined reference to 'asm_call'
>
> I'v tryed to add 'extern' before 'asm_call' in c code like this  : extern
> void asm_call() , and the result remain the same .
>
> Can any one give me some advise ?
> Thanks.
>
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-kernel

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to