author | Florian Pose <fp@igh-essen.com> |
Thu, 20 Apr 2006 13:31:31 +0000 | |
changeset 195 | 674071846ee3 |
parent 180 | 786d4cba38fb |
child 197 | b9a6e2c22745 |
permissions | -rw-r--r-- |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
1 |
#------------------------------------------------------------------------------ |
0 | 2 |
# |
169
b3ecbec2c487
Better installer and startup scripts.
Florian Pose <fp@igh-essen.com>
parents:
167
diff
changeset
|
3 |
# EtherCAT Makefile |
0 | 4 |
# |
149 | 5 |
# $Id$ |
0 | 6 |
# |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
7 |
#------------------------------------------------------------------------------ |
12
920e3b41a61f
"make kerneldirs" erstellt die Default-Datei kerneldirs.mk zum Editieren.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
8 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
9 |
ifneq ($(KERNELRELEASE),) |
16
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
10 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
11 |
#------------------------------------------------------------------------------ |
195
674071846ee3
Translated all comments and documentation to english language.
Florian Pose <fp@igh-essen.com>
parents:
180
diff
changeset
|
12 |
# kbuild section |
12
920e3b41a61f
"make kerneldirs" erstellt die Default-Datei kerneldirs.mk zum Editieren.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
13 |
|
71
79d7b9cfdeb9
Slave interface und Makefile ge?ndert.
Florian Pose <fp@igh-essen.com>
parents:
59
diff
changeset
|
14 |
obj-m := master/ devices/ |
45
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
15 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
16 |
#------------------------------------------------------------------------------ |
45
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
17 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
18 |
else |
0 | 19 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
20 |
#------------------------------------------------------------------------------ |
195
674071846ee3
Translated all comments and documentation to english language.
Florian Pose <fp@igh-essen.com>
parents:
180
diff
changeset
|
21 |
# default section |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
22 |
|
71
79d7b9cfdeb9
Slave interface und Makefile ge?ndert.
Florian Pose <fp@igh-essen.com>
parents:
59
diff
changeset
|
23 |
ifneq ($(wildcard ethercat.conf),) |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
24 |
include ethercat.conf |
71
79d7b9cfdeb9
Slave interface und Makefile ge?ndert.
Florian Pose <fp@igh-essen.com>
parents:
59
diff
changeset
|
25 |
else |
169
b3ecbec2c487
Better installer and startup scripts.
Florian Pose <fp@igh-essen.com>
parents:
167
diff
changeset
|
26 |
KERNEL := `uname -r` |
b3ecbec2c487
Better installer and startup scripts.
Florian Pose <fp@igh-essen.com>
parents:
167
diff
changeset
|
27 |
DEVICEINDEX := 99 |
71
79d7b9cfdeb9
Slave interface und Makefile ge?ndert.
Florian Pose <fp@igh-essen.com>
parents:
59
diff
changeset
|
28 |
endif |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
29 |
|
169
b3ecbec2c487
Better installer and startup scripts.
Florian Pose <fp@igh-essen.com>
parents:
167
diff
changeset
|
30 |
KERNELDIR := /lib/modules/$(KERNEL)/build |
b3ecbec2c487
Better installer and startup scripts.
Florian Pose <fp@igh-essen.com>
parents:
167
diff
changeset
|
31 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
32 |
modules: |
57 | 33 |
$(MAKE) -C $(KERNELDIR) M=`pwd` |
45
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
34 |
|
180 | 35 |
clean: cleandoc |
45
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
36 |
$(MAKE) -C $(KERNELDIR) M=`pwd` clean |
0 | 37 |
|
180 | 38 |
doc: |
39 |
doxygen Doxyfile |
|
40 |
||
41 |
cleandoc: |
|
42 |
@rm -rf doc |
|
43 |
||
44 |
||
167 | 45 |
install: |
169
b3ecbec2c487
Better installer and startup scripts.
Florian Pose <fp@igh-essen.com>
parents:
167
diff
changeset
|
46 |
@./install.sh $(KERNEL) $(DEVICEINDEX) |
167 | 47 |
|
73
9f4ea66d89a3
Dynamische FMMU-Konfiguration, zwei Kopieroperationen eingespart, Einr?ckungen angepasst.
Florian Pose <fp@igh-essen.com>
parents:
71
diff
changeset
|
48 |
#------------------------------------------------------------------------------ |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
49 |
|
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
50 |
endif |