LinuxÖ®Makefile (Èý)
make µÄÔËÐÐ
——————
Ò»°ãÀ´Ëµ£¬×î¼òµ¥µÄ¾ÍÊÇÖ±½ÓÔÚÃüÁîÐÐÏÂÊäÈëmakeÃüÁmakeÃüÁî»áÕÒµ±Ç°Ä¿Â¼µÄmakefileÀ´Ö´ÐУ¬Ò»Çж¼ÊÇ×Ô¶¯µÄ¡£µ«Ò²ÓÐʱÄãÒ²ÐíÖ»ÏëÈÃmakeÖرàÒëijЩÎļþ£¬¶ø²»ÊÇÕû¸ö¹¤³Ì£¬¶øÓÖÓеÄʱºòÄãÓм¸Ì×±àÒë¹æÔò£¬ÄãÏëÔÚ²»Í¬µÄʱºòʹÓò»Í¬µÄ±àÒë¹æÔò£¬µÈµÈ¡£±¾Õ½ھÍÊǽ²ÊöÈçºÎʹÓÃmakeÃüÁîµÄ¡£
Ò»¡¢makeµÄÍ˳öÂë
makeÃüÁîÖ´ÐкóÓÐÈý¸öÍ˳öÂ룺
0 —— ±íʾ³É¹¦Ö´ÐС£
1 —— Èç¹ûmakeÔËÐÐʱ³öÏÖÈκδíÎó£¬Æä·µ»Ø1¡£
2 —— Èç¹ûÄãʹÓÃÁËmakeµÄ“-q”Ñ¡Ï²¢ÇÒmakeʹµÃһЩĿ±ê²»ÐèÒª¸üУ¬ÄÇô·µ»Ø2¡£
MakeµÄÏà¹Ø²ÎÊýÎÒÃÇ»áÔÚºóÐøÕ½ÚÖн²Êö¡£
¶þ¡¢Ö¸¶¨Makefile
Ç°ÃæÎÒÃÇ˵¹ý£¬GNU makeÕÒѰĬÈϵÄMakefileµÄ¹æÔòÊÇÔÚµ±Ç°Ä¿Â¼ÏÂÒÀ´ÎÕÒÈý¸öÎļþ——“GNUmakefile”¡¢“makefile”ºÍ“Makefile”¡£Æ䰴˳ÐòÕÒÕâÈý¸öÎļþ£¬Ò»µ©ÕÒµ½£¬¾Í¿ªÊ¼¶ÁÈ¡Õâ¸öÎļþ²¢Ö´ÐС£
µ±Ç°£¬ÎÒÃÇÒ²¿ÉÒÔ¸ømakeÃüÁîÖ¸¶¨Ò»¸öÌØÊâÃû×ÖµÄMakefile¡£Òª´ïµ½Õâ¸ö¹¦ÄÜ£¬ÎÒÃÇҪʹÓÃmakeµÄ“-f”»òÊÇ“--file”²ÎÊý£¨“--makefile”²ÎÊýÒ²ÐУ©¡£ÀýÈ磬ÎÒÃÇÓиömakefileµÄÃû×ÖÊÇ“hchen.mk”£¬ÄÇô£¬ÎÒÃÇ¿ÉÒÔÕâÑùÀ´ÈÃmakeÀ´Ö´ÐÐÕâ¸öÎļþ£º
make –f hchen.mk
Èç¹ûÔÚmakeµÄÃüÁîÐÐÊÇ£¬Äã²»Ö»Ò»´ÎµØʹÓÃÁË“-f”²ÎÊý£¬ÄÇô£¬ËùÓÐÖ¸¶¨µÄmakefile½«»á±»Á¬ÔÚÒ»Æ𴫵ݸømakeÖ´ÐС£
Èý¡¢Ö¸¶¨Ä¿±ê
Ò»°ãÀ´Ëµ£¬makeµÄ×îÖÕÄ¿±êÊÇmakefileÖеĵÚÒ»¸öÄ¿±ê£¬¶øÆäËüÄ¿±êÒ»°ãÊÇÓÉÕâ¸öÄ¿±êÁ¬´ø³öÀ´µÄ¡£ÕâÊÇmakeµÄĬÈÏÐÐΪ¡£µ±È»£¬Ò»°ãÀ´Ëµ£¬ÄãµÄmakefileÖеĵÚÒ»¸öÄ¿±êÊÇÓÉÐí¶à¸öÄ¿±ê×é³É£¬Äã¿ÉÒÔָʾmake£¬ÈÃÆäÍê³ÉÄãËùÖ¸¶¨µÄÄ¿±ê¡£Òª´ïµ½ÕâһĿµÄºÜ¼òµ¥£¬ÐèÔÚmakeÃüÁîºóÖ±½Ó¸úÄ¿±êµÄÃû×־ͿÉÒÔÍê³É£¨ÈçÇ°ÃæÌáµ½µÄ“make clean”ÐÎʽ£©
ÈκÎÔÚmakefileÖеÄÄ¿±ê¶¼¿ÉÒÔ±»Ö¸¶¨³ÉÖÕ¼«Ä¿±ê£¬µ«ÊdzýÁËÒÔ“-”´òÍ·£¬»òÊÇ°üº¬ÁË“=”µÄÄ¿±ê£¬ÒòΪÓÐÕâЩ×Ö·ûµÄÄ¿±ê£¬»á±»½âÎö³ÉÃüÁîÐвÎÊý»òÊDZäÁ¿¡£ÉõÖÁûÓб»ÎÒÃÇÃ÷ȷд³öÀ´µÄÄ¿±êÒ²¿ÉÒÔ³ÉΪmakeµÄÖÕ¼«Ä¿±ê£¬Ò²¾ÍÊÇ˵£¬Ö»Òªmake¿ÉÒÔÕÒµ½ÆäÒþº¬¹æÔòÍƵ¼¹æÔò£¬ÄÇôÕâ¸öÒþº¬Ä¿±êͬÑù¿ÉÒÔ±»Ö¸¶¨³ÉÖÕ¼«Ä¿±ê¡£
ÓÐÒ»¸ömakeµÄ»·
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
1¡¢ ÈçºÎÔÚLinuxϵͳÏÂÌí¼ÓÒ»¸öÕÊ»§£ºÓû§ÃûΪstd02£¬ÃÜÂëΪpwd02?
£º#useradd std02
#passwd std02
³öÏÖÌáʾÊäÈë¿ÚÁîpwd02£¬Ôٴΰ´ÌáʾÊäÈëpwd02
Ò²¿ÉÒÔ:
#useradd -n std02 -p pwd02
2¡¢ н¨Ò»¸ö×ÓĿ¼/home/public£¬ÈÃËü±»ËùÓеÄÓû§¹²Ïí£¬¶øÇÒÓµÓÐËùÓÐȨÏÞ£¬µ«²»Äܱ»·ÇÊôÖ÷ɾ³ý£¿
£º#mkdir /home/public
#chm ......
×î½üÓÉÓÚÐèÒª£¬°Ñ¼¸ÄêÇ°£¨Óеã¿äÕÅ£©µÄEeePc 1000ÄóöÀ´£¬ÏëÔÚËü×Ô´øµÄLinuxϵͳϽøÐбà³Ì¡£ËÖªµÀ¾ÓȻûÓÐGCC±àÒëÆ÷£¬ËùÒÔÔ´Âë°²×°¿Ï¶¨ÊDz»ÐеÄÀ²¡£
ºóÀ´ÔÚÖնˣ¨ctrl+alt+t£©ÀïÊäÈ룺sudo apt-get install gcc
·¢ÏÖÖ§³Öapt-get°²×°Èí¼þ£¬Ö»²»¹ýûÕÒµ½ ......
1¡¢ µ±°ÑÏîÄ¿ÅäÉÏÓòÃûʱ£¬±ØÐë°ÑtomcatµÄ¶Ë¿Ú¸ÄΪ80£¬×¢Òâµ±Ìæ»»ÅäÖÃÎļþʱ£¬Òª¼ÇµÃ°Ñtomcat¶Ë¿Ú¸Äһϡ£
2¡¢ CÅÌϵÄhostsÎļþ£¬ÊÇÅäÖÃÓòÃûÓõģ¬µ±²»ÔÚhostsÅäÖÃÓòÃûʱ£¬windowsϵͳ»áµ½ÍâÍøÈ¥ÕÒ·ûºÏµÄÓòÃû£¬µ±ÔÚhostsÏÂÅäÖÃÓòÃûʱ£¬¾Í²»»áµ½ÍâÍøÈ¥ÕÒÁË¡£
3¡¢ Îļþ¸üеÄÕû¸öÁ÷³Ì£º
£¨1£©£ºÓÃÔ¶³ ......