author | Florian Pose <fp@igh-essen.com> |
Mon, 20 Feb 2006 08:30:30 +0000 | |
changeset 70 | 6693d7e25d5e |
parent 68 | a452700db994 |
child 73 | 9f4ea66d89a3 |
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 |
|
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 |
|
64 | 18 |
ec_master-objs := module.o master.o device.o slave.o command.o types.o \ |
19 |
domain.o canopen.o |
|
0 | 20 |
|
34
c1e8d61fa395
Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents:
27
diff
changeset
|
21 |
REV = `svnversion $(src)` |
c1e8d61fa395
Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents:
27
diff
changeset
|
22 |
DATE = `date` |
c1e8d61fa395
Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents:
27
diff
changeset
|
23 |
|
c1e8d61fa395
Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents:
27
diff
changeset
|
24 |
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
|
25 |
|
41 | 26 |
#------------------------------------------------------------------------------ |
0 | 27 |
|
22
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
28 |
else |
9
144d220c8ca0
Verbesserte Makefiles (Kernel-Verzeichnisse nicht mehr im SVN).
Florian Pose <fp@igh-essen.com>
parents:
6
diff
changeset
|
29 |
|
41 | 30 |
#------------------------------------------------------------------------------ |
22
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
31 |
# Default-Abschnitt |
0 | 32 |
|
50 | 33 |
ifneq ($(wildcard ethercat.conf),) |
34 |
include ethercat.conf |
|
35 |
else |
|
36 |
KERNELDIR = /lib/modules/`uname -r`/build |
|
37 |
endif |
|
38 |
||
41 | 39 |
modules: |
50 | 40 |
$(MAKE) -C $(KERNELDIR) M=`pwd` modules |
0 | 41 |
|
58
21b7342e2a90
Code-Dokumentation mit Doxygen aufgearbeitet.
Florian Pose <fp@igh-essen.com>
parents:
54
diff
changeset
|
42 |
clean: cleandoc |
50 | 43 |
$(MAKE) -C $(KERNELDIR) M=`pwd` clean |
0 | 44 |
|
58
21b7342e2a90
Code-Dokumentation mit Doxygen aufgearbeitet.
Florian Pose <fp@igh-essen.com>
parents:
54
diff
changeset
|
45 |
doc: |
21b7342e2a90
Code-Dokumentation mit Doxygen aufgearbeitet.
Florian Pose <fp@igh-essen.com>
parents:
54
diff
changeset
|
46 |
doxygen Doxyfile |
21b7342e2a90
Code-Dokumentation mit Doxygen aufgearbeitet.
Florian Pose <fp@igh-essen.com>
parents:
54
diff
changeset
|
47 |
|
21b7342e2a90
Code-Dokumentation mit Doxygen aufgearbeitet.
Florian Pose <fp@igh-essen.com>
parents:
54
diff
changeset
|
48 |
cleandoc: |
21b7342e2a90
Code-Dokumentation mit Doxygen aufgearbeitet.
Florian Pose <fp@igh-essen.com>
parents:
54
diff
changeset
|
49 |
@rm -rf doc |
21b7342e2a90
Code-Dokumentation mit Doxygen aufgearbeitet.
Florian Pose <fp@igh-essen.com>
parents:
54
diff
changeset
|
50 |
|
68
a452700db994
Neue ASCII-Adressierung und Code-Dokumantation.
Florian Pose <fp@igh-essen.com>
parents:
64
diff
changeset
|
51 |
.PHONY: doc |
a452700db994
Neue ASCII-Adressierung und Code-Dokumantation.
Florian Pose <fp@igh-essen.com>
parents:
64
diff
changeset
|
52 |
|
41 | 53 |
#------------------------------------------------------------------------------ |
10
67c739ece5d5
depend-Sektion in den Makefiles korrigiert.
Florian Pose <fp@igh-essen.com>
parents:
9
diff
changeset
|
54 |
|
67c739ece5d5
depend-Sektion in den Makefiles korrigiert.
Florian Pose <fp@igh-essen.com>
parents:
9
diff
changeset
|
55 |
endif |