author | Florian Pose <fp@igh-essen.com> |
Mon, 15 May 2006 12:57:24 +0000 | |
changeset 237 | 7b3126cf6dab |
parent 230 | 382bdb9138ec |
child 246 | 0bf7c769de06 |
permissions | -rw-r--r-- |
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
1 |
#------------------------------------------------------------------------------ |
220 | 2 |
# |
3 |
# Makefile |
|
4 |
# |
|
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
5 |
# RTAI sample module for the IgH EtherCAT master. |
220 | 6 |
# |
7 |
# $Id$ |
|
8 |
# |
|
9 |
# Copyright (C) 2006 Florian Pose, Ingenieurgemeinschaft IgH |
|
10 |
# |
|
11 |
# This file is part of the IgH EtherCAT Master. |
|
12 |
# |
|
13 |
# The IgH EtherCAT Master is free software; you can redistribute it |
|
14 |
# and/or modify it under the terms of the GNU General Public License |
|
15 |
# as published by the Free Software Foundation; version 2 of the License. |
|
16 |
# |
|
17 |
# The IgH EtherCAT Master is distributed in the hope that it will be |
|
18 |
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
20 |
# GNU General Public License for more details. |
|
21 |
# |
|
22 |
# You should have received a copy of the GNU General Public License |
|
23 |
# along with the IgH EtherCAT Master; if not, write to the Free Software |
|
24 |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|
25 |
# |
|
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
26 |
#------------------------------------------------------------------------------ |
220 | 27 |
|
28 |
ifneq ($(KERNELRELEASE),) |
|
29 |
||
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
30 |
#------------------------------------------------------------------------------ |
220 | 31 |
# kbuild section |
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
32 |
#------------------------------------------------------------------------------ |
220 | 33 |
|
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
34 |
obj-m := ec_rtai_sample.o |
220 | 35 |
|
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
36 |
ec_rtai_sample-objs := rtai_sample.o |
220 | 37 |
|
230
382bdb9138ec
RTAI sample with optimized jitter.
Florian Pose <fp@igh-essen.com>
parents:
225
diff
changeset
|
38 |
EXTRA_CFLAGS := -I/usr/realtime/include -mhard-float |
225
9e8150db6fc8
Applied RTAI interface to RTAI example.
Florian Pose <fp@igh-essen.com>
parents:
222
diff
changeset
|
39 |
|
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
40 |
#------------------------------------------------------------------------------ |
220 | 41 |
|
42 |
else |
|
43 |
||
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
44 |
#------------------------------------------------------------------------------ |
220 | 45 |
# default section |
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
46 |
#------------------------------------------------------------------------------ |
220 | 47 |
|
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
48 |
ifneq ($(wildcard kernel.conf),) |
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
49 |
include kernel.conf |
220 | 50 |
else |
51 |
KERNELDIR = /usr/src/linux |
|
52 |
endif |
|
53 |
||
54 |
modules: |
|
55 |
$(MAKE) -C $(KERNELDIR) M=`pwd` |
|
56 |
||
57 |
clean: |
|
58 |
$(MAKE) -C $(KERNELDIR) M=`pwd` clean |
|
59 |
||
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
60 |
#------------------------------------------------------------------------------ |
220 | 61 |
|
62 |
endif |