mirror of
https://github.com/proski/madwifi
synced 2024-11-24 23:40:00 +03:00
2c0d8db912
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2721 0192ed92-7a03-0410-a25b-9323aeb14dbd
52 lines
1.0 KiB
Makefile
52 lines
1.0 KiB
Makefile
#
|
|
# Makefile for the Atheros WLAN driver.
|
|
#
|
|
|
|
obj ?= .
|
|
src ?= .
|
|
srctree ?= .
|
|
|
|
TOP = $(srctree)/$(src)/..
|
|
|
|
include $(TOP)/BuildCaps.inc
|
|
include $(TOP)/ath_hal/ah_target.inc
|
|
|
|
ATH_HAL=$(TOP)/ath_hal
|
|
COMPAT= $(TOP)/include
|
|
HAL= $(TOP)/hal
|
|
|
|
INCS = -include $(COMPAT)/compat.h -I$(COMPAT)
|
|
INCS += -I$(ATH_HAL) -I$(HAL)
|
|
|
|
EXTRA_CFLAGS += $(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\" \
|
|
-DTARGET=\"$(TARGET)\"
|
|
|
|
ifneq (,$(filter xscale% arm%,$(TARGET)))
|
|
LDFLAGS := --no-warn-mismatch
|
|
endif
|
|
|
|
ifneq ($(VERSION).$(PATCHLEVEL),2.4)
|
|
obj-$(CONFIG_ATHEROS) += ath_hal.o
|
|
ath_hal-objs := ah_os.o $(TARGET).hal.o
|
|
|
|
hostprogs-y := uudecode
|
|
host-progs := $(hostprogs-y)
|
|
endif
|
|
|
|
ifeq ($(VERSION).$(PATCHLEVEL),2.4)
|
|
obj-$(CONFIG_ATHEROS) += ah_os.o $(TARGET).hal.o
|
|
|
|
O_TARGET := ath_hal.o
|
|
include $(TOPDIR)/Rules.make
|
|
|
|
export-objs := ah_os.o
|
|
list-multi := ath_hal.o
|
|
|
|
uudecode: uudecode.c
|
|
$(HOSTCC) $(HOSTCFLAGS) -o $@ $<
|
|
endif
|
|
|
|
$(obj)/$(TARGET).hal.o: $(HAL)/public/$(TARGET).hal.o.uu $(obj)/uudecode
|
|
$(Q)echo "deps_$@ :=" >$(@D)/.$(@F).cmd
|
|
$(Q)$(obj)/uudecode -o $@ $<
|