libec/Makefile
author Florian Pose <fp@igh-essen.com>
Fri, 20 Jan 2006 17:50:35 +0000
changeset 57 bae4965439b8
permissions -rw-r--r--
LibEC
#------------------------------------------------------------------------------
#
#  Makefile
#
#  EtherCAT-Library
#
#  $Id$
#
#------------------------------------------------------------------------------

ifneq ($(KERNELRELEASE),)

#------------------------------------------------------------------------------
# Kbuild-Abschnitt

lib-m := libec.o

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

else

#------------------------------------------------------------------------------
# Default-Abschnitt

ifneq ($(wildcard ethercat.conf),)
include ethercat.conf
else
KERNELDIR = /lib/modules/`uname -r`/build
endif

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

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

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

endif