rt/Makefile
author Florian Pose <fp@igh-essen.com>
Sun, 19 Mar 2006 14:58:49 +0000
changeset 107 b4546c37f28f
parent 103 d2a8adde27c4
child 181 3e9155836bc7
permissions -rw-r--r--
Bugfix: EL3162 - "Product Name" war falsch.
#------------------------------------------------------------------------------
#
#  Makefile Echtzeitmodule
#
#  $Id$
#
#------------------------------------------------------------------------------

ifneq ($(KERNELRELEASE),)

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

obj-m := msr_modul.o

msr_modul-objs := msr_module.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-utils/msr_time.o \
		rt_lib/msr-math/msr_base64.o \
		rt_lib/msr-math/msr_hex_bin.o \
		libm.o

EXTRA_CFLAGS := -I$(src)/rt_lib/msr-include -D_SIMULATION \
		-I/usr/include -mhard-float \
		-DSVNREV=$(shell svnversion $(src)) -DUSER=$(USER)

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

else

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

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

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

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

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

endif