Makefile
author Florian Pose <fp@igh-essen.com>
Fri, 07 Apr 2006 08:22:48 +0000
changeset 167 37c65411b411
parent 149 0ed43f09130f
child 169 b3ecbec2c487
permissions -rw-r--r--
Added install script
#------------------------------------------------------------------------------
#
#  Globales Makefile
#
#  IgH EtherCAT-Treiber
#
#  $Id$
#
#------------------------------------------------------------------------------

ifneq ($(KERNELRELEASE),)

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

obj-m := master/ devices/

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

else

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

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

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

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

install:
	@./install.sh $(INSTALLDIR)

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

endif