# $Id: Makefile,v 1.33 2005/06/07 21:42:26 sagamore Exp $
#
# Copyright (C) 2004 Zydas Inc.
# Copyright (C) 2005 Arno WILLIG <akw@users.sourceforge.net>
# Copyright (C) 2005 Dimitriy KOROVKIN <korovkin@users.sourceforge.net>
# Copyright (C) 2005 Todor T. ZVISKOV <warderx@users.sourceforge.net>
# Copyright (C) 2005 Markus KARG <markus-karg@users.sourceforge.net>
# Copyright (C) 2005 Roman Kurakin <sagamore@users.sourceforge.net>
#
# This file is part of the ZD1211 Wireless USB Driver for Linux.
#
# This driver is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This driver is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this driver; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

MOBJS := zd1205.o zdasocsvc.o zdauthreq.o zdauthrsp.o zdmmrx.o zdshared.o \
	 zdhci.o zdglobal.o zdencrypt.o zdpmfilter.o zdpsmon.o zdsynch.o \
	 zdbuf.o zdhw.o zddebug.o zdtkipseed.o zdmic.o zdusb.o zd1211.o

obj-m := zd1211_mod.o
zd1211_mod-objs := $(MOBJS)

EXTRA_CFLAGS += -I..
EXTRA_CFLAGS += -DAMAC
EXTRA_CFLAGS += -DGCCK
EXTRA_CFLAGS += -DOFDM
EXTRA_CFLAGS += -DUSE_EP4_SET_REG
EXTRA_CFLAGS += -DfTX_GAIN_OFDM=0
EXTRA_CFLAGS += -Wno-unused

modules:	zd1211_mod.o

zd1211_mod.o:	$(zd1211_mod-objs)
	$(LD) -r $(zd1211_mod-objs) -o $@

ifneq ($(MAKECMDGOALS),clean)
ifeq ($(TOPDIR)/Rules.make,$(wildcard $(TOPDIR)/Rules.make))
include $(TOPDIR)/Rules.make
endif
endif

clean:
	rm -rf *.o *.ko .*.cmd *.mod.c .??*
