2 # Makefile for wlags49_h2_cs.ko and wlags49_h25_cs.ko
4 # Default build for Hermes-II base cards (possibly identified with
5 # "manfid: 0x0156, 0x0003" in "pccardctl ident" output), comment
8 # If you want to build for Hermes-II.5 base cards (possibly identified with
9 # "manfid: 0x0156, 0x0004" in "pccardctl ident" output), uncomment
12 # If you want to build AP support (untested), comment out -DSTA_ONLY
14 INSTALLDIR
:= /lib
/modules
/$(shell uname
-r
)/kernel
/drivers
/net
/wireless
15 ccflags-y
:= -I
$(KERNELDIR
)/include
16 ccflags-y
+= -I
$(src
) \
28 ifeq ($(findstring HERMES25
,$(ccflags-y
)),)
29 WLNAME
:= wlags49_h2_cs
30 $(WLNAME
)-y
:= sta_h2.o
31 ifeq ($(findstring STA_ONLY
,$(ccflags-y
)),)
32 $(WLNAME
)-y
+= ap_h2.o
36 $(WLNAME
)-y
:= sta_h25.o
37 ifeq ($(findstring STA_ONLY
,$(ccflags-y
)),)
38 $(WLNAME
)-y
+= ap_h25.o
42 # If KERNELRELEASE is defined, we've been invoked from the
43 # kernel build system and can use its language.
44 ifneq ($(KERNELRELEASE
),)
48 $(WLNAME
)-y
+= wl_profile.o \
60 $(WLNAME
)-$(CONFIG_SYSFS
) += wl_sysfs.o
62 # Otherwise we were called directly from the command
63 # line; invoke the kernel build system.
65 KERNELDIR ?
= /lib
/modules
/$(shell uname
-r
)/build
69 $(MAKE
) -C
$(KERNELDIR
) M
=$(PWD
) modules
73 rm -fr
*.o
*.ko
*.mod.c
*.mod.o .
*.
*.cmd Module.symvers \
74 Module.markers modules.order .tmp_versions
78 install -d
$(INSTALLDIR
)
79 install -m
0644 -o root
-g root
$(WLNAME
).ko
$(INSTALLDIR
)