Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1676773
  • 博文数量: 1493
  • 博客积分: 38
  • 博客等级: 民兵
  • 技术积分: 5834
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-19 17:28
文章分类

全部博文(1493)

文章存档

2016年(11)

2015年(38)

2014年(137)

2013年(253)

2012年(1054)

2011年(1)

分类:

2012-11-27 09:01: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文件解决了我的问题
阅读(203) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~