posts - 23, comments - 0, trackbacks - 0, articles - 3
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          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) #獲取當(dāng)前目錄
          ELEASEDIR := $(shell (cd $(SRCBASE)/.. && pwd -P))
          print:
                  echo ${ELEASEDIR}
          install: all
                  install -d ${ELEASEDIR}/tmp
                  $(MAKE) -C ./hello clean #切換到hello目錄執(zhí)行clean目標(biāo)
                  $(MAKE) -C ./hello hello #切換到hello目錄執(zhí)行hello目標(biāo)
                  $(MAKE) -C ./hello $@ #切換到hello目錄執(zhí)行install目標(biāo)
          all clean:
          ifneq ($(wildcard hell),) #如果有hell這個文件就執(zhí)行里面的動作
                  $(MAKE) -C ./bin $@ #切換到hello目錄執(zhí)行all\clean目標(biāo)
          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 閱讀(281) | 評論 (0)編輯 收藏

          新員工培訓(xùn)建議
          開始模式
          開發(fā)的軟件(VI,代碼
          開發(fā)的技巧(如VI的使用,如果新員工較熟悉,可略過)
          1.代碼規(guī)范 編碼質(zhì)量要求
          關(guān)于代碼文檔 發(fā)送 由經(jīng)驗比較豐富的程序員講解一下要求,對新員工的前幾次編碼進行檢查

          2。項目架構(gòu)
          項目的文檔(原理圖,開發(fā)文檔)
          項目的整體架構(gòu)
           1。(硬件構(gòu)成 CPU,模塊,最好有相關(guān)的原理圖)
           2。軟件整體結(jié)構(gòu),可從makefile編譯開始講起
           用到的開源的軟件包,將各種二進制文件打包,數(shù)據(jù)流程,進程啟動通信機制(如果有相應(yīng)的架構(gòu)圖,流程圖最好)

          與工作相關(guān)的(現(xiàn)在或?qū)硪龅暮图毙枰私獾膮f(xié)議,資料)

          posted @ 2010-07-16 19:32 beauty9235 閱讀(522) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 东安县| 连山| 炉霍县| 隆林| 湖南省| 莱阳市| 和静县| 太和县| 察隅县| 定边县| 汤原县| 伊春市| 集贤县| 高州市| 华蓥市| 扶绥县| 廉江市| 仙居县| 巍山| 盐山县| 堆龙德庆县| 二连浩特市| 古交市| 长宁县| 乌拉特前旗| 芒康县| 肥城市| 萨嘎县| 永新县| 呼图壁县| 花垣县| 高碑店市| 来宾市| 华安县| 巫山县| 大埔区| 额济纳旗| 庆元县| 上高县| 彭泽县| 海盐县|