author | Florian Pose <fp@igh-essen.com> |
Thu, 20 Apr 2006 14:38:41 +0000 | |
branch | stable-1.0 |
changeset 1617 | 9f83a343ae75 |
parent 191 | ca805255a935 |
child 197 | b9a6e2c22745 |
permissions | -rw-r--r-- |
41 | 1 |
#------------------------------------------------------------------------------ |
0 | 2 |
# |
3 |
# Makefile |
|
4 |
# |
|
180 | 5 |
# IgH EtherCAT master module |
0 | 6 |
# |
9
144d220c8ca0
Verbesserte Makefiles (Kernel-Verzeichnisse nicht mehr im SVN).
Florian Pose <fp@igh-essen.com>
parents:
6
diff
changeset
|
7 |
# $Id$ |
0 | 8 |
# |
41 | 9 |
#------------------------------------------------------------------------------ |
0 | 10 |
|
22
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
11 |
ifneq ($(KERNELRELEASE),) |
0 | 12 |
|
41 | 13 |
#------------------------------------------------------------------------------ |
180 | 14 |
# kbuild section |
6
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
15 |
|
54
7506e67dd122
Vereinheitlichte Schnittstellen, Include-Verzeichnis und Module getrennt.
Florian Pose <fp@igh-essen.com>
parents:
50
diff
changeset
|
16 |
obj-m := ec_master.o |
6
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
17 |
|
98
f564d0929292
MERGE branches/async 222:233 -> trunk (Kommando-Warteschlangen).
Florian Pose <fp@igh-essen.com>
parents:
73
diff
changeset
|
18 |
ec_master-objs := module.o master.o device.o slave.o command.o types.o \ |
145
11a82e4fd31b
Mailbox-Interface ausgelagert, erster EOE-Ansatz.
Florian Pose <fp@igh-essen.com>
parents:
98
diff
changeset
|
19 |
domain.o mailbox.o canopen.o ethernet.o |
0 | 20 |
|
1617
9f83a343ae75
MERGE trunk -r354:355 -> branches/stable-1.0 (version numbers)
Florian Pose <fp@igh-essen.com>
parents:
191
diff
changeset
|
21 |
REV := $(shell svnversion $(src) 2>/dev/null) |
9f83a343ae75
MERGE trunk -r354:355 -> branches/stable-1.0 (version numbers)
Florian Pose <fp@igh-essen.com>
parents:
191
diff
changeset
|
22 |
|
9f83a343ae75
MERGE trunk -r354:355 -> branches/stable-1.0 (version numbers)
Florian Pose <fp@igh-essen.com>
parents:
191
diff
changeset
|
23 |
EXTRA_CFLAGS := -DSVNREV=$(REV) -DUSER=$(USER) |
34
c1e8d61fa395
Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents:
27
diff
changeset
|
24 |
|
41 | 25 |
#------------------------------------------------------------------------------ |
0 | 26 |
|
22
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
27 |
else |
9
144d220c8ca0
Verbesserte Makefiles (Kernel-Verzeichnisse nicht mehr im SVN).
Florian Pose <fp@igh-essen.com>
parents:
6
diff
changeset
|
28 |
|
41 | 29 |
#------------------------------------------------------------------------------ |
180 | 30 |
# default section |
0 | 31 |
|
180 | 32 |
ifneq ($(wildcard ../ethercat.conf),) |
33 |
include ../ethercat.conf |
|
50 | 34 |
else |
180 | 35 |
KERNEL := $(shell uname -r) |
50 | 36 |
endif |
37 |
||
191 | 38 |
KERNELDIR := /lib/modules/$(KERNEL)/build |
180 | 39 |
|
41 | 40 |
modules: |
180 | 41 |
$(MAKE) -C $(KERNELDIR) M=`pwd` |
0 | 42 |
|
180 | 43 |
clean: |
50 | 44 |
$(MAKE) -C $(KERNELDIR) M=`pwd` clean |
0 | 45 |
|
41 | 46 |
#------------------------------------------------------------------------------ |
10
67c739ece5d5
depend-Sektion in den Makefiles korrigiert.
Florian Pose <fp@igh-essen.com>
parents:
9
diff
changeset
|
47 |
|
67c739ece5d5
depend-Sektion in den Makefiles korrigiert.
Florian Pose <fp@igh-essen.com>
parents:
9
diff
changeset
|
48 |
endif |