ChinaUnix.net
相关文章推荐:

android makefile结构

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/6889/showart_1018031.html

by lc0060305 - Java文档中心 - 2008-06-27 16:39:51 阅读(784) 回复(0)

相关讨论

1 activity 简单说就是屏幕,与操作者交互的人机接口中的视觉交互部分,有按钮,文本框等这些view widget控件组成的一个屏幕。 2 intent 字面看是意图,那就是想干什么了,一个程序肯定是有目的的,所以应该有他想干的事情。 3 Intent Receiver 意图接收器,当然不能完全这样理解,文档中的意思是当某种情况发生时去执行某个动作,当有人敲门时我去开门,没事不老去开门。 接收意图的机制,接收中断的机制。 4 service ...

by shareman - Java文档中心 - 2009-06-18 17:03:15 阅读(1061) 回复(0)

在一个android 应用中有如下的四种组件: * Activity 活动组件 * Intent Receiver 接受处理组件 * Service 服务组件 * Content Provider 内容提供组件 一个android 应用并不需要同时具有这四个组件,应用可以组合这些组件。 在应用中一旦决定使用了哪些组件,就需要在androidManifest.xml文件中列举出来。可以参考 [color="#0000ff"]android manifest file documentation Activity Activities是最普遍的组件,在应用中通常用于显示...

by dolinux - Java文档中心 - 2008-11-25 18:37:41 阅读(1143) 回复(0)

INCLUDE := ${HOME}/latestlinux/linux-2.6.17.6/include #CFLAGS += -I$(INCLUDE) #CFLAGS += -M CFLAGS = -Wall CFLAGS += -O2 CFLAGS += -I$(INCLUDE) PWD :=(shell pwd) OBJS = $(subst .c,.o,$(wildcard *.c)) usb :$(OBJS) gcc -o usb $(OBJS) $(OBJS):%.o:%.c gcc $(CFLAGS) -c $< clean: @rm -fv $(OBJS) linux目录下有usb_gadget.h文件,但是用到里面的结构体时, struct usb_string str; ...

by wuiiszsu - 内核/嵌入技术 - 2006-10-24 21:53:37 阅读(661) 回复(1)

咱们是不是应该开个android :mrgreen: :mrgreen: :mrgreen: 看着太好玩了。 [ 本帖最后由 小把戏 于 2008-9-29 21:55 编辑 ]

by 小把戏 - 站务交流 - 2008-12-29 20:31:52 阅读(2613) 回复(5)

大家好,我是个高中生,高中1年纪。 最近在学习linux下的编程。 // 文件main.c #include #include "hello.h" int main() { str_printf("hello"); return 0; } // hello.h #ifndef HELLO_H_ #define HELLO_H_ void str_printf(const char *str); #endif // hello.c #include "hello.h" void str_printf(const char *str) { printf("hello.c:%s\n", str); } 请问makefile文件该怎么写?

by 写自己的操作系 - C/C++ - 2009-07-27 17:15:17 阅读(2605) 回复(13)

test.h #ifndef _TEST_H_ #define _TEST_H_ void print(); #endif test.c #include #include "test.h" void print() { printf("hello,world\n"); } main.c #include "test.h" int main() { print(); return 0; } makefile: mycpp: main.o test.o gcc -o mycpp main.o test.o main.o: main.c test.h gcc -c main.c test.o: test.c gcc -c test.c makefile...

by hr_it - C/C++ - 2008-09-17 00:10:10 阅读(3897) 回复(11)

这是我写的一个makefile VPATH=../lib:../include:../bin lib = ../lib/ bin = ../bin/ objects=bank.o adminlogin.o mainmenu.o execute.o deposit.o withdraw.o query.o \ write.o read.o listall.o cancelaccount.o establishaccount.o bank : $(objects) gcc $(objects) -o $(bin)bank bank.o : bank.c includeofbank.h includeofstruct.h gcc -c bank.c -o $(lib)bank.o mainmenu.o : mainmen...

by wangxiaoguang - C/C++ - 2008-08-06 12:52:02 阅读(2004) 回复(10)

本人明天就要交程序 但是突然发现要求要makefile 但我对这个根本不太了解 我有5个目录,as.tgs.client.kdc 和sever_v 每个目录下基本都有main.cpp和tea.hpp等文件 请问如何构造makefile? 应该是在主目录下构造一个makefile,然后在5个目录下分别构造5个makefile, 但是该怎么写了? 更大的问题是,我的程序是在LINUX下编译通过 但是放到SUN的UNIX下编译无法通过 如果是在Solaris上编译,因该把相应的头文件包含进去,如:“sys /...

by babobo - Shell - 2005-09-19 10:39:02 阅读(1115) 回复(1)

下了个java1.4源代码包,怎样执行make,我的操作系统是SCO UNIX

by zxllxz - Java - 2005-09-04 15:19:38 阅读(809) 回复(0)

为什么要加上-I . -g -Wall -ansi呀? 用gcc -c main.c 不就好了吗? :em14:

by qiqixiao - Linux论坛 - 2004-10-08 15:03:12 阅读(568) 回复(1)