rt/Makefile
author Florian Pose <fp@igh-essen.com>
Fri, 20 Jan 2006 16:04:10 +0000
changeset 56 36d1fa37f5e1
parent 50 458e704afc6e
child 57 bae4965439b8
permissions -rw-r--r--
Bugfix im Master, ec_master_reset() und laufendes Beispiel in rt.
#------------------------------------------------------------------------------
#
# Makefile Echtzeitmodule
#
# $Id$
#
#------------------------------------------------------------------------------

ifneq ($(KERNELRELEASE),)

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

obj-m := msr_modul.o

msr_modul-objs := msr_module.o \
		msr_jitter.o \
		rt_lib/msr-core/msr_lists.o \
		rt_lib/msr-core/msr_main.o \
		rt_lib/msr-core/msr_charbuf.o \
		rt_lib/msr-core/msr_reg.o \
		rt_lib/msr-core/msr_interpreter.o \
		rt_lib/msr-core/msr_messages.o \
		rt_lib/msr-core/msr_proc.o \
		rt_lib/msr-core/msr_error_reg.o \
		rt_lib/msr-utils/msr_utils.o \
		rt_lib/msr-math/msr_base64.o \
		libm.o

EXTRA_CFLAGS := -I $(src)/rt_lib/msr-include -D_SIMULATION \
		-I/usr/include -mhard-float

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

else

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

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

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

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

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

endif