author | Florian Pose <fp@igh-essen.com> |
Fri, 25 Nov 2005 16:43:46 +0000 | |
branch | kernel2.6 |
changeset 23 | 39364fbcd069 |
parent 22 | e8c2cd004e0b |
child 26 | 60435f959e5c |
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 |
|
920e3b41a61f
"make kerneldirs" erstellt die Default-Datei kerneldirs.mk zum Editieren.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
17 |
#---------------------------------------------------------------- |
0 | 18 |
|
19 |
all: .rs232dbg .drivers .rt .mini |
|
20 |
||
21 |
doc docs: |
|
22 |
doxygen Doxyfile |
|
23 |
||
24 |
.drivers: |
|
25 |
$(MAKE) -C drivers |
|
26 |
||
16
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
27 |
ifeq ($(MAKE_RT),yes) |
0 | 28 |
.rt: |
29 |
$(MAKE) -C rt |
|
16
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
30 |
else |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
31 |
.rt: |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
32 |
@echo "Skipping Real-Time." |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
33 |
endif |
0 | 34 |
|
16
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
35 |
ifeq ($(MAKE_RS232),yes) |
0 | 36 |
.rs232dbg: |
37 |
$(MAKE) -C rs232dbg |
|
16
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
38 |
else |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
39 |
.rs232dbg: |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
40 |
@echo "Skipping rs232dbg." |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
41 |
endif |
0 | 42 |
|
43 |
.mini: |
|
44 |
$(MAKE) -C mini |
|
45 |
||
22
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
46 |
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
|
47 |
@echo "# EtherCAT Konfigurationsdatei Kernel 2.6" > $(CONFIG_FILE) |
16
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
48 |
@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
|
49 |
@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
|
50 |
@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
|
51 |
@echo "RTLIBDIR =" >> $(CONFIG_FILE) |
16
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
52 |
@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
|
53 |
@echo "#GCC_SYSTEMDIR = /usr/lib/gcc-lib/i486-suse-linux/3.3/include" >> $(CONFIG_FILE) |
16
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
54 |
@echo >> $(CONFIG_FILE) |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
55 |
@echo "MAKE_RT = yes" >> $(CONFIG_FILE) |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
56 |
@echo "MAKE_RS232 = yes" >> $(CONFIG_FILE) |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
57 |
@echo >> $(CONFIG_FILE) |
f04e93b8af0f
?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents:
12
diff
changeset
|
58 |
@echo "$(CONFIG_FILE) erstellt." |
0 | 59 |
|
60 |
clean: |
|
61 |
$(MAKE) -C rt clean |
|
62 |
$(MAKE) -C drivers clean |
|
63 |
$(MAKE) -C rs232dbg clean |
|
64 |
$(MAKE) -C mini clean |
|
65 |
||
12
920e3b41a61f
"make kerneldirs" erstellt die Default-Datei kerneldirs.mk zum Editieren.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
66 |
#---------------------------------------------------------------- |