fp@46: #------------------------------------------------------------------------------
fp@46: #
fp@103: #  Makefile Echtzeitmodule
fp@46: #
fp@103: #  $Id$
fp@46: #
fp@46: #------------------------------------------------------------------------------
fp@0: 
hm@28: ifneq ($(KERNELRELEASE),)
fp@0: 
fp@46: #------------------------------------------------------------------------------
fp@103: #  Kbuild-Abschnitt
fp@103: #------------------------------------------------------------------------------
hm@28: 
fp@56: obj-m := msr_modul.o
hm@28: 
fp@46: msr_modul-objs := msr_module.o \
fp@46: 		rt_lib/msr-core/msr_lists.o \
fp@46: 		rt_lib/msr-core/msr_main.o \
fp@46: 		rt_lib/msr-core/msr_charbuf.o \
fp@46: 		rt_lib/msr-core/msr_reg.o \
fp@46: 		rt_lib/msr-core/msr_interpreter.o \
fp@46: 		rt_lib/msr-core/msr_messages.o \
fp@46: 		rt_lib/msr-core/msr_proc.o \
fp@46: 		rt_lib/msr-core/msr_error_reg.o \
fp@46: 		rt_lib/msr-utils/msr_utils.o \
fp@73: 		rt_lib/msr-utils/msr_time.o \
fp@46: 		rt_lib/msr-math/msr_base64.o \
fp@73: 		rt_lib/msr-math/msr_hex_bin.o \
fp@59: 		libm.o
hm@28: 
fp@98: EXTRA_CFLAGS := -I$(src)/rt_lib/msr-include -D_SIMULATION \
fp@98: 		-I/usr/include -mhard-float \
fp@98: 		-DSVNREV=$(shell svnversion $(src)) -DUSER=$(USER)
fp@46: 
fp@46: #------------------------------------------------------------------------------
hm@28: 
hm@28: else
hm@28: 
fp@46: #------------------------------------------------------------------------------
fp@103: #  Default-Abschnitt
fp@103: #------------------------------------------------------------------------------
hm@28: 
fp@50: ifneq ($(wildcard ethercat.conf),)
fp@50: include ethercat.conf
fp@50: else
fp@103: KERNELDIR = /usr/src/linux
fp@50: endif
fp@50: 
fp@50: modules:
fp@50: 	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
fp@46: 
fp@46: clean:
fp@50: 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
fp@46: 
fp@46: #------------------------------------------------------------------------------
hm@28: 
hm@28: endif