Chinaunix首页 | 论坛 | 博客
  • 博客访问: 68175
  • 博文数量: 22
  • 博客积分: 265
  • 博客等级: 二等列兵
  • 技术积分: 190
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-26 12:20
文章分类

全部博文(22)

文章存档

2012年(21)

2011年(1)

分类: LINUX

2012-11-25 17:53:21

# Makefile2.6 ifneq ($(KERNELRELEASE),) 
#kbuild syntax. dependency relationshsip of files and target modules are listed here. 
mymodule-objs := hello.o 
obj-m := hello.o 
else 
PWD := $(shell pwd) 
KVER ?= $(shell uname -r) 
KDIR := /lib/modules/$(KVER)/build 
all:
 $(MAKE) -C $(KDIR) M=$(PWD) 
clean:
 rm -rf .*.cmd *.o *.mod.c *.ko .tmp_versions endif
用这个makefile文件解决了我的问题
阅读(1625) | 评论(0) | 转发(2) |
0

上一篇:关于NAT方式配置修改

下一篇:没有了

给主人留下些什么吧!~~