# ARCADEmini USB driver for Linux
# version 1.2.6 date 2007-11-17
# part of the ARCADEmini project - http[s]://arcademini.schuermans.info/
# Copyright (C) 2003-2006 Stefan Schuermans <1stein@schuermans.info>
# Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html

KERNEL_VER  := $(shell uname -r)
KERNEL_LINK := build
KERNEL_SRC  := /lib/modules/$(KERNEL_VER)/$(KERNEL_LINK)
PWD := $(shell pwd)
EXTRA_CFLAGS=-Wall

obj-m := am_usb.o

default:
	$(MAKE) -C $(KERNEL_SRC) SUBDIRS=$(PWD) modules

clean:
	rm -f *.[oas] .*.flags *.ko .*.cmd .*.d .*.tmp *.mod.c Module.symvers
	rm -rf .tmp_versions

