#############################################################################
#
#     X-line Linux Kernel driver
#     File:    Makefile
#     Version: 1.0
#     Copyright 2008 Heber Limited (http://www.heber.co.uk)
#
#     This program is free software; you can redistribute it and/or modify it
#     under the terms of the GNU General Public License as published by the
#     Free Software Foundation; either version 2, or (at your option) any
#     later version.
#
#     This program is distributed in the hope that it will be useful, but
#     WITHOUT ANY WARRANTY; without even the implied warranty of
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#     General Public License for more details.
#
#     You should have received a copy of the GNU General Public License along
#     with this program; if not, write to the Free Software Foundation, Inc.,
#     675 Mass Ave, Cambridge, MA 02139, USA.
#
#     Changes:
#     1.0 MJB       First version. Based on X10 Makefile, 20/12/2005
#
#     This makefile is for 2.6 series kernels only. The upper case 'M' is
#     important.
#
#     This makefile should not be called directly rather it needs to be called
#     from within the context of a kernel make. In practice this means that 
#     to build this module you need to have the kernel sources installed and 
#     configured for the target system on the machine used to build this module.
#     To make the driver issue the command:
#
#     make -C /usr/src/linux SUBDIRS=`pwd` modules
#
#     from the directory containing this source.
#     If the target kernel source is not at /usr/src/linux then you will need to 
#     substitute the correct path.
#     
#     Another difference is the final module created is X10.ko rather than the
#     older X10.o . So any script that insmods the device needs changing to 
#     reflect this. The internal name is still X10.
#############################################################################

obj-m:= xline.o 
xline-objs := xline_driver.o
