Adjust build system for Linux 2.6.26

During the second stage of the module build, Linux 2.6.26 does not
define $(obj).  Try using $(SUBDIRS) as $(obj) before falling back to
the current directory.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3603 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2008-05-05 02:00:56 +00:00
parent 32df5a67ce
commit 2913278884
13 changed files with 13 additions and 52 deletions

View File

@ -40,10 +40,7 @@
# Makefile for the HAL-based Atheros driver.
#
ifeq ($(obj),)
obj= .
endif
obj := $(firstword $(obj) $(SUBDIRS) .)
TOP = $(obj)
ifneq (svnversion.h,$(MAKECMDGOALS))

View File

@ -40,10 +40,7 @@
# Makefile for the Atheros WLAN driver.
#
ifeq ($(obj),)
obj= .
endif
obj := $(firstword $(obj) $(SUBDIRS) .)
TOP = $(obj)/..
ifeq ($(strip $(BUS)),AHB)

View File

@ -40,10 +40,7 @@
# Makefile for the Atheros WLAN driver.
#
ifeq ($(obj),)
obj= .
endif
obj := $(firstword $(obj) $(SUBDIRS) .)
TOP = $(obj)/..
include $(TOP)/Makefile.inc

View File

@ -1,7 +1,4 @@
ifeq ($(obj),)
obj= .
endif
obj := $(firstword $(obj) $(SUBDIRS) .)
TOP = $(obj)/..
obj-y := amrr/ onoe/ sample/ minstrel/

View File

@ -40,10 +40,7 @@
#
# Makefile for the Atheros Rate Control Support.
#
ifeq ($(obj),)
obj= .
endif
obj := $(firstword $(obj) $(SUBDIRS) .)
TOP = $(obj)/../..
obj-m += ath_rate_amrr.o

View File

@ -38,10 +38,7 @@
#
# Makefile for the Atheros Rate Control Support.
#
ifeq ($(obj),)
obj= .
endif
obj := $(firstword $(obj) $(SUBDIRS) .)
TOP = $(obj)/../..
obj-m += ath_rate_minstrel.o

View File

@ -40,10 +40,7 @@
#
# Makefile for the Atheros Rate Control Support.
#
ifeq ($(obj),)
obj= .
endif
obj := $(firstword $(obj) $(SUBDIRS) .)
TOP = $(obj)/../..
obj-m += ath_rate_onoe.o

View File

@ -38,10 +38,7 @@
#
# Makefile for the Atheros Rate Control Support.
#
ifeq ($(obj),)
obj= .
endif
obj := $(firstword $(obj) $(SUBDIRS) .)
TOP = $(obj)/../..
obj-m += ath_rate_sample.o

View File

@ -39,10 +39,7 @@
#
# Makefile for the 802.11 WLAN modules.
#
ifeq ($(obj),)
obj= .
endif
obj := $(firstword $(obj) $(SUBDIRS) .)
TOP = $(obj)/..
#
# There is one authenticator mechanism: an in-kernel implementation

View File

@ -1,7 +1,4 @@
ifeq ($(obj),)
obj= .
endif
obj := $(firstword $(obj) $(SUBDIRS) .)
TOP = $(obj)/..
obj-y := ccmp/ tkip/ wep/

View File

@ -1,10 +1,7 @@
#
# Makefile for the CCMP regression test.
#
ifeq ($(obj),)
obj= .
endif
obj := $(firstword $(obj) $(SUBDIRS) .)
TOP = $(obj)/../..
obj-m += ath_test_ccmp.o

View File

@ -1,10 +1,7 @@
#
# Makefile for the TKIP regression test.
#
ifeq ($(obj),)
obj= .
endif
obj := $(firstword $(obj) $(SUBDIRS) .)
TOP = $(obj)/../..
obj-m += ath_test_tkip.o

View File

@ -1,10 +1,7 @@
#
# Makefile for the WEP regression test.
#
ifeq ($(obj),)
obj= .
endif
obj := $(firstword $(obj) $(SUBDIRS) .)
TOP = $(obj)/../..
obj-m += ath_test_wep.o