]>
Commit | Line | Data |
---|---|---|
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 | |
3 | @@ -5,15 +5,13 @@ | |
4 | SCRIPTSDIR=$(TOPDIR)/scripts | |
5 | INC=$(TOPDIR)/src/includes | |
6 | VERSION=3.4.1.1 | |
7 | -MINOR_NUMBER=$(shell uname -r | cut -d . -f 3 | cut -d - -f 1) | |
8 | ID:=$(shell id -u) | |
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 | |
13 | ||
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 | |
20 | @@ -104,34 +102,15 @@ | |
21 | $(all_targets): %: | |
22 | @echo Building $@ | |
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 \ | |
27 | - fi | |
28 | @if [ ! -d $(OBJDIR)/$@/release ]; then \ | |
29 | mkdir $(OBJDIR)/$@/release; \ | |
30 | for f in $(srcs); do (cd $(OBJDIR)/$@/release; ln -s $(SUBDIRS)/$$f .); done \ | |
31 | fi | |
32 | - @echo -e "\tDebug" | |
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; \ | |
38 | - else \ | |
39 | - echo -e $(debug_submake_old) >> $(OBJDIR)/$@/debug/Makefile; \ | |
40 | - fi;\ | |
41 | - (cd $(OBJDIR)/$@/debug; make) ; \ | |
42 | - fi | |
43 | @echo -e "\tRelease" | |
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; \ | |
49 | - else \ | |
50 | - echo -e $(release_submake_old) >> $(OBJDIR)/$@/release/Makefile; \ | |
51 | - fi;\ | |
52 | + echo -e $(release_submake_new) >> $(OBJDIR)/$@/release/Makefile; \ | |
53 | (cd $(OBJDIR)/$@/release; make) ; \ | |
54 | fi | |
55 |