gyh2002
驱动牛犊
驱动牛犊
  • 注册日期2002-11-05
  • 最后登录2005-03-01
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1100回复:0

关天makefile install的问题!

楼主#
更多 发布于:2003-03-20 23:18
在makefile文件中如下写:
VERSIONFILE = $(INCLUDEDIR)/linux/version.h
VERSION = $(shell awk -F\\\" \'/REL/ {print $$2}\'$(VERSIONFILE)
INSTALLDIR = /lib/modules/$(VERSION)/misc

install:
          install -d $(INSTALLDIR)
          install -c (OBJS) $(INSTALLDIR)

上述是按照linux设备驱动(第二版)上书写的,可在以下运行之后出现错误:
#make install
install:/lib/modules/2.4.18-3smp 2.4.18-3BOOT 2.4.18-3bigmem 2.4.18-3debug 2.4.18-3/misc
/2.4.18-3smp:is a directory
/2.4.18-3BOOT:is a directory
/2.4.18-3bigmem:is a directory
/2.4.18-3debug:is a directory
出现错误,并没有按想象中那样存在:/lib/modules/2.4.18-3/misc
如何修改才能只产生/2.4.18-3而不出现上述的目录呢?使编译通过呢?
再有install -c 这个参数是什么意思?


[编辑 -  3/20/03 by  gyh2002]
游客

返回顶部