author | Florian Pose <fp@igh-essen.com> |
Fri, 23 Dec 2005 08:23:35 +0000 | |
changeset 41 | 42c66194c0c8 |
parent 34 | c1e8d61fa395 |
child 42 | a22a202d0f42 |
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 \ |
21 |
ec_command.o ec_types.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 |