# Makefile for the prism54 softmac driver

# assign those variables so that they are not overwritten when this
# makefile is called again from the kernel tree

#autotest for madwifi stack presence. Can be overridden on the command line
MADWIFI		?= $(shell test -d $(src)/../net80211 && echo 1 || echo 0)


ifneq ($(MADWIFI),0)
# Default path for finding madwifi
MADWIFI_PATH    ?= $(src)/../net80211

# Add madwifi to the include path
# needed for net80211
MADWIFI_INCS	:= -I$(MADWIFI_PATH)
MADWIFI_INCS	+= -I$(src)/..
MADWIFI_INCS	+= -isystem $(MADWIFI_PATH)/compat/
MADWIFI_INCS    += -include $(MADWIFI_PATH)/compat/compat.h 
MADWIFI_COPTS	:= -D__linux__ -DMADWIFI
EXTRA_CFLAGS   	+= $(MADWIFI_INCS) $(MADWIFI_COPTS)
endif

EXTRA_CFLAGS    += -I$(src) -Wall



obj-$(CONFIG_PRISM54_USB) 	+= islsm.o islsm_pci.o islsm_usb.o

islsm-objs 	:= islsm_netdev.o islsm_ioctl.o islsm_output.o islsm_input.o
islsm_usb-objs 	:= islusb_init.o islusb_transport.o
islsm_pci-objs 	:= islpci_hotplug.o islpci_dev.o isl_38xx.o
