blob: 31e1d89a3846be13325aee9375373aabd1aac9ad [file] [log] [blame]
Henk de Groot68c0bdf2009-09-27 11:12:52 +02001#
2# Makefile for wlags49_h2_cs.ko and wlags49_h25_cs.ko
3#
4# Default build for Hermes-II base cards (possibly identified with
5# "manfid: 0x0156, 0x0003" in "pccardctl ident" output), comment
6# -DHERMES25 below
7#
8# If you want to build for Hermes-II.5 base cards (possibly identified with
9# "manfid: 0x0156, 0x0004" in "pccardctl ident" output), uncomment
10# -DHERMES25 below
11#
12# If you want to build AP support (untested), comment out -DSTA_ONLY
13
Tracey Dent76831122010-10-02 12:38:08 -040014ccflags-y := -I$(KERNELDIR)/include
15ccflags-y += -I$(src) \
Henk de Groot68c0bdf2009-09-27 11:12:52 +020016 -DBUS_PCMCIA \
Henk de Groot68c0bdf2009-09-27 11:12:52 +020017 -DUSE_WEXT \
18 -DSTA_ONLY \
19 -DWVLAN_49 \
20# -DHERMES25 \
21# -DDBG \
22# -DDBG_LVL=5 \
23# -DUSE_UIL \
24# -DUSE_PROFILE \
25
Tracey Dent76831122010-10-02 12:38:08 -040026ifeq ($(findstring HERMES25,$(ccflags-y)),)
Henk de Groot68c0bdf2009-09-27 11:12:52 +020027WLNAME := wlags49_h2_cs
28$(WLNAME)-y := sta_h2.o
Tracey Dent76831122010-10-02 12:38:08 -040029ifeq ($(findstring STA_ONLY,$(ccflags-y)),)
Henk de Groot68c0bdf2009-09-27 11:12:52 +020030$(WLNAME)-y += ap_h2.o
31endif
32else
33WLNAME=wlags49_h25_cs
34$(WLNAME)-y := sta_h25.o
Tracey Dent76831122010-10-02 12:38:08 -040035ifeq ($(findstring STA_ONLY,$(ccflags-y)),)
Henk de Groot68c0bdf2009-09-27 11:12:52 +020036$(WLNAME)-y += ap_h25.o
37endif
38endif
39
Henk de Groot68c0bdf2009-09-27 11:12:52 +020040
41obj-m += $(WLNAME).o
42
43$(WLNAME)-y += wl_profile.o \
44 wl_wext.o \
45 wl_priv.o \
46 wl_main.o \
47 wl_enc.o \
48 wl_util.o \
49 wl_netdev.o \
50 wl_cs.o \
51 mmd.o \
52 hcf.o \
53 dhf.o
54
55$(WLNAME)-$(CONFIG_SYSFS) += wl_sysfs.o