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

KERNEL_VER  := $(shell uname -r)
KERNEL_LINK := $(shell test -e /lib/modules/${KERNEL_VER}/source/ && echo source || echo 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 
	rm -rf .tmp_versions

