2007-10-21 12:11:55 +02:00
|
|
|
# #################################################################
|
|
|
|
# (C) Copyright 2007 Benjamin Krill <ben@codiert.org>
|
|
|
|
#
|
|
|
|
# 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 of
|
|
|
|
# the License, 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., 51 Franklin St, Fifth Floor, Boston,
|
|
|
|
# MA 02110-1301 USA
|
|
|
|
# #################################################################
|
2007-06-28 22:43:40 +02:00
|
|
|
KERNEL_RELEASE = $(shell uname -r)
|
2007-07-09 13:10:26 +02:00
|
|
|
#KERNEL_BUILDROOT ?= /root/linux-2.6.21.5/obj
|
|
|
|
KERNEL_BUILDROOT ?= /lib/modules/$(KERNEL_RELEASE)/build
|
2007-06-28 22:43:40 +02:00
|
|
|
BUILDROOT = $(shell pwd)
|
2007-06-28 18:20:34 +02:00
|
|
|
|
2007-06-28 22:43:40 +02:00
|
|
|
obj-m := fpgafs.o
|
2007-07-01 23:30:51 +02:00
|
|
|
fpgafs-objs := files.o inode.o llmgmt.o
|
|
|
|
|
|
|
|
# low level driver
|
|
|
|
obj-m += fpgafs_lldrv_dbg.o
|
|
|
|
obj-m += fpgafs_lldrv_cham.o
|
2007-09-08 21:18:53 +02:00
|
|
|
obj-m += fpgafs_lldrv_rag.o
|
2007-06-28 22:43:40 +02:00
|
|
|
|
|
|
|
all :
|
|
|
|
$(MAKE) -C $(KERNEL_BUILDROOT) SUBDIRS=$(BUILDROOT) modules
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.ko *.o .*.cmd .*.o.flags *.mod.c Module.symvers
|
|
|
|
rm -rf .tmp_versions
|
|
|
|
|
|
|
|
.PHONY : all clean
|