author | Florian Pose <fp@igh-essen.com> |
Thu, 05 Jan 2006 13:39:39 +0000 | |
changeset 42 | a22a202d0f42 |
parent 41 | 42c66194c0c8 |
child 45 | f525f7db2d90 |
permissions | -rw-r--r-- |
41 | 1 |
#------------------------------------------------------------------------------ |
0 | 2 |
# |
3 |
# Makefile |
|
4 |
# |
|
5 |
# IgH EtherCAT-Treiber |
|
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 |
#------------------------------------------------------------------------------ |
22
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
14 |
# Kbuild-Abschnitt |
6
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
15 |
|
27
d75ef6b46e33
EtherCAT-Master in eigenes Modul ausgelagert.
Florian Pose <fp@igh-essen.com>
parents:
22
diff
changeset
|
16 |
obj-m := 8139too-ecat.o ecat-master.o |
6
e36a85dc2730
ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents:
5
diff
changeset
|
17 |
|
27
d75ef6b46e33
EtherCAT-Master in eigenes Modul ausgelagert.
Florian Pose <fp@igh-essen.com>
parents:
22
diff
changeset
|
18 |
8139too-ecat-objs := 8139too.o |
d75ef6b46e33
EtherCAT-Master in eigenes Modul ausgelagert.
Florian Pose <fp@igh-essen.com>
parents:
22
diff
changeset
|
19 |
|
41 | 20 |
ecat-master-objs := ec_module.o ec_master.o ec_device.o ec_slave.o \ |
42
a22a202d0f42
Domains, Warten beim Senden, 10kHz.
Florian Pose <fp@igh-essen.com>
parents:
41
diff
changeset
|
21 |
ec_command.o ec_types.o ec_domain.o |
0 | 22 |
|
34
c1e8d61fa395
Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents:
27
diff
changeset
|
23 |
REV = `svnversion $(src)` |
c1e8d61fa395
Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents:
27
diff
changeset
|
24 |
DATE = `date` |
c1e8d61fa395
Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents:
27
diff
changeset
|
25 |
|
c1e8d61fa395
Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents:
27
diff
changeset
|
26 |
EXTRA_CFLAGS = -DEC_REV="$(REV)" -DEC_USER="$(USER)" -DEC_DATE="$(DATE)" |
c1e8d61fa395
Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents:
27
diff
changeset
|
27 |
|
41 | 28 |
#------------------------------------------------------------------------------ |
0 | 29 |
|
22
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
30 |
else |
9
144d220c8ca0
Verbesserte Makefiles (Kernel-Verzeichnisse nicht mehr im SVN).
Florian Pose <fp@igh-essen.com>
parents:
6
diff
changeset
|
31 |
|
41 | 32 |
#------------------------------------------------------------------------------ |
22
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
33 |
# Default-Abschnitt |
0 | 34 |
|
34
c1e8d61fa395
Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents:
27
diff
changeset
|
35 |
include ../ethercat.conf |
0 | 36 |
|
41 | 37 |
modules: |
34
c1e8d61fa395
Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents:
27
diff
changeset
|
38 |
$(MAKE) -C $(KERNELDIR) M=`pwd` modules |
0 | 39 |
|
40 |
clean: |
|
34
c1e8d61fa395
Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents:
27
diff
changeset
|
41 |
$(MAKE) -C $(KERNELDIR) M=`pwd` clean |
0 | 42 |
|
41 | 43 |
#------------------------------------------------------------------------------ |
10
67c739ece5d5
depend-Sektion in den Makefiles korrigiert.
Florian Pose <fp@igh-essen.com>
parents:
9
diff
changeset
|
44 |
|
67c739ece5d5
depend-Sektion in den Makefiles korrigiert.
Florian Pose <fp@igh-essen.com>
parents:
9
diff
changeset
|
45 |
endif |