Makefile
author Florian Pose <fp@igh-essen.com>
Fri, 07 Apr 2006 08:29:19 +0000
changeset 168 8505cc1ad3ce
parent 167 37c65411b411
child 169 b3ecbec2c487
permissions -rw-r--r--
Better installer 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