posts - 23, comments - 0, trackbacks - 0, articles - 3
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

2010年7月16日

lxq@lxq:~/tmp$ tree
.
|-- Makefile
|-- bin
|   `-- Makefile
|-- hello
|   |-- Makefile
|   |-- hello
|   `-- hello.c
`-- tmp

3 directories, 5 files


cat Makefile
SRCBASE := $(shell pwd) #获取当前目录
ELEASEDIR := $(shell (cd $(SRCBASE)/.. && pwd -P))
print:
        echo ${ELEASEDIR}
install: all
        install -d ${ELEASEDIR}/tmp
        $(MAKE) -C ./hello clean #切换到hello目录执行clean目标
        $(MAKE) -C ./hello hello #切换到hello目录执行hello目标
        $(MAKE) -C ./hello $@ #切换到hello目录执行install目标
all clean:
ifneq ($(wildcard hell),) #如果有hell这个文件就执行里面的动作
        $(MAKE) -C ./bin $@ #切换到hello目录执行all\clean目标
endif
.PHONY: all clean install

cat hello/Makefile
clean:
ifneq ($(wildcard hello),)
        rm hello
endif
hello:
        gcc -o hello hello.c
install:
        -cp hello ../bin/

cat hello/hello.c
#include <stdio.h>
int main()
{
        printf("hello");
        exit(0);
}









posted @ 2010-07-16 20:01 beauty9235 阅读(258) | 评论 (0)编辑 收藏

新员工培训建议
开始模式
开发的软件(VI,代码
开发的技巧(如VI的使用,如果新员工较熟悉,可略过)
1.代码规范 编码质量要求
关于代码文档 发送 由经验比较丰富的程序员讲解一下要求,对新员工的前几次编码进行检查

2。项目架构
项目的文档(原理图,开发文档)
项目的整体架构
 1。(硬件构成 CPU,模块,最好有相关的原理图)
 2。软件整体结构,可从makefile编译开始讲起
 用到的开源的软件包,将各种二进制文件打包,数据流程,进程启动通信机制(如果有相应的架构图,流程图最好)

与工作相关的(现在或将来要做的和急需要了解的协议,资料)

posted @ 2010-07-16 19:32 beauty9235 阅读(504) | 评论 (0)编辑 收藏