#
# Makefile for the SW RF Switch kernel modules
#
# NOTE: This make file can serve as both an external Makefile (launched
#       directly by the user), or as the sub-dir Makefile used by the kernel
# 	build system.

KERNEL_SOURCE ?= /lib/modules/$(shell uname -r)/build

CONFIG_AVERATEC_5100P=m
CONFIG_PACKARDBELL_E5=m



list-m :=
list-$(CONFIG_AVERATEC_5100P) += av5100
list-$(CONFIG_PACKARDBELL_E5) += pbe5

ifeq ($(CONFIG_USERMODE),)
obj-$(CONFIG_AVERATEC_5100P) += av5100.o
obj-$(CONFIG_PACKARDBELL_E5) += pbe5.o
endif

modules modules_install clean:
	$(MAKE) -C $(KERNEL_SOURCE) SUBDIRS=$(shell pwd) $@

install: modules_install

