Makefile
author Florian Pose <fp@igh-essen.com>
Fri, 16 Dec 2005 14:16:54 +0000
branchkernel2.6
changeset 34 c1e8d61fa395
parent 26 60435f959e5c
child 45 f525f7db2d90
permissions -rw-r--r--
Compile-Informationen hinzugef?gt.
12
920e3b41a61f "make kerneldirs" erstellt die Default-Datei kerneldirs.mk zum Editieren.
Florian Pose <fp@igh-essen.com>
parents: 0
diff changeset
     1
#----------------------------------------------------------------
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     2
#
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     3
#  Globales Makefile
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     4
#
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     5
#  IgH EtherCAT-Treiber
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     6
#
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     7
#  $Id$
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     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
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    18
26
60435f959e5c Serial-Debugger entfernt.
Florian Pose <fp@igh-essen.com>
parents: 22
diff changeset
    19
all: .drivers .rt .mini
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    20
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    21
doc docs:
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    22
	doxygen Doxyfile
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    23
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    24
.drivers:
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    25
	$(MAKE) -C drivers
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    26
16
f04e93b8af0f ?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents: 12
diff changeset
    27
ifeq ($(MAKE_RT),yes)
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    28
.rt:
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    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
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    34
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    35
.mini:
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    36
	$(MAKE) -C mini
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    37
22
e8c2cd004e0b Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents: 16
diff changeset
    38
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
    39
	@echo "# EtherCAT Konfigurationsdatei Kernel 2.6" > $(CONFIG_FILE)
16
f04e93b8af0f ?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents: 12
diff changeset
    40
	@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
    41
	@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
    42
	@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
    43
	@echo "RTLIBDIR  =" >> $(CONFIG_FILE)
16
f04e93b8af0f ?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents: 12
diff changeset
    44
	@echo >> $(CONFIG_FILE)
f04e93b8af0f ?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents: 12
diff changeset
    45
	@echo "MAKE_RT    = yes" >> $(CONFIG_FILE)
f04e93b8af0f ?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents: 12
diff changeset
    46
	@echo >> $(CONFIG_FILE)
f04e93b8af0f ?nderungen in den Makefiles.
Florian Pose <fp@igh-essen.com>
parents: 12
diff changeset
    47
	@echo "$(CONFIG_FILE) erstellt."
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    48
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    49
clean:
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    50
	$(MAKE) -C rt clean
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    51
	$(MAKE) -C drivers clean
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    52
	$(MAKE) -C mini clean
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    53
12
920e3b41a61f "make kerneldirs" erstellt die Default-Datei kerneldirs.mk zum Editieren.
Florian Pose <fp@igh-essen.com>
parents: 0
diff changeset
    54
#----------------------------------------------------------------