#  Copyright 2001, Broadcom Corporation
#  All Rights Reserved.
#  
#
# Makefile for the Broadcom wl driver
#
# $Id: Makefile,v 1.2.2.1 2003/06/19 00:58:26 noname Exp $
#

O_TARGET	:= wl_ap.o

export-objs	:=
obj-y		:= wl_linux.o wlc.o d11ucode.o wlc_phy.o wlc_rate.o wlc_led.o wlc_cmn_ioctl.o wlc_security.o wlc_tkhash.o
obj-m		:= $(O_TARGET)

SRCBASE		:= $(TOPDIR)/../..
EXTRA_CFLAGS	+= -I$(SRCBASE)/include
EXTRA_CFLAGS	+= -DDMA

EXTRA_CFLAGS	+= -DAP

# Search for sources under src/wl/sys or objects under src/wl/linux
ifneq ($(wildcard $(SRCBASE)/wl/sys),)
EXTRA_CFLAGS	+= -I$(SRCBASE)/wl/sys
vpath %.c $(SRCBASE)/wl/sys $(SRCBASE)/shared
else
obj-y		:= $(foreach obj,$(obj-y),$(SRCBASE)/wl/linux_ap/$(obj))
endif

include $(TOPDIR)/Rules.make
