fp@222: #------------------------------------------------------------------------------ fp@220: # fp@220: # Makefile fp@220: # fp@222: # RTAI sample module for the IgH EtherCAT master. fp@220: # fp@220: # $Id$ fp@220: # fp@220: # Copyright (C) 2006 Florian Pose, Ingenieurgemeinschaft IgH fp@220: # fp@220: # This file is part of the IgH EtherCAT Master. fp@220: # fp@220: # The IgH EtherCAT Master is free software; you can redistribute it fp@220: # and/or modify it under the terms of the GNU General Public License fp@246: # as published by the Free Software Foundation; either version 2 of the fp@246: # License, or (at your option) any later version. fp@220: # fp@220: # The IgH EtherCAT Master is distributed in the hope that it will be fp@220: # useful, but WITHOUT ANY WARRANTY; without even the implied warranty of fp@220: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the fp@220: # GNU General Public License for more details. fp@220: # fp@220: # You should have received a copy of the GNU General Public License fp@220: # along with the IgH EtherCAT Master; if not, write to the Free Software fp@220: # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@220: # fp@246: # The right to use EtherCAT Technology is granted and comes free of fp@246: # charge under condition of compatibility of product made by fp@246: # Licensee. People intending to distribute/sell products based on the fp@246: # code, have to sign an agreement to guarantee that products using fp@246: # software based on IgH EtherCAT master stay compatible with the actual fp@246: # EtherCAT specification (which are released themselves as an open fp@246: # standard) as the (only) precondition to have the right to use EtherCAT fp@246: # Technology, IP and trade marks. fp@246: # fp@222: #------------------------------------------------------------------------------ fp@220: fp@220: ifneq ($(KERNELRELEASE),) fp@220: fp@222: #------------------------------------------------------------------------------ fp@220: # kbuild section fp@222: #------------------------------------------------------------------------------ fp@220: fp@222: obj-m := ec_rtai_sample.o fp@220: fp@222: ec_rtai_sample-objs := rtai_sample.o fp@220: fp@230: EXTRA_CFLAGS := -I/usr/realtime/include -mhard-float fp@225: fp@222: #------------------------------------------------------------------------------ fp@220: fp@220: else fp@220: fp@222: #------------------------------------------------------------------------------ fp@220: # default section fp@222: #------------------------------------------------------------------------------ fp@220: fp@222: ifneq ($(wildcard kernel.conf),) fp@222: include kernel.conf fp@220: else fp@267: KERNEL_DIR := /lib/modules/`uname -r`/build fp@220: endif fp@220: fp@267: CURRENT_DIR := $(shell pwd) fp@267: fp@220: modules: fp@267: $(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) fp@220: fp@220: clean: fp@267: $(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) clean fp@220: fp@222: #------------------------------------------------------------------------------ fp@220: fp@220: endif