author | Florian Pose <fp@igh-essen.com> |
Fri, 05 May 2006 13:07:49 +0000 | |
changeset 215 | b021aa6eee38 |
parent 197 | b9a6e2c22745 |
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 |
# |
195
674071846ee3
Translated all comments and documentation to english language.
Florian Pose <fp@igh-essen.com>
parents:
181
diff
changeset
|
3 |
# Makefile |
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 |
# |
197
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
7 |
# Copyright (C) 2006 Florian Pose, Ingenieurgemeinschaft IgH |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
8 |
# |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
9 |
# This file is part of the IgH EtherCAT Master. |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
10 |
# |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
11 |
# The IgH EtherCAT Master is free software; you can redistribute it |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
12 |
# and/or modify it under the terms of the GNU General Public License |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
13 |
# as published by the Free Software Foundation; version 2 of the License. |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
14 |
# |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
15 |
# The IgH EtherCAT Master is distributed in the hope that it will be |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
16 |
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
17 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
18 |
# GNU General Public License for more details. |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
19 |
# |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
20 |
# You should have received a copy of the GNU General Public License |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
21 |
# along with the IgH EtherCAT Master; if not, write to the Free Software |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
22 |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
b9a6e2c22745
GPLv2 License and enhanced Doxygen output.
Florian Pose <fp@igh-essen.com>
parents:
195
diff
changeset
|
23 |
# |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
24 |
#------------------------------------------------------------------------------ |
0 | 25 |
|
28
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
26 |
ifneq ($(KERNELRELEASE),) |
0 | 27 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
28 |
#------------------------------------------------------------------------------ |
195
674071846ee3
Translated all comments and documentation to english language.
Florian Pose <fp@igh-essen.com>
parents:
181
diff
changeset
|
29 |
# kbuild section |
103 | 30 |
#------------------------------------------------------------------------------ |
28
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
31 |
|
181
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
32 |
ifneq ($(wildcard $(src)/rt.conf),) |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
33 |
include $(src)/rt.conf |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
34 |
else |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
35 |
MODULENAME := rt |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
36 |
endif |
28
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
37 |
|
181
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
38 |
obj-m := $(MODULENAME).o |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
39 |
|
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
40 |
$(MODULENAME)-objs := msr_rt.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
41 |
rt_lib/msr-core/msr_lists.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
42 |
rt_lib/msr-core/msr_main.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
43 |
rt_lib/msr-core/msr_charbuf.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
44 |
rt_lib/msr-core/msr_reg.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
45 |
rt_lib/msr-core/msr_interpreter.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
46 |
rt_lib/msr-core/msr_messages.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
47 |
rt_lib/msr-core/msr_proc.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
48 |
rt_lib/msr-core/msr_error_reg.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
49 |
rt_lib/msr-utils/msr_utils.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
50 |
rt_lib/msr-utils/msr_time.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
51 |
rt_lib/msr-math/msr_base64.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
52 |
rt_lib/msr-math/msr_hex_bin.o \ |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
53 |
libm.o |
28
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
54 |
|
98
f564d0929292
MERGE branches/async 222:233 -> trunk (Kommando-Warteschlangen).
Florian Pose <fp@igh-essen.com>
parents:
73
diff
changeset
|
55 |
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
|
56 |
-I/usr/include -mhard-float \ |
f564d0929292
MERGE branches/async 222:233 -> trunk (Kommando-Warteschlangen).
Florian Pose <fp@igh-essen.com>
parents:
73
diff
changeset
|
57 |
-DSVNREV=$(shell svnversion $(src)) -DUSER=$(USER) |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
58 |
|
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
59 |
#------------------------------------------------------------------------------ |
28
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
60 |
|
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
61 |
else |
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
62 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
63 |
#------------------------------------------------------------------------------ |
195
674071846ee3
Translated all comments and documentation to english language.
Florian Pose <fp@igh-essen.com>
parents:
181
diff
changeset
|
64 |
# default section |
103 | 65 |
#------------------------------------------------------------------------------ |
28
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
66 |
|
181
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
67 |
ifneq ($(wildcard rt.conf),) |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
68 |
include rt.conf |
50 | 69 |
else |
181
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
70 |
MODULENAME := msr_rt |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
71 |
KERNEL := $(shell uname -r) |
50 | 72 |
endif |
73 |
||
181
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
74 |
KERNELDIR := /lib/modules/$(KERNEL)/build |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
75 |
|
50 | 76 |
modules: |
181
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
77 |
$(MAKE) -C $(KERNELDIR) M=`pwd` |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
78 |
|
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
79 |
clean: |
50 | 80 |
$(MAKE) -C $(KERNELDIR) M=`pwd` clean |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
81 |
|
181
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
82 |
install: |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
83 |
@./install.sh $(MODULENAME) $(KERNEL) |
3e9155836bc7
Install script for realtime software
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
84 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
28
diff
changeset
|
85 |
#------------------------------------------------------------------------------ |
28
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
86 |
|
801dc7eabf51
IPIPE,floatpoint,rtlib
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
16
diff
changeset
|
87 |
endif |