mirror of
https://github.com/proski/madwifi
synced 2024-11-22 14:31:22 +03:00
2913278884
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
26 lines
407 B
Makefile
26 lines
407 B
Makefile
obj := $(firstword $(obj) $(SUBDIRS) .)
|
|
TOP = $(obj)/..
|
|
|
|
obj-y := ccmp/ tkip/ wep/
|
|
|
|
include $(TOP)/Makefile.inc
|
|
|
|
modules:
|
|
ifdef LINUX24
|
|
for i in $(obj-y); do \
|
|
$(MAKE) -C $$i || exit 1; \
|
|
done
|
|
else
|
|
$(MAKE) -C $(KERNELPATH) SUBDIRS=$(shell pwd) modules
|
|
endif
|
|
|
|
install:
|
|
for i in $(obj-y); do \
|
|
$(MAKE) -C $$i install || exit 1; \
|
|
done
|
|
|
|
clean:
|
|
for i in $(obj-y); do \
|
|
$(MAKE) -C $$i clean; \
|
|
done
|