fp@665: #------------------------------------------------------------------------------
fp@665: #
fp@665: #  $Id: Kbuild 844 2007-03-08 18:15:25Z fp $
fp@665: #
fp@665: #  Copyright (C) 2006  Florian Pose, Ingenieurgemeinschaft IgH
fp@665: #
fp@665: #  This file is part of the IgH EtherCAT Master.
fp@665: #
fp@665: #  The IgH EtherCAT Master is free software; you can redistribute it
fp@665: #  and/or modify it under the terms of the GNU General Public License
fp@665: #  as published by the Free Software Foundation; either version 2 of the
fp@665: #  License, or (at your option) any later version.
fp@665: #
fp@665: #  The IgH EtherCAT Master is distributed in the hope that it will be
fp@665: #  useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
fp@665: #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
fp@665: #  GNU General Public License for more details.
fp@665: #
fp@665: #  You should have received a copy of the GNU General Public License
fp@665: #  along with the IgH EtherCAT Master; if not, write to the Free Software
fp@665: #  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
fp@665: #
fp@665: #  The right to use EtherCAT Technology is granted and comes free of
fp@665: #  charge under condition of compatibility of product made by
fp@665: #  Licensee. People intending to distribute/sell products based on the
fp@665: #  code, have to sign an agreement to guarantee that products using
fp@665: #  software based on IgH EtherCAT master stay compatible with the actual
fp@665: #  EtherCAT specification (which are released themselves as an open
fp@665: #  standard) as the (only) precondition to have the right to use EtherCAT
fp@665: #  Technology, IP and trade marks.
fp@665: #
fp@665: #------------------------------------------------------------------------------
fp@665: 
fp@665: include $(src)/../config.kbuild
fp@665: 
fp@665: REV := $(shell if test -s $(src)/../svnrevision; then \
fp@665: 		cat $(src)/../svnrevision; \
fp@665: 	else \
fp@665: 		svnversion $(src) 2>/dev/null || echo "unknown"; \
fp@665: 	fi)
fp@665: 
fp@685: ifeq ($(ENABLE_DUMMY),1)
fp@679:     obj-m := ec_dummy.o
fp@679: 	ec_dummy-objs := module.o master.o slave.o domain.o
fp@679: 	CFLAGS_dummy.o := -DSVNREV=$(REV)
fp@679: endif
fp@665: 
fp@665: #------------------------------------------------------------------------------