X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=ath_rate%2Famrr%2FMakefile;h=dff286df1ba035c2445566590031de29d718adcd;hb=60a88a29d694383a1c1d3b93d5203bcd1ad822bc;hp=966c7f16531cf947c3d9bd34df13fa64142e0efc;hpb=2c0d8db912df58c3a1b506e144e2b5d72edec617;p=madwifi%2F.git diff --git a/ath_rate/amrr/Makefile b/ath_rate/amrr/Makefile index 966c7f1..dff286d 100644 --- a/ath_rate/amrr/Makefile +++ b/ath_rate/amrr/Makefile @@ -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 @@ -57,16 +54,19 @@ EXTRA_CFLAGS+= $(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\" -include $(TOPDIR)/Rules.make +.PHONY: all all: $(MAKE) -C $(KERNELPATH) SUBDIRS=$(shell pwd) modules +.PHONY: install install: test -d $(DESTDIR)/$(KMODPATH) || mkdir -p $(DESTDIR)/$(KMODPATH) - install ath_rate_amrr.$(KMODSUF) $(DESTDIR)/$(KMODPATH) + install -m 0644 ath_rate_amrr.$(KMODSUF) $(DESTDIR)/$(KMODPATH) +.PHONY: clean clean: -rm -f *~ *.o *.ko *.mod.c - -rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd + -rm -f modules.order .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd -rm -rf .tmp_versions ath_rate_amrr.o: $(ath_rate_amrr-objs)