mini/Makefile
author Florian Pose <fp@igh-essen.com>
Thu, 20 Apr 2006 13:31:31 +0000
changeset 195 674071846ee3
parent 147 a355b587b4bc
child 197 b9a6e2c22745
permissions -rw-r--r--
Translated all comments and documentation to english language.
#----------------------------------------------------------------
#
#  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