Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux 2.6 ÄÚºËÄ£¿éµÄMakefile



 
Linux 2.6 ÏÂÄÚºËÄ£¿éµÄMakefile
ÊÕ²Ø



Linux 2.6 ÏÂÄÚºËÄ£¿éµÄMakefile
# Makefile 2.6
obj-m += hello.o
KDIR:=/lib/modules/$(shell uname -r)/build
# PWD=$(shell pwd)
all:
        make -C $(KDIR) M=$(PWD) modules
clean:
        make -C $(KDIR) M=$(PWD) clean
obj-m := hello.o±íʾ±àÒëºóÉú³Éhello.oÄ£¿é¡£
$(KDIR) Ö¸¶¨ÁËÄÚºËÔ´ÂëµÄ·¾¶£¬“M=”±íʾÕâÊǸöÍⲿģ¿é£¬M=$(PWD) Ö¸¶¨Á˸ÃÄ£¿éÎļþËùÔڵķ¾¶¡£
×¢£º makefile
Ô¤¶¨ÒåÁË$(PWD)
±äÁ¿£¬´Ë´¦¿ÉÒÔ²»±ØÖظ´¶¨Òå¡£
Èç¹ûÊǶà¸öÔ´Îļþ±àÒë³öÒ»¸öÄ£¿é£¬¼ÙÉèÄ£¿éÃûÊÇtest.ko£¬ÄÇôԴÎļþÃû²»ÄÜÓÐtest.c
obj-m := test.o
test-objs := file1.o file2.o file3.o
KDIR := /lib/modules/$(shell uname -r)/build
#PWD := $(shell pwd)
all:
        make -C $(KDIR) M=$(PWD) modules
clean:
Ò»¸ö¼òµ¥µÄÄÚºËÄ£¿éʾÀý£ºhello.c
#include <linux/module.h>
#include <linux/init.h>
MODULE_LICENSE("GPL");
static int  __iinit  hello_init(void)
{
   printk("hello, world\n");
   return 0;
}
static void  __exit hello_exit(void)
{
   printk("goodbe\n");
}
module_init(hello_init);
module_exit(hello_exit);


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

Linux ƽ̨ÉϵÄÈí¼þ°ü¹ÜÀí

¼¶±ð£º ³õ¼¶
½­ Ò»·«
(jiangyif@cn.ibm.com
), Èí¼þ¹¤³Ìʦ , IBM
·¶ ÓñÕä
, ¸ß¼¶Èí¼þ¹¤³Ìʦ, IBM
Ëï ÔÃ
, Èí¼þ¹¤³Ìʦ, IBM
2009 Äê 10 ÔÂ 22 ÈÕ
°²
×°£¬Éý¼¶ºÍÐ¶ÔØÓ¦ÓÃÈí¼þÊÇÓ°ÏìÓû§¶Ô²Ù×÷ϵͳÆÀ¼ÛµÄ¾ö¶¨ÐÔÒòËØÖ®Ò»¡£¶ÔÓÚÈÕ½¥Á÷ÐÐµÄ GNU/Linux
²Ù×÷ϵͳ£¬ÓµÓмò½àÇ¿´óµÄÈí¼þ°ü¹ÜÀí»úÖÆ¹¦²»¿Éû¡£±¾ÎÄ´Ó»ù±¾µ ......

linux install memcached,Linux°²×°memcached

rzÉÏ´«Îļþµ½Ä³Ä¿Â¼
½âѹËõ tar zxvf
½øÈëlibeventĿ¼ ./configure
תµ½rootÓû§ make install
½øÈëmemcachedĿ¼ ./configure
תµ½rootÓû§ make install
Æô¶¯memcached
cd /usr/local/bin
/usr/local/bin/memcached -d -P /var/local/logs/memcached.pid -t 4 -m 200 -u root -c 1024 -v >> /var/local/l ......

Linux É豸Îļþ




document.body.oncopy = function() {
if (window.clipboardData) {
setTimeout(function() {
var text = clipboardData.getData("text&qu ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ