rt/Makefile
author Florian Pose <fp@igh-essen.com>
Mon, 27 Mar 2006 12:04:55 +0000
changeset 132 63a5b40eb7da
parent 103 d2a8adde27c4
child 181 3e9155836bc7
permissions -rw-r--r--
CRC-Counter nach ESC-Datasheet implementiert.
46
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
     1
#------------------------------------------------------------------------------
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
     2
#
103
d2a8adde27c4 Konfigurations-Template.
Florian Pose <fp@igh-essen.com>
parents: 98
diff changeset
     3
#  Makefile Echtzeitmodule
46
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
     4
#
103
d2a8adde27c4 Konfigurations-Template.
Florian Pose <fp@igh-essen.com>
parents: 98
diff changeset
     5
#  $Id$
46
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
     6
#
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
     7
#------------------------------------------------------------------------------
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     8
28
801dc7eabf51 IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents: 16
diff changeset
     9
ifneq ($(KERNELRELEASE),)
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    10
46
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    11
#------------------------------------------------------------------------------
103
d2a8adde27c4 Konfigurations-Template.
Florian Pose <fp@igh-essen.com>
parents: 98
diff changeset
    12
#  Kbuild-Abschnitt
d2a8adde27c4 Konfigurations-Template.
Florian Pose <fp@igh-essen.com>
parents: 98
diff changeset
    13
#------------------------------------------------------------------------------
28
801dc7eabf51 IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents: 16
diff changeset
    14
56
36d1fa37f5e1 Bugfix im Master, ec_master_reset() und laufendes Beispiel in rt.
Florian Pose <fp@igh-essen.com>
parents: 50
diff changeset
    15
obj-m := msr_modul.o
28
801dc7eabf51 IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents: 16
diff changeset
    16
46
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    17
msr_modul-objs := msr_module.o \
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    18
		rt_lib/msr-core/msr_lists.o \
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    19
		rt_lib/msr-core/msr_main.o \
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    20
		rt_lib/msr-core/msr_charbuf.o \
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    21
		rt_lib/msr-core/msr_reg.o \
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    22
		rt_lib/msr-core/msr_interpreter.o \
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    23
		rt_lib/msr-core/msr_messages.o \
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    24
		rt_lib/msr-core/msr_proc.o \
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    25
		rt_lib/msr-core/msr_error_reg.o \
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    26
		rt_lib/msr-utils/msr_utils.o \
73
9f4ea66d89a3 Dynamische FMMU-Konfiguration, zwei Kopieroperationen eingespart, Einr?ckungen angepasst.
Florian Pose <fp@igh-essen.com>
parents: 59
diff changeset
    27
		rt_lib/msr-utils/msr_time.o \
46
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    28
		rt_lib/msr-math/msr_base64.o \
73
9f4ea66d89a3 Dynamische FMMU-Konfiguration, zwei Kopieroperationen eingespart, Einr?ckungen angepasst.
Florian Pose <fp@igh-essen.com>
parents: 59
diff changeset
    29
		rt_lib/msr-math/msr_hex_bin.o \
59
c8bd4fe3b38c EtherCAT-Slave-Interface als Makros implementiert.
Florian Pose <fp@igh-essen.com>
parents: 57
diff changeset
    30
		libm.o
28
801dc7eabf51 IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents: 16
diff changeset
    31
98
f564d0929292 MERGE branches/async 222:233 -> trunk (Kommando-Warteschlangen).
Florian Pose <fp@igh-essen.com>
parents: 73
diff changeset
    32
EXTRA_CFLAGS := -I$(src)/rt_lib/msr-include -D_SIMULATION \
f564d0929292 MERGE branches/async 222:233 -> trunk (Kommando-Warteschlangen).
Florian Pose <fp@igh-essen.com>
parents: 73
diff changeset
    33
		-I/usr/include -mhard-float \
f564d0929292 MERGE branches/async 222:233 -> trunk (Kommando-Warteschlangen).
Florian Pose <fp@igh-essen.com>
parents: 73
diff changeset
    34
		-DSVNREV=$(shell svnversion $(src)) -DUSER=$(USER)
46
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    35
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    36
#------------------------------------------------------------------------------
28
801dc7eabf51 IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents: 16
diff changeset
    37
801dc7eabf51 IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents: 16
diff changeset
    38
else
801dc7eabf51 IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents: 16
diff changeset
    39
46
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    40
#------------------------------------------------------------------------------
103
d2a8adde27c4 Konfigurations-Template.
Florian Pose <fp@igh-essen.com>
parents: 98
diff changeset
    41
#  Default-Abschnitt
d2a8adde27c4 Konfigurations-Template.
Florian Pose <fp@igh-essen.com>
parents: 98
diff changeset
    42
#------------------------------------------------------------------------------
28
801dc7eabf51 IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents: 16
diff changeset
    43
50
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 46
diff changeset
    44
ifneq ($(wildcard ethercat.conf),)
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 46
diff changeset
    45
include ethercat.conf
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 46
diff changeset
    46
else
103
d2a8adde27c4 Konfigurations-Template.
Florian Pose <fp@igh-essen.com>
parents: 98
diff changeset
    47
KERNELDIR = /usr/src/linux
50
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 46
diff changeset
    48
endif
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 46
diff changeset
    49
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 46
diff changeset
    50
modules:
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 46
diff changeset
    51
	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
46
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    52
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    53
clean:
50
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 46
diff changeset
    54
	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
46
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    55
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 28
diff changeset
    56
#------------------------------------------------------------------------------
28
801dc7eabf51 IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents: 16
diff changeset
    57
801dc7eabf51 IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents: 16
diff changeset
    58
endif