Chinaunix首页 | 论坛 | 博客
  • 博客访问: 62915
  • 博文数量: 17
  • 博客积分: 1430
  • 博客等级: 上尉
  • 技术积分: 140
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-13 12:56
文章分类
文章存档

2011年(1)

2008年(16)

我的朋友

分类: LINUX

2008-05-04 22:41:33

今天改造了一下Makefile,现在只需要运行make就可以了
 

# If KERNELRELEASE is defined, we've been invoked from the

# kernel build system and can use its language.

ifneq ($(KERNELRELEASE),)

 obj-m := hello_world.o
# Otherwise we were called directly from the command

# line; invoke the kernel build system.

else

 KERNELDIR ?= /usr/src/linux-2.6.8.1-zzm
 PWD := $(shell pwd)

default:
    $(MAKE) -C $(KERNELDIR) M=$(PWD) modules

clean:
    $(MAKE) -C $(KERNELDIR) M=$(PWD) clean

endif

另外:启动脚本集中在 /etc/ 和 /usr/etc/ 两个文件夹下

阅读(622) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~