Chinaunix首页 | 论坛 | 博客
  • 博客访问: 75342
  • 博文数量: 83
  • 博客积分: 1320
  • 博客等级: 中尉
  • 技术积分: 805
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-20 14:54
文章分类

全部博文(83)

文章存档

2010年(83)

我的朋友

分类:

2010-07-20 15:09:24

Add helloworld(native c):        
 1. # mkdir $(YOUR_ANDROID)/development/hello        
 2. # vim hello.c:             
  #include
            int main()            
{             
 printf("Hello World! ");              
return 0;              
}         
 3.# vim Android.mk            
 LOCAL_PATH:= $(call my-dir)          
 include $(CLEAR_VARS)           
LOCAL_SRC_FILES:=          
 hello.c          
 LOCAL_MODULE := helloworld          
 include $(BUILD_EXECUTABLE)         
4.make helloworld            
阅读(339) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~