Henk de Groot | 68c0bdf | 2009-09-27 11:12:52 +0200 | [diff] [blame] | 1 | # |
| 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 Dent | 9c36d72 | 2010-10-02 12:38:09 -0400 | [diff] [blame] | 14 | ccflags-y := -I$(KERNELDIR)/include |
| 15 | ccflags-y += -I$(src) \ |
Henk de Groot | 68c0bdf | 2009-09-27 11:12:52 +0200 | [diff] [blame] | 16 | -DBUS_PCMCIA \ |
Henk de Groot | 68c0bdf | 2009-09-27 11:12:52 +0200 | [diff] [blame] | 17 | -DUSE_WEXT \ |
| 18 | -DSTA_ONLY \ |
| 19 | -DWVLAN_49 \ |
| 20 | -DHERMES25 \ |
| 21 | # -DDBG \ |
| 22 | # -DDBG_LVL=5 \ |
| 23 | # -DUSE_UIL \ |
| 24 | # -DUSE_PROFILE \ |
| 25 | |
Tracey Dent | 9c36d72 | 2010-10-02 12:38:09 -0400 | [diff] [blame] | 26 | ifeq ($(findstring HERMES25,$(ccflags-y)),) |
Henk de Groot | 68c0bdf | 2009-09-27 11:12:52 +0200 | [diff] [blame] | 27 | WLNAME := wlags49_h2_cs |
| 28 | $(WLNAME)-y := sta_h2.o |
Tracey Dent | 9c36d72 | 2010-10-02 12:38:09 -0400 | [diff] [blame] | 29 | ifeq ($(findstring STA_ONLY,$(ccflags-y)),) |
Henk de Groot | 68c0bdf | 2009-09-27 11:12:52 +0200 | [diff] [blame] | 30 | $(WLNAME)-y += ap_h2.o |
| 31 | endif |
| 32 | else |
| 33 | WLNAME=wlags49_h25_cs |
| 34 | $(WLNAME)-y := sta_h25.o |
Tracey Dent | 9c36d72 | 2010-10-02 12:38:09 -0400 | [diff] [blame] | 35 | ifeq ($(findstring STA_ONLY,$(ccflags-y)),) |
Henk de Groot | 68c0bdf | 2009-09-27 11:12:52 +0200 | [diff] [blame] | 36 | $(WLNAME)-y += ap_h25.o |
| 37 | endif |
| 38 | endif |
| 39 | |
Henk de Groot | 68c0bdf | 2009-09-27 11:12:52 +0200 | [diff] [blame] | 40 | obj-m += $(WLNAME).o |
| 41 | |
| 42 | $(WLNAME)-y += wl_profile.o \ |
| 43 | wl_wext.o \ |
| 44 | wl_priv.o \ |
| 45 | wl_main.o \ |
| 46 | wl_enc.o \ |
| 47 | wl_util.o \ |
| 48 | wl_netdev.o \ |
| 49 | wl_cs.o \ |
| 50 | mmd.o \ |
| 51 | hcf.o \ |
| 52 | dhf.o |
| 53 | |
| 54 | $(WLNAME)-$(CONFIG_SYSFS) += wl_sysfs.o |
| 55 | |