author | Florian Pose <fp@igh-essen.com> |
Fri, 06 Jan 2006 09:49:26 +0000 | |
changeset 45 | f525f7db2d90 |
parent 26 | 60435f959e5c |
child 46 | f2d7a73d2f32 |
permissions | -rw-r--r-- |
12
920e3b41a61f
"make kerneldirs" erstellt die Default-Datei kerneldirs.mk zum Editieren.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
1 |
#---------------------------------------------------------------- |
0 | 2 |
# |
3 |
# Globales Makefile |
|
4 |
# |
|
5 |
# IgH EtherCAT-Treiber |
|
6 |
# |
|
7 |
# $Id$ |
|
8 |
# |
|
12
920e3b41a61f
"make kerneldirs" erstellt die Default-Datei kerneldirs.mk zum Editieren.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
9 |
#---------------------------------------------------------------- |
920e3b41a61f
"make kerneldirs" erstellt die Default-Datei kerneldirs.mk zum Editieren.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
10 |
|
16
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
11 |
CONFIG_FILE = ethercat.conf |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
12 |
|
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
13 |
ifeq ($(CONFIG_FILE),$(wildcard $(CONFIG_FILE))) |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
14 |
include $(CONFIG_FILE) |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
15 |
endif |
12
920e3b41a61f
"make kerneldirs" erstellt die Default-Datei kerneldirs.mk zum Editieren.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
16 |
|
45
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
17 |
obj-m := drivers/ mini/ |
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
18 |
|
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
19 |
ifeq ($(MAKE_RT),yes) |
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
20 |
obj-m += rt/ |
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
21 |
endif |
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
22 |
|
12
920e3b41a61f
"make kerneldirs" erstellt die Default-Datei kerneldirs.mk zum Editieren.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
23 |
#---------------------------------------------------------------- |
0 | 24 |
|
45
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
25 |
all: |
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
26 |
$(MAKE) -C $(KERNELDIR) M=`pwd` modules |
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
27 |
|
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
28 |
clean: |
f525f7db2d90
Verbesserte Makefiles (MODPOST-Warnungen entfernt).
Florian Pose <fp@igh-essen.com>
parents:
26
diff
changeset
|
29 |
$(MAKE) -C $(KERNELDIR) M=`pwd` clean |
0 | 30 |
|
31 |
doc docs: |
|
32 |
doxygen Doxyfile |
|
33 |
||
22
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
34 |
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
|
35 |
@echo "# EtherCAT Konfigurationsdatei Kernel 2.6" > $(CONFIG_FILE) |
16
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
36 |
@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
|
37 |
@echo "KERNELDIR = /usr/src/linux" >> $(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 "RTAIDIR =" >> $(CONFIG_FILE) |
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
39 |
@echo "RTLIBDIR =" >> $(CONFIG_FILE) |
16
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
40 |
@echo >> $(CONFIG_FILE) |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
41 |
@echo "MAKE_RT = yes" >> $(CONFIG_FILE) |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
42 |
@echo >> $(CONFIG_FILE) |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
43 |
@echo "$(CONFIG_FILE) erstellt." |
0 | 44 |
|
12
920e3b41a61f
"make kerneldirs" erstellt die Default-Datei kerneldirs.mk zum Editieren.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
45 |
#---------------------------------------------------------------- |