1 --- atmelwlandriver/Makefile.kernelv2.6.orig 2005-11-20 19:57:50.225388500 +0100
2 +++ atmelwlandriver/Makefile.kernelv2.6 2005-11-20 19:57:51.957496750 +0100
4 SCRIPTSDIR=$(TOPDIR)/scripts
5 INC=$(TOPDIR)/src/includes
7 -MINOR_NUMBER=$(shell uname -r | cut -d . -f 3 | cut -d - -f 1)
9 tmpDIR:=/tmp/atm$(shell date +%S.%s)
10 tmpDES:=$(tmpDIR)/atmelwlandriver
11 LVNET = $(shell pwd)/src/apps/cmd_line
12 WINTER = $(shell pwd)/src/apps/winter
14 -KERNEL_VERSION:=$(shell uname -r)
15 -KERNEL_SOURCE:=/lib/modules/$(KERNEL_VERSION)/build
16 +KERNEL_SOURCE:=/usr/src/linux
17 PCMCIA_DES = $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/pcmcia
18 PCI_DES = $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/kernel/drivers/net
19 USB_DES = $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/kernel/drivers/usb
23 @if [ ! -d $(OBJDIR)/$@ ]; then echo Bootstraping target $@; mkdir $(OBJDIR)/$@; fi
24 - @if [ ! -d $(OBJDIR)/$@/debug ]; then \
25 - mkdir $(OBJDIR)/$@/debug; \
26 - for f in $(srcs); do (cd $(OBJDIR)/$@/debug; ln -s $(SUBDIRS)/$$f .); done \
28 @if [ ! -d $(OBJDIR)/$@/release ]; then \
29 mkdir $(OBJDIR)/$@/release; \
30 for f in $(srcs); do (cd $(OBJDIR)/$@/release; ln -s $(SUBDIRS)/$$f .); done \
33 - @if [ "$(buildonly)" == debug ] || [ "$(buildonly)" == "" ]; then \
34 - echo obj-m=$@.o > $(OBJDIR)/$@/debug/Makefile; \
35 - echo all: >> $(OBJDIR)/$@/debug/Makefile; \
36 - if [ "$(MINOR_NUMBER)" -gt "5" ]; then \
37 - echo -e $(debug_submake_new) >> $(OBJDIR)/$@/debug/Makefile; \
39 - echo -e $(debug_submake_old) >> $(OBJDIR)/$@/debug/Makefile; \
41 - (cd $(OBJDIR)/$@/debug; make) ; \
44 @if [ "$(buildonly)" == release ] || [ "$(buildonly)" == "" ]; then \
45 echo obj-m=$@.o > $(OBJDIR)/$@/release/Makefile; \
46 echo all: >> $(OBJDIR)/$@/release/Makefile; \
47 - if [ "$(MINOR_NUMBER)" -gt "5" ]; then \
48 - echo -e $(release_submake_new) >> $(OBJDIR)/$@/release/Makefile; \
50 - echo -e $(release_submake_old) >> $(OBJDIR)/$@/release/Makefile; \
52 + echo -e $(release_submake_new) >> $(OBJDIR)/$@/release/Makefile; \
53 (cd $(OBJDIR)/$@/release; make) ; \