mini/Makefile
author Florian Pose <fp@igh-essen.com>
Thu, 20 Apr 2006 14:38:41 +0000
branchstable-1.0
changeset 1617 9f83a343ae75
parent 195 674071846ee3
child 197 b9a6e2c22745
permissions -rw-r--r--
MERGE trunk -r354:355 -> branches/stable-1.0 (version numbers)
#----------------------------------------------------------------
#
#  Makefile
#
#  Minimal EtherCAT module.
#
#  $Id$
#
#----------------------------------------------------------------

ifneq ($(KERNELRELEASE),)

#----------------------------------------------------------------
#  kbuild section
#----------------------------------------------------------------

obj-m := ec_mini.o

ec_mini-objs := mini.o

#----------------------------------------------------------------

else

#----------------------------------------------------------------
#  default section
#----------------------------------------------------------------

ifneq ($(wildcard ethercat.conf),)
include ethercat.conf
else
KERNELDIR = /usr/src/linux
endif

modules:
	$(MAKE) -C $(KERNELDIR) M=`pwd`

clean:
	$(MAKE) -C $(KERNELDIR) M=`pwd` clean

#----------------------------------------------------------------

endif