锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久乐国产综合亚洲精品,久久国产精品久久国产精品,久久久久亚洲AV无码专区首JNhttp://www.shnenglu.com/beautykingdom/category/12364.htmlzh-cnThu, 17 Jun 2010 04:56:28 GMTThu, 17 Jun 2010 04:56:28 GMT60璺熸垜涓璧峰啓 Makefilehttp://www.shnenglu.com/beautykingdom/archive/2010/05/14/115369.htmlchatlerchatlerFri, 14 May 2010 07:02:00 GMThttp://www.shnenglu.com/beautykingdom/archive/2010/05/14/115369.htmlhttp://www.shnenglu.com/beautykingdom/comments/115369.htmlhttp://www.shnenglu.com/beautykingdom/archive/2010/05/14/115369.html#Feedback0http://www.shnenglu.com/beautykingdom/comments/commentRss/115369.htmlhttp://www.shnenglu.com/beautykingdom/services/trackbacks/115369.html闃呰鍏ㄦ枃

chatler 2010-05-14 15:02 鍙戣〃璇勮
]]>
G++緙栬瘧閫夐」http://www.shnenglu.com/beautykingdom/archive/2010/03/19/110070.htmlchatlerchatlerFri, 19 Mar 2010 01:23:00 GMThttp://www.shnenglu.com/beautykingdom/archive/2010/03/19/110070.htmlhttp://www.shnenglu.com/beautykingdom/comments/110070.htmlhttp://www.shnenglu.com/beautykingdom/archive/2010/03/19/110070.html#Feedback0http://www.shnenglu.com/beautykingdom/comments/commentRss/110070.htmlhttp://www.shnenglu.com/beautykingdom/services/trackbacks/110070.html

gcc/g++ 鍦ㄦ墽琛岀紪璇戞椂錛岄渶瑕?姝?/p>

銆銆1.棰勫鐞?鐢熸垚.i鐨勬枃浠禰浣跨敤-E鍙傛暟]

銆銆2.灝嗛澶勭悊鍚庣殑鏂囦歡涓嶈漿鎹㈡垚姹囩紪璇█,鐢熸垚鏂囦歡.s[浣跨敤-S鍙傛暟]

銆銆3.鏈夋眹緙栧彉涓虹洰鏍囦唬鐮?鏈哄櫒浠g爜)鐢熸垚.o鐨勬枃浠禰浣跨敤-c鍙傛暟]

銆銆4.榪炴帴鐩爣浠g爜,鐢熸垚鍙墽琛岀▼搴廩浣跨敤-o鍙傛暟]

-x language filename

銆銆璁懼畾鏂囦歡鎵浣跨敤鐨勮璦,浣垮悗緙鍚嶆棤鏁?瀵逛互鍚庣殑澶氫釜鏈夋晥.涔熷氨鏄牴鎹害瀹欳璇█鐨勫悗緙鍚嶇О鏄?c鐨勶紝鑰?a class="channel_keylink" target="_blank">C++鐨勫悗緙鍚嶆槸.C鎴栬?cpp,濡傛灉浣犲緢涓э紝鍐沖畾浣犵殑C浠g爜鏂囦歡鐨勫悗緙鍚嶆槸.pig 鍝堝搱錛岄偅浣犲氨瑕佺敤榪欎釜鍙傛暟,榪欎釜鍙傛暟瀵逛粬鍚庨潰鐨勬枃浠跺悕閮借搗浣滅敤錛岄櫎闈炲埌浜嗕笅涓涓弬鏁扮殑浣跨敤銆?/p>

-ansi

銆銆鍏抽棴gnu c涓笌ansi c涓嶅吋瀹圭殑鐗規(guī)?嬋媧籥nsi c鐨勪笓鏈夌壒鎬?鍖呮嫭紱佹涓浜沘sm inline typeof鍏抽敭瀛?浠ュ強(qiáng)UNIX,vax絳夐澶勭悊瀹?

-fno-asm

銆銆姝ら夐」瀹炵幇ansi閫夐」鐨勫姛鑳界殑涓閮ㄥ垎錛屽畠紱佹灝哸sm,inline鍜宼ypeof鐢ㄤ綔鍏抽敭瀛椼?/p>

-fno-strict-prototype

銆銆鍙g++璧蜂綔鐢?浣跨敤榪欎釜閫夐」,g++灝嗗涓嶅甫鍙傛暟鐨勫嚱鏁?閮借涓烘槸娌℃湁鏄懼紡鐨勫鍙傛暟鐨勪釜鏁板拰綾誨瀷璇存槑,鑰屼笉鏄病鏈夊弬鏁?鑰実cc鏃犺鏄惁浣跨敤榪欎釜鍙傛暟,閮藉皢瀵規(guī)病鏈夊甫鍙傛暟鐨勫嚱鏁?璁や負(fù)鍩庢病鏈夋樉寮忚鏄庣殑綾誨瀷

-fthis-is-varialble

銆銆灝辨槸鍚戜紶緇焎++鐪嬮綈,鍙互浣跨敤this褰撲竴鑸彉閲忎嬌鐢?

-fcond-mismatch

銆銆鍏佽鏉′歡琛ㄨ揪寮忕殑絎簩鍜岀涓夊弬鏁扮被鍨嬩笉鍖歸厤,琛ㄨ揪寮忕殑鍊煎皢涓簐oid綾誨瀷

銆銆-funsigned-char

銆銆-fno-signed-char

銆銆-fsigned-char

銆銆-fno-unsigned-char

銆銆榪欏洓涓弬鏁版槸瀵筩har綾誨瀷榪涜璁劇疆,鍐沖畾灝哻har綾誨瀷璁劇疆鎴恥nsigned char(鍓嶄袱涓弬鏁?鎴栬?signed char(鍚庝袱涓弬鏁?

-include file

銆銆鍖呭惈鏌愪釜浠g爜,綆鍗曟潵璇?灝辨槸渚夸互鏌愪釜鏂囦歡,闇瑕佸彟涓涓枃浠剁殑鏃跺?灝卞彲浠ョ敤瀹冭瀹?鍔熻兘灝辯浉褰撲簬鍦ㄤ唬鐮佷腑浣?include<filename>

銆銆渚嬪瓙鐢ㄦ硶:

銆銆gcc hello.c -include /root/pianopan.h

銆銆-imacros file

銆銆灝唂ile鏂囦歡鐨勫畯,鎵╁睍鍒癵cc/g++鐨勮緭鍏ユ枃浠?瀹忓畾涔夋湰韜茍涓嶅嚭鐜板湪杈撳叆鏂囦歡涓?/p>

銆銆-Dmacro

銆銆鐩稿綋浜嶤璇█涓殑#define macro

銆銆-Dmacro=defn

銆銆鐩稿綋浜嶤璇█涓殑#define macro=defn

銆銆-Umacro

銆銆鐩稿綋浜嶤璇█涓殑#undef macro

銆銆-undef

銆銆鍙栨秷瀵逛換浣曢潪鏍囧噯瀹忕殑瀹氫箟

銆銆-Idir

銆銆鍦ㄤ綘鏄敤#include"file"鐨勬椂鍊?gcc/g++浼?xì)鍏堝湪褰撳墠鐩綍鏌ユ壘浣犳墍鍒跺畾鐨勫ご鏂囦歡,濡傛灉娌℃湁鎵懼埌,浠栧洖鍒扮己鐪佺殑澶存枃浠剁洰褰曟壘,濡傛灉浣跨敤-I鍒跺畾浜嗙洰褰?浠栧洖鍏堝湪浣犳墍鍒跺畾鐨勭洰褰曟煡鎵?鐒跺悗鍐嶆寜甯歌鐨勯『搴忓幓鎵?瀵逛簬#include<file>,gcc/g++浼?xì)鍒?I鍒跺畾鐨勭洰褰曟煡鎵?鏌ユ壘涓嶅埌,鐒跺悗灝嗗埌緋葷粺鐨勭己鐪佺殑澶存枃浠剁洰褰曟煡鎵?/p>

銆銆-I-

銆銆灝辨槸鍙栨秷鍓嶄竴涓弬鏁扮殑鍔熻兘,鎵浠ヤ竴鑸湪-Idir涔嬪悗浣跨敤

銆銆-idirafter dir

銆銆鍦?I鐨勭洰褰曢噷闈㈡煡鎵懼け璐?璁插埌榪欎釜鐩綍閲岄潰鏌ユ壘.

銆銆-iprefix prefix

銆銆-iwithprefix dir

銆銆涓鑸竴璧蜂嬌鐢?褰?I鐨勭洰褰曟煡鎵懼け璐?浼?xì)鍒皃refix+dir涓嬫煡鎵?/p>

銆銆-nostdinc

銆銆浣跨紪璇戝櫒涓嶅啀緋葷粺緙虹渷鐨勫ご鏂囦歡鐩綍閲岄潰鎵懼ご鏂囦歡,涓鑸拰-I鑱斿悎浣跨敤,鏄庣‘闄愬畾澶存枃浠剁殑浣嶇疆

銆銆-nostdin C++

銆銆瑙勫畾涓嶅湪g++鎸囧畾鐨勬爣鍑嗚礬緇忎腑鎼滅儲,浣嗕粛鍦ㄥ叾浠栬礬寰勪腑鎼滅儲,.姝ら夐」鍦ㄥ垱寤簂ibg++搴撲嬌鐢?/p>

銆銆-C

銆銆鍦ㄩ澶勭悊鐨勬椂鍊?涓嶅垹闄ゆ敞閲婁俊鎭?涓鑸拰-E浣跨敤,鏈夋椂鍊欏垎鏋愮▼搴忥紝鐢ㄨ繖涓緢鏂逛究鐨?/p>

銆銆-M

銆銆鐢熸垚鏂囦歡鍏寵仈鐨勪俊鎭傚寘鍚洰鏍囨枃浠舵墍渚濊禆鐨勬墍鏈夋簮浠g爜

銆銆浣犲彲浠ョ敤gcc -M hello.c鏉?a class="channel_keylink" target="_blank">嫻嬭瘯涓涓嬶紝寰堢畝鍗曘?/p>

銆銆-MM

銆銆鍜屼笂闈㈢殑閭d釜涓鏍鳳紝浣嗘槸瀹冨皢蹇界暐鐢?include<file>閫犳垚鐨勪緷璧栧叧緋匯?/p>

銆銆-MD

銆銆鍜?M鐩稿悓錛屼絾鏄緭鍑哄皢瀵煎叆鍒?d鐨勬枃浠墮噷闈?/p>

銆銆-MMD

銆銆鍜?MM鐩稿悓錛屼絾鏄緭鍑哄皢瀵煎叆鍒?d鐨勬枃浠墮噷闈?/p>

銆銆-Wa,option

銆銆姝ら夐」浼犻抩ption緇欐眹緙栫▼搴?濡傛灉option涓棿鏈夐楀彿,灝卞皢option鍒嗘垚澶氫釜閫夐」,鐒跺悗浼犻掔粰浼?xì)姹嚲~栫▼搴?/p>

銆銆-Wl.option

銆銆姝ら夐」浼犻抩ption緇欒繛鎺ョ▼搴?濡傛灉option涓棿鏈夐楀彿,灝卞皢option鍒嗘垚澶氫釜閫夐」,鐒跺悗浼犻掔粰浼?xì)杩炴帴绋嬪?

銆銆-llibrary

銆銆鍒跺畾緙栬瘧鐨勬椂鍊欎嬌鐢ㄧ殑搴?/p>

銆銆渚嬪瓙鐢ㄦ硶

銆銆gcc -lcurses hello.c

銆銆浣跨敤ncurses搴撶紪璇戠▼搴?/p>

銆銆-Ldir

銆銆鍒跺畾緙栬瘧鐨勬椂鍊欙紝鎼滅儲搴撶殑璺緞銆傛瘮濡備綘鑷繁鐨勫簱錛屽彲浠ョ敤瀹冨埗瀹氱洰褰曪紝涓嶇劧緙栬瘧鍣ㄥ皢鍙湪鏍囧噯搴撶殑鐩綍鎵俱傝繖涓猟ir灝辨槸鐩綍鐨勫悕縐般?/p>

銆銆-O0

銆銆-O1

銆銆-O2

銆銆-O3

銆銆緙栬瘧鍣ㄧ殑浼樺寲閫夐」鐨?涓駭鍒紝-O0琛ㄧず娌℃湁浼樺寲,-O1涓虹己鐪佸鹼紝-O3浼樺寲綰у埆鏈楂?/p>

銆銆-g

銆銆鍙槸緙栬瘧鍣紝鍦ㄧ紪璇戠殑鏃跺欙紝浜х敓鏉℃槸淇℃伅銆?/p>

銆銆-gstabs

銆銆姝ら夐」浠tabs鏍煎紡澹扮О璋冭瘯淇℃伅,浣嗘槸涓嶅寘鎷琯db璋冭瘯淇℃伅.

銆銆-gstabs+

銆銆姝ら夐」浠tabs鏍煎紡澹扮О璋冭瘯淇℃伅,騫朵笖鍖呭惈浠呬緵gdb浣跨敤鐨勯澶栬皟璇曚俊鎭?

銆銆-ggdb

銆銆姝ら夐」灝嗗敖鍙兘鐨勭敓鎴恎db鐨勫彲浠ヤ嬌鐢ㄧ殑璋冭瘯淇℃伅.

銆銆-static

銆銆姝ら夐」灝嗙姝嬌鐢ㄥ姩鎬佸簱錛屾墍浠ワ紝緙栬瘧鍑烘潵鐨勪笢瑗匡紝涓鑸兘寰堝ぇ錛屼篃涓嶉渶瑕佷粈涔堝姩鎬佽繛鎺ュ簱錛屽氨鍙互榪愯.

銆銆-share

銆銆姝ら夐」灝嗗敖閲忎嬌鐢ㄥ姩鎬佸簱錛屾墍浠ョ敓鎴愭枃浠舵瘮杈冨皬錛屼絾鏄渶瑕佺郴緇熺敱鍔ㄦ佸簱.

銆銆-traditional

銆銆璇曞浘璁╃紪璇戝櫒鏀寔浼犵粺鐨凜璇█鐗規(guī)?/p> from錛?br>http://c.chinaitlab.com/ccjq/803616_2.html


chatler 2010-03-19 09:23 鍙戣〃璇勮
]]>
autotools鍒朵綔Makefile 鍜宑onfigure鏂囦歡http://www.shnenglu.com/beautykingdom/archive/2009/11/21/101566.htmlchatlerchatlerSat, 21 Nov 2009 10:33:00 GMThttp://www.shnenglu.com/beautykingdom/archive/2009/11/21/101566.htmlhttp://www.shnenglu.com/beautykingdom/comments/101566.htmlhttp://www.shnenglu.com/beautykingdom/archive/2009/11/21/101566.html#Feedback0http://www.shnenglu.com/beautykingdom/comments/commentRss/101566.htmlhttp://www.shnenglu.com/beautykingdom/services/trackbacks/101566.html500)this.width=500;">

1.autoscan (autoconf): 鎵弿婧愪唬鐮佷互鎼滃鏅氱殑鍙Щ妞嶆ч棶棰橈紝姣斿媯鏌ョ紪璇戝櫒錛屽簱錛屽ご鏂囦歡絳夛紝鐢熸垚鏂囦歡configure.scan,瀹冩槸configure.ac鐨勪竴涓洀褰€?/p>

    your source files --> [autoscan*] --> [configure.scan] --> configure.ac

2.aclocal (automake):鏍規(guī)嵁宸茬粡瀹夎鐨勫畯錛岀敤鎴峰畾涔夊畯鍜宎cinclude.m4鏂囦歡涓殑瀹忓皢configure.ac鏂囦歡鎵闇瑕佺殑瀹忛泦涓畾涔夊埌鏂囦歡 aclocal.m4涓俛clocal鏄竴涓猵erl 鑴氭湰紼嬪簭錛屽畠鐨勫畾涔夋槸錛?#8220;aclocal - create aclocal.m4 by scanning configure.ac”
user input files   optional input     process          output files
================ ============== ======= ============

acinclude.m4 - - - - -.
V
.-------,
configure.ac ------------------------>|aclocal|
{user macro files} ->| |------> aclocal.m4
`-------'
3.autoheader(autoconf): 鏍規(guī)嵁configure.ac涓殑鏌愪簺瀹忥紝姣斿cpp瀹忓畾涔夛紝榪愯m4錛屽0縐癱onfig.h.in

user input files optional input process output files
================ ============== ======= ============

aclocal.m4 - - - - - - - .
|
V
.----------,
configure.ac ----------------------->|autoheader|----> autoconfig.h.in
`----------'

4.automake: automake灝哅akefile.am涓畾涔夌殑緇撴瀯寤虹珛Makefile.in錛岀劧鍚巆onfigure鑴氭湰灝嗙敓鎴愮殑Makefile.in鏂囦歡杞崲 涓篗akefile銆傚鏋滃湪configure.ac涓畾涔変簡涓浜涚壒孌婄殑瀹忥紝姣斿AC_PROG_LIBTOOL錛屽畠浼?xì)璋冪敤libtoolize錛屽惁鍒欏畠 浼?xì)鑷纷凂旂敓config.guess鍜宑onfig.sub

user input files   optional input   processes          output files
================ ============== ========= ============

.--------,
| | - - -> COPYING
| | - - -> INSTALL
| |------> install-sh
| |------> missing
|automake|------> mkinstalldirs
configure.ac ----------------------->| |
Makefile.am ----------------------->| |------> Makefile.in
| |------> stamp-h.in
.---+ | - - -> config.guess
| | | - - -> config.sub
| `------+-'
| | - - - -> config.guess
|libtoolize| - - - -> config.sub
| |--------> ltmain.sh
| |--------> ltconfig
`----------'

5.autoconf:灝哻onfigure.ac涓殑瀹忓睍寮錛岀敓鎴恈onfigure鑴氭湰銆傝繖涓繃紼嬪彲鑳借鐢ㄥ埌aclocal.m4涓畾涔夌殑瀹忋?/p>

user input files   optional input   processes          output files
================ ============== ========= ============

aclocal.m4 ,autoconfig.h.in - - - - - - -.
V
.--------,
configure.ac ----------------------->|autoconf|------> configure
 
6. ./configure鐨勮繃紼?/pre>

.-------------> [config.cache]
configure* --------------------------+-------------> config.log
|
[config.h.in] -. v .--> [autoconfig.h]
+-------> config.status* -+
Makefile.in ---' `--> Makefile
 
7. make榪囩▼
 
[autoconfig.h] -.
+--> make* ---> 紼嬪簭
Makefile ---'
 
.---------,
config.site - - ->| |
config.cache - - ->|configure| - - -> config.cache
| +-,
`-+-------' |
| |----> config.status
config.h.in ------->|config- |----> config.h
Makefile.in ------->| .status|----> Makefile
| |----> stamp-h
| +--,
.-+ | |
| `------+--' |
ltmain.sh ------->|ltconfig|-------> libtool
| | |
`-+------' |
|config.guess|
| config.sub |
`------------'

.--------,
Makefile ------>| |
config.h ------>| make |
{project sources} ---------------->| |--------> {project targets}
.-+ +--,
| `--------' |
| libtool |
| missing |
| install-sh |
|mkinstalldirs|
`-------------'
瀹炰緥錛?br style="FONT: 12px song, Verdana">鍦?hello/鐩綍涓嬪垱寤轟竴涓猦ello.c鏂囦歡錛屽茍緙栬瘧榪愯瀹冿細(xì)

#cd /hello/

(1) 緙栧啓婧愭枃浠秇ello.c錛?/p>

#include<stdio.h> 
int main(int argc, char** argv)
{
printf("Hello, GNU!n");
return 0;
}

[litao@vm0000131 hello]$ ll
total 4
-rw-rw-r-- 1 litao litao 68 Aug 12 12:02 hello.c

涓銆乤utoscan

[litao@vm0000131 hello]$ autoscan
autom4te: configure.ac: no such file or directory
autoscan: /usr/bin/autom4te failed with exit status: 1
[litao@vm0000131 hello]$ ll
total 8
-rw-rw-r-- 1 litao litao   0 Aug 12 12:03 autoscan.log
-rw-rw-r-- 1 litao litao 457 Aug 12 12:03 configure.scan
-rw-rw-r-- 1 litao litao  68 Aug 12 12:02 hello.c

宸茬粡鐢熸垚浜哻onfigure.scan錛宎utoscan.log鏂囦歡

灝哻onfigure.scan 淇敼涓?nbsp;configure.in錛屾渶鍚庝慨鏀圭殑鍐呭濡備笅錛?/span>

[litao@vm0000131 hello]$ mv configure.scan configure.in    
[litao@vm0000131 hello]$ vim configure.in 

#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
AC_CONFIG_SRCDIR([hello.c])
#AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE(hello, 1.0)
# Checks for programs.
AC_PROG_CC

# Checks for libraries.

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.
AC_OUTPUT(Makefile)

浜屻乤cloacl

[litao@vm0000131 hello]$ aclocal 

鐢熸垚 aclocal.m4 鍜?autom4te.cache (鐢熸垚aclocal.m4鐨勮繃紼嬩腑娑夊強(qiáng)鍒癱onfigure.in)

[litao@vm0000131 hello]$ ll
total 44
-rw-rw-r-- 1 litao litao 31120 Aug 12 12:08 aclocal.m4
drwxr-xr-x 2 litao litao  4096 Aug 12 12:08 autom4te.cache
-rw-rw-r-- 1 litao litao     0 Aug 12 12:03 autoscan.log
-rw-rw-r-- 1 litao litao   496 Aug 12 12:08 configure.in
-rw-rw-r-- 1 litao litao    68 Aug 12 12:02 hello.c

涓夈乤ntoconf

[litao@vm0000131 hello]$ autoconf
鐢熸垚 configure (鏍規(guī)嵁 configure.in, 鍜?aclocal.m4)

[litao@vm0000131 hello]$ ll
total 168
-rw-rw-r-- 1 litao litao  31120 Aug 12 12:08 aclocal.m4
drwxr-xr-x 2 litao litao   4096 Aug 12 12:11 autom4te.cache
-rw-rw-r-- 1 litao litao      0 Aug 12 12:03 autoscan.log
-rwxrwxr-x 1 litao litao 122297 Aug 12 12:11 configure
-rw-rw-r-- 1 litao litao    496 Aug 12 12:08 configure.in
-rw-rw-r-- 1 litao litao     68 Aug 12 12:02 hello.c

鍥涖佺紪鍐橫akefile.am錛?

AUTOMAKE_OPTIONS= foreign
bin_PROGRAMS= hello
hello_SOURCES= hello.c

浜斻乤utomake

鐢熸垚 Makefile.in錛?depcomp錛?install-sh錛?鍜?missing (鏍規(guī)嵁 Makefile.am, 鍜?aclocal.m4)

[litao@vm0000131 hello]$ automake
configure.in: required file `./install-sh' not found
configure.in: required file `./missing' not found
Makefile.am: required file `./depcomp' not found
[litao@vm0000131 hello]$ automake --add-missing
configure.in: installing `./install-sh'
configure.in: installing `./missing'
Makefile.am: installing `./depcomp'
[litao@vm0000131 hello]$ ll
total 192
-rw-rw-r-- 1 litao litao  31120 Aug 12 12:08 aclocal.m4
drwxr-xr-x 2 litao litao   4096 Aug 12 12:14 autom4te.cache
-rw-rw-r-- 1 litao litao      0 Aug 12 12:03 autoscan.log
-rwxrwxr-x 1 litao litao 122297 Aug 12 12:11 configure
-rw-rw-r-- 1 litao litao    496 Aug 12 12:08 configure.in
lrwxrwxrwx 1 litao litao     31 Aug 12 12:16 depcomp -> /usr/share/automake-1.9/depcomp
-rw-rw-r-- 1 litao litao     68 Aug 12 12:02 hello.c
lrwxrwxrwx 1 litao litao     34 Aug 12 12:16 install-sh -> /usr/share/automake-1.9/install-sh
-rw-rw-r-- 1 litao litao     69 Aug 12 12:15 Makefile.am
-rw-rw-r-- 1 litao litao  16561 Aug 12 12:16 Makefile.in
lrwxrwxrwx 1 litao litao     31 Aug 12 12:16 missing -> /usr/share/automake-1.9/missing

鍏乧onfigure
鐢熸垚 Makefile錛?config.log錛?鍜?config.status

鐢熸垚makefile鏁翠釜榪囩▼

configure.in 錛?br style="FONT: 12px song, Verdana">configure.in鏂囦歡鍐呭鏄竴緋誨垪GNU m4 鐨勫畯錛岃繖浜涘畯緇廰utoconf澶勭悊鍚庝細(xì)鍙樻垚媯鏌ョ郴緇熺壒鎬х殑shell scripts銆?configure.in 鍐呭畯鐨勯『搴忓茍娌℃湁鐗瑰埆鐨勮瀹氾紝浣嗘槸姣忎竴涓猚onfigure.in 鏂囦歡蹇呴爤鍦ㄦ墍鏈夊畯鍓嶅姞鍏?AC_INIT 瀹忥紝鐒跺悗鍦ㄦ墍鏈夊畯鐨勬渶鍚庡姞涓?AC_OUTPUT瀹忋傚彲鍏堢敤 autoscan 鎵弿鍘熷鏂囦歡浠ヤ駭鐢熶竴涓?configure.scan 鏂囦歡錛屽啀瀵?configure.scan 鍋氫簺淇敼鎴?configure.in 鏂囦歡銆?/span>鍦ㄨ寖渚嬩腑鎵鐢ㄥ埌鐨勫畯濡備笅錛?br style="FONT: 12px song, Verdana">
dnl 
榪欎釜瀹忓悗闈㈢殑瀛椾笉浼?xì)琚鐞嗗Q屽彲浠ヨ涓烘敞閲?nbsp;
AC_INIT(FILE) 
璇ュ畯鐢ㄦ潵媯鏌ユ簮浠g爜鎵鍦ㄨ礬寰勶紝autoscan 浼?xì)鑷姩漶旂敓锛屼竴鑸棤欏諱慨鏀瑰畠銆?nbsp;
AM_INIT_AUTOMAKE(PACKAGE,VERSION) 
榪欎釜鏄嬌鐢?Automake 鎵
蹇呭鐨勫畯錛孭ACKAGE 鏄墍瑕佷駭鐢熻蔣浠跺浠剁殑鍚嶇О錛孷ERSION 鏄増鏈紪鍙楓?nbsp;
AC_PROG_CC 
媯鏌ョ郴緇熷彲鐢ㄧ殑C緙栬瘧鍣紝鑻ユ簮浠g爜鏄敤C鍐欑殑灝遍渶瑕佽繖涓畯銆?nbsp;
AC_OUTPUT(FILE) 
璁劇疆 configure 鎵瑕佷駭鐢熺殑鏂囦歡錛岃嫢鏄?/span>Makefile 錛宑onfigure 渚夸細(xì)鎶婂畠媯鏌ュ嚭鏉ョ殑緇撴灉甯﹀叆  Makefile.in 鏂囦歡鍚庝駭鐢熷悎閫傜殑 Makefile銆?nbsp;
瀹為檯涓婏紝榪欓噷浣跨敤 Automake 鏃訛紝榪橀渶瑕佷竴浜涘叾浠栫殑瀹忥紝榪欎簺棰濆鐨勫畯鎴戜滑鐢?aclocal鏉ュ府鍔╀駭鐢熴傚煼琛?aclocal浼?xì)漶旂敓aclocal.m4 鏂囦歡錛屽鏋滄棤鐗瑰埆鐨勭敤閫旓紝鍙互涓嶉渶瑕佷慨鏀瑰畠錛岀敤 aclocal 鎵浜х敓鐨勫畯浼?xì)鍛婅?Automake濡備綍鍔ㄤ綔銆?nbsp;

鏈変簡 configure.in 鍙?aclocal.m4涓や釜鏂囦歡浠ュ悗錛屼究鍙互鎵ц autoconf鏉ヤ駭鐢?configure 鏂囦歡浜嗐?br style="FONT: 12px song, Verdana">
Makefile.am
         Automake 浼?xì)鏍规?configure.in 涓殑瀹忔妸Makefile.am 杞垚 Makefile.in 鏂囦歡銆?Makefile.am 鏂囦歡瀹氫箟鎵瑕佷駭鐢熺殑鐩爣錛?nbsp;

AUTOMAKE_OPTIONS 
璁劇疆 automake 鐨勯夐」銆?br style="FONT: 12px song, Verdana">Automake 涓昏鏄府鍔╁紑鍙?GNU 杞歡鐨勪漢鍛樻潵緇存姢杞歡錛屾墍浠ュ湪鎵ц automake 鏃訛紝浼?xì)妫鏌ョ洰褰曚笅鏄惁瀛樺湪鏍囧噯 GNU 杞歡涓簲鍏峰鐨勬枃浠訛紝渚嬪 'NEWS'銆?AUTHOR'銆?ChangeLog' 絳夋枃浠躲?/span>璁劇疆 foreign 鏃訛紝automake 浼?xì)鏀圭敤涓鑸蔣浠剁殑鏍囧噯鏉ユ鏌ャ?nbsp;
bin_PROGRAMS 
瀹氫箟瑕佷駭鐢熺殑鎵ц鏂囦歡鍚嶃傚鏋滆浜х敓澶氫釜鎵ц鏂囦歡錛屾瘡涓枃浠跺悕鐢ㄧ┖鐧界闅斿紑銆?nbsp;
hello_SOURCES 
瀹氫箟 
'hello' 榪欎釜鎵ц紼嬪簭鎵闇瑕佺殑鍘熷鏂囦歡銆傚鏋?'hello'榪欎釜紼嬪簭鏄敱澶氫釜鍘熷鏂囦歡鎵浜х敓錛屽繀闋堟妸瀹冩墍鐢ㄥ埌鐨勬墍鏈夊師濮嬫枃浠墮兘鍒楀嚭鏉ワ紝浠ョ┖鐧界闅斿紑銆傚亣璁?'hello' 榪橀渶瑕?'hello.c'銆?main.c'銆?hello.h' 涓変釜鏂囦歡鐨勮瘽錛屽垯瀹氫箟 
hello_SOURCES= hello.c main.c hello.h 
濡傛灉瀹氫箟澶氫釜鎵ц鏂囦歡錛屽垯瀵規(guī)瘡涓墽琛岀▼搴忛兘瑕佸畾涔夌浉瀵圭殑filename_SOURCES銆?nbsp;

緙栬緫濂?Makefile.am 鏂囦歡錛屽氨鍙互鐢?/span> automake --add-missing鏉ヤ駭鐢?Makefile.in銆傚姞涓?--add-missing 閫夐」鏉ュ憡璇?automake欏轟究鍋囧鍖呰涓涓蔣浠舵墍蹇呴』鐨勬枃浠躲侫utomake浜х敓鐢熷嚭渚嗙殑 Makefile.in 鏂囦歡鏄畬鍏ㄧ鍚?GNU Makefile 鐨勬儻渚嬶紝鍙鎵ц configure榪欎釜shell script 渚垮彲浠ヤ駭鐢熷悎閫傜殑 Makefile 鏂囦歡浜嗐?nbsp;


杞嚜錛?br>http://blog.chinaunix.net/u2/76292/showart.php?id=2099939



chatler 2009-11-21 18:33 鍙戣〃璇勮
]]> 99久久人人爽亚洲精品美女| 少妇久久久久久久久久| 99久久精品无码一区二区毛片 | 久久不见久久见免费影院www日本| 久久精品人人槡人妻人人玩AV | 国产精久久一区二区三区| 久久亚洲高清综合| 国产精品美女久久久久| 理论片午午伦夜理片久久| 久久久久高潮毛片免费全部播放| 狠狠色丁香婷婷久久综合不卡| 久久久久亚洲AV成人网人人软件 | 精品国产青草久久久久福利 | AAA级久久久精品无码区| 欧美亚洲国产精品久久高清| 9久久9久久精品| 久久久久国产精品人妻| 久久久无码精品亚洲日韩软件| 午夜久久久久久禁播电影| 中文字幕无码av激情不卡久久| 久久福利青草精品资源站| 亚洲综合伊人久久综合| 天天做夜夜做久久做狠狠| 国产精品视频久久久| 久久久噜噜噜久久熟女AA片| 久久天天婷婷五月俺也去| 色综合久久天天综合| 久久丫精品国产亚洲av| 久久久久AV综合网成人| 亚洲国产精品综合久久网络| 精品久久久久久久中文字幕| 996久久国产精品线观看| 伊人色综合久久天天人手人婷| 久久精品视频91| 精品无码久久久久久国产| 久久亚洲精品中文字幕三区| 欧美一区二区三区久久综| 人妻精品久久无码专区精东影业| 国产精品久久久久久久app| 亚洲国产精品成人久久蜜臀| 亚洲а∨天堂久久精品|