author | Florian Pose <fp@igh-essen.com> |
Tue, 18 Apr 2006 13:41:17 +0000 | |
changeset 193 | 1053a25af575 |
parent 181 | 3e9155836bc7 |
child 195 | 674071846ee3 |
permissions | -rw-r--r-- |
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 | 3 |
# Makefile Echtzeitmodule |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
4 |
# |
103 | 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 | 8 |
|
28
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
9 |
ifneq ($(KERNELRELEASE),) |
0 | 10 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
11 |
#------------------------------------------------------------------------------ |
103 | 12 |
# Kbuild-Abschnitt |
13 |
#------------------------------------------------------------------------------ |
|
28
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
14 |
|
181
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
15 |
ifneq ($(wildcard $(src)/rt.conf),) |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
16 |
include $(src)/rt.conf |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
17 |
else |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
18 |
MODULENAME := rt |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
19 |
endif |
28
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
20 |
|
181
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
21 |
obj-m := $(MODULENAME).o |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
22 |
|
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
23 |
$(MODULENAME)-objs := msr_rt.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
24 |
rt_lib/msr-core/msr_lists.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
25 |
rt_lib/msr-core/msr_main.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
26 |
rt_lib/msr-core/msr_charbuf.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
27 |
rt_lib/msr-core/msr_reg.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
28 |
rt_lib/msr-core/msr_interpreter.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
29 |
rt_lib/msr-core/msr_messages.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
30 |
rt_lib/msr-core/msr_proc.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
31 |
rt_lib/msr-core/msr_error_reg.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
32 |
rt_lib/msr-utils/msr_utils.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
33 |
rt_lib/msr-utils/msr_time.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
34 |
rt_lib/msr-math/msr_base64.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
35 |
rt_lib/msr-math/msr_hex_bin.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
36 |
libm.o |
28
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
37 |
|
98
f564d0929292
MERGE branches/async 222:233 -> trunk (Kommando-Warteschlangen).
Florian Pose <fp@igh-essen.com>
parents:
73
diff
changeset
|
38 |
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
|
39 |
-I/usr/include -mhard-float \ |
f564d0929292
MERGE branches/async 222:233 -> trunk (Kommando-Warteschlangen).
Florian Pose <fp@igh-essen.com>
parents:
73
diff
changeset
|
40 |
-DSVNREV=$(shell svnversion $(src)) -DUSER=$(USER) |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
41 |
|
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
42 |
#------------------------------------------------------------------------------ |
28
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
43 |
|
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
44 |
else |
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
45 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
46 |
#------------------------------------------------------------------------------ |
103 | 47 |
# Default-Abschnitt |
48 |
#------------------------------------------------------------------------------ |
|
28
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
49 |
|
181
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
50 |
ifneq ($(wildcard rt.conf),) |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
51 |
include rt.conf |
50 | 52 |
else |
181
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
53 |
MODULENAME := msr_rt |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
54 |
KERNEL := $(shell uname -r) |
50 | 55 |
endif |
56 |
||
181
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
57 |
KERNELDIR := /lib/modules/$(KERNEL)/build |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
58 |
|
50 | 59 |
modules: |
181
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
60 |
$(MAKE) -C $(KERNELDIR) M=`pwd` |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
61 |
|
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
62 |
clean: |
50 | 63 |
$(MAKE) -C $(KERNELDIR) M=`pwd` clean |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
64 |
|
181
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
65 |
install: |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
66 |
@./install.sh $(MODULENAME) $(KERNEL) |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
67 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
68 |
#------------------------------------------------------------------------------ |
28
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
69 |
|
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
70 |
endif |