author | Florian Pose <fp@igh-essen.com> |
Wed, 02 Aug 2006 23:16:10 +0000 | |
changeset 324 | 9aa51cbdbfae |
parent 284 | 7eed6020d5cf |
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 |
|
246
0bf7c769de06
Changed license headers and added EtherCAT license notice.
Florian Pose <fp@igh-essen.com>
parents:
230
diff
changeset
|
15 |
# as published by the Free Software Foundation; either version 2 of the |
0bf7c769de06
Changed license headers and added EtherCAT license notice.
Florian Pose <fp@igh-essen.com>
parents:
230
diff
changeset
|
16 |
# License, or (at your option) any later version. |
220 | 17 |
# |
18 |
# The IgH EtherCAT Master is distributed in the hope that it will be |
|
19 |
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
20 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
21 |
# GNU General Public License for more details. |
|
22 |
# |
|
23 |
# You should have received a copy of the GNU General Public License |
|
24 |
# along with the IgH EtherCAT Master; if not, write to the Free Software |
|
25 |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|
26 |
# |
|
246
0bf7c769de06
Changed license headers and added EtherCAT license notice.
Florian Pose <fp@igh-essen.com>
parents:
230
diff
changeset
|
27 |
# The right to use EtherCAT Technology is granted and comes free of |
0bf7c769de06
Changed license headers and added EtherCAT license notice.
Florian Pose <fp@igh-essen.com>
parents:
230
diff
changeset
|
28 |
# charge under condition of compatibility of product made by |
0bf7c769de06
Changed license headers and added EtherCAT license notice.
Florian Pose <fp@igh-essen.com>
parents:
230
diff
changeset
|
29 |
# Licensee. People intending to distribute/sell products based on the |
0bf7c769de06
Changed license headers and added EtherCAT license notice.
Florian Pose <fp@igh-essen.com>
parents:
230
diff
changeset
|
30 |
# code, have to sign an agreement to guarantee that products using |
0bf7c769de06
Changed license headers and added EtherCAT license notice.
Florian Pose <fp@igh-essen.com>
parents:
230
diff
changeset
|
31 |
# software based on IgH EtherCAT master stay compatible with the actual |
0bf7c769de06
Changed license headers and added EtherCAT license notice.
Florian Pose <fp@igh-essen.com>
parents:
230
diff
changeset
|
32 |
# EtherCAT specification (which are released themselves as an open |
0bf7c769de06
Changed license headers and added EtherCAT license notice.
Florian Pose <fp@igh-essen.com>
parents:
230
diff
changeset
|
33 |
# standard) as the (only) precondition to have the right to use EtherCAT |
0bf7c769de06
Changed license headers and added EtherCAT license notice.
Florian Pose <fp@igh-essen.com>
parents:
230
diff
changeset
|
34 |
# Technology, IP and trade marks. |
0bf7c769de06
Changed license headers and added EtherCAT license notice.
Florian Pose <fp@igh-essen.com>
parents:
230
diff
changeset
|
35 |
# |
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
36 |
#------------------------------------------------------------------------------ |
220 | 37 |
|
38 |
ifneq ($(KERNELRELEASE),) |
|
39 |
||
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
40 |
#------------------------------------------------------------------------------ |
220 | 41 |
# kbuild section |
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
42 |
#------------------------------------------------------------------------------ |
220 | 43 |
|
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
44 |
obj-m := ec_rtai_sample.o |
220 | 45 |
|
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
46 |
ec_rtai_sample-objs := rtai_sample.o |
220 | 47 |
|
230
382bdb9138ec
RTAI sample with optimized jitter.
Florian Pose <fp@igh-essen.com>
parents:
225
diff
changeset
|
48 |
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
|
49 |
|
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
50 |
#------------------------------------------------------------------------------ |
220 | 51 |
|
52 |
else |
|
53 |
||
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
54 |
#------------------------------------------------------------------------------ |
220 | 55 |
# default section |
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
56 |
#------------------------------------------------------------------------------ |
220 | 57 |
|
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
58 |
ifneq ($(wildcard kernel.conf),) |
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
59 |
include kernel.conf |
220 | 60 |
else |
284
7eed6020d5cf
Consistent example makefiles.
Florian Pose <fp@igh-essen.com>
parents:
267
diff
changeset
|
61 |
KERNEL_DIR := /lib/modules/$(shell uname -r)/build |
220 | 62 |
endif |
63 |
||
267 | 64 |
CURRENT_DIR := $(shell pwd) |
65 |
||
220 | 66 |
modules: |
267 | 67 |
$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) |
220 | 68 |
|
69 |
clean: |
|
267 | 70 |
$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) clean |
220 | 71 |
|
222
321eba07fafb
Changed RTAI sample naming.
Florian Pose <fp@igh-essen.com>
parents:
221
diff
changeset
|
72 |
#------------------------------------------------------------------------------ |
220 | 73 |
|
74 |
endif |