fp@12: #----------------------------------------------------------------
fp@0: #
fp@0: #  Globales Makefile
fp@0: #
fp@0: #  IgH EtherCAT-Treiber
fp@0: #
fp@0: #  $Id$
fp@0: #
fp@12: #----------------------------------------------------------------
fp@12: 
fp@16: CONFIG_FILE = ethercat.conf
fp@16: 
fp@16: ifeq ($(CONFIG_FILE),$(wildcard $(CONFIG_FILE)))
fp@16: include $(CONFIG_FILE)
fp@16: endif
fp@12: 
fp@45: obj-m := drivers/ mini/
fp@45: 
fp@45: ifeq ($(MAKE_RT),yes)
fp@45: obj-m += rt/
fp@45: endif
fp@45: 
fp@12: #----------------------------------------------------------------
fp@0: 
fp@45: all:
fp@45: 	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
fp@45: 
fp@45: clean:
fp@45: 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
fp@0: 
fp@0: doc docs:
fp@0: 	doxygen Doxyfile
fp@0: 
fp@22: config conf $(CONFIG_FILE):
fp@22: 	@echo "# EtherCAT Konfigurationsdatei Kernel 2.6" > $(CONFIG_FILE)
fp@16: 	@echo >> $(CONFIG_FILE)
fp@22: 	@echo "KERNELDIR = /usr/src/linux" >> $(CONFIG_FILE)
fp@22: 	@echo "RTAIDIR   =" >> $(CONFIG_FILE)
fp@22: 	@echo "RTLIBDIR  =" >> $(CONFIG_FILE)
fp@16: 	@echo >> $(CONFIG_FILE)
fp@16: 	@echo "MAKE_RT    = yes" >> $(CONFIG_FILE)
fp@16: 	@echo >> $(CONFIG_FILE)
fp@16: 	@echo "$(CONFIG_FILE) erstellt."
fp@0: 
fp@12: #----------------------------------------------------------------