author | Florian Pose <fp@igh-essen.com> |
Wed, 08 Mar 2006 13:23:56 +0000 | |
changeset 101 | b0c19892145a |
parent 84 | b4ae98855cea |
child 103 | d2a8adde27c4 |
permissions | -rw-r--r-- |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
1 |
#------------------------------------------------------------------------------ |
0 | 2 |
# |
3 |
# Globales Makefile |
|
4 |
# |
|
5 |
# IgH EtherCAT-Treiber |
|
6 |
# |
|
7 |
# $Id$ |
|
8 |
# |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
9 |
#------------------------------------------------------------------------------ |
12
920e3b41a61f
"make kerneldirs" erstellt die Default-Datei kerneldirs.mk zum Editieren.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
10 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
11 |
ifneq ($(KERNELRELEASE),) |
16
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
12 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
13 |
#------------------------------------------------------------------------------ |
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
14 |
# Kbuild-Abschnitt |
12
920e3b41a61f
"make kerneldirs" erstellt die Default-Datei kerneldirs.mk zum Editieren.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
15 |
|
71
79d7b9cfdeb9
Slave interface und Makefile ge?ndert.
Florian Pose <fp@igh-essen.com>
parents:
59
diff
changeset
|
16 |
obj-m := master/ devices/ |
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 |
#------------------------------------------------------------------------------ |
45
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
19 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
20 |
else |
0 | 21 |
|
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
22 |
#------------------------------------------------------------------------------ |
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
23 |
# Default-Abschnitt |
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
24 |
|
71
79d7b9cfdeb9
Slave interface und Makefile ge?ndert.
Florian Pose <fp@igh-essen.com>
parents:
59
diff
changeset
|
25 |
ifneq ($(wildcard ethercat.conf),) |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
26 |
include ethercat.conf |
71
79d7b9cfdeb9
Slave interface und Makefile ge?ndert.
Florian Pose <fp@igh-essen.com>
parents:
59
diff
changeset
|
27 |
else |
79d7b9cfdeb9
Slave interface und Makefile ge?ndert.
Florian Pose <fp@igh-essen.com>
parents:
59
diff
changeset
|
28 |
KERNELDIR := /usr/src/linux |
79d7b9cfdeb9
Slave interface und Makefile ge?ndert.
Florian Pose <fp@igh-essen.com>
parents:
59
diff
changeset
|
29 |
endif |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
30 |
|
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
31 |
modules: |
57 | 32 |
$(MAKE) -C $(KERNELDIR) M=`pwd` |
45
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
33 |
|
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
34 |
clean: |
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
35 |
$(MAKE) -C $(KERNELDIR) M=`pwd` clean |
0 | 36 |
|
22
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
37 |
config conf $(CONFIG_FILE): |
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
38 |
@echo "# EtherCAT Konfigurationsdatei Kernel 2.6" > $(CONFIG_FILE) |
16
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
39 |
@echo >> $(CONFIG_FILE) |
22
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
40 |
@echo "KERNELDIR = /usr/src/linux" >> $(CONFIG_FILE) |
16
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
41 |
@echo >> $(CONFIG_FILE) |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
42 |
@echo "$(CONFIG_FILE) erstellt." |
0 | 43 |
|
73
9f4ea66d89a3
Dynamische FMMU-Konfiguration, zwei Kopieroperationen eingespart, Einr?ckungen angepasst.
Florian Pose <fp@igh-essen.com>
parents:
71
diff
changeset
|
44 |
#------------------------------------------------------------------------------ |
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
45 |
|
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
45
diff
changeset
|
46 |
endif |