author | Florian Pose <fp@igh-essen.com> |
Mon, 03 Apr 2006 19:19:05 +0000 | |
changeset 149 | 0ed43f09130f |
parent 147 | a355b587b4bc |
child 195 | 674071846ee3 |
permissions | -rw-r--r-- |
0 | 1 |
#---------------------------------------------------------------- |
2 |
# |
|
3 |
# Makefile |
|
4 |
# |
|
5 |
# Minimales EtherCAT-Modul |
|
6 |
# |
|
7 |
# $Id$ |
|
8 |
# |
|
9 |
#---------------------------------------------------------------- |
|
10 |
||
22
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
11 |
ifneq ($(KERNELRELEASE),) |
5
6f2508af550c
Alle ?nderungen aus den Branches no_rtai und no_int nach Trunk portiert.
Florian Pose <fp@igh-essen.com>
parents:
0
diff
changeset
|
12 |
|
22
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
13 |
#---------------------------------------------------------------- |
103 | 14 |
# Kbuild-Abschnitt |
15 |
#---------------------------------------------------------------- |
|
9
144d220c8ca0
Verbesserte Makefiles (Kernel-Verzeichnisse nicht mehr im SVN).
Florian Pose <fp@igh-essen.com>
parents:
5
diff
changeset
|
16 |
|
54
7506e67dd122
Vereinheitlichte Schnittstellen, Include-Verzeichnis und Module getrennt.
Florian Pose <fp@igh-essen.com>
parents:
50
diff
changeset
|
17 |
obj-m := ec_mini.o |
0 | 18 |
|
54
7506e67dd122
Vereinheitlichte Schnittstellen, Include-Verzeichnis und Module getrennt.
Florian Pose <fp@igh-essen.com>
parents:
50
diff
changeset
|
19 |
ec_mini-objs := mini.o |
0 | 20 |
|
21 |
#---------------------------------------------------------------- |
|
22 |
||
22
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
23 |
else |
0 | 24 |
|
22
e8c2cd004e0b
Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents:
16
diff
changeset
|
25 |
#---------------------------------------------------------------- |
103 | 26 |
# Default-Abschnitt |
27 |
#---------------------------------------------------------------- |
|
0 | 28 |
|
50 | 29 |
ifneq ($(wildcard ethercat.conf),) |
30 |
include ethercat.conf |
|
31 |
else |
|
103 | 32 |
KERNELDIR = /usr/src/linux |
50 | 33 |
endif |
34 |
||
46
f2d7a73d2f32
Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents:
24
diff
changeset
|
35 |
modules: |
147
a355b587b4bc
Ausgaben verbessert, Mini-Modul angepasst.
Florian Pose <fp@igh-essen.com>
parents:
103
diff
changeset
|
36 |
$(MAKE) -C $(KERNELDIR) M=`pwd` |
0 | 37 |
|
38 |
clean: |
|
50 | 39 |
$(MAKE) -C $(KERNELDIR) M=`pwd` clean |
0 | 40 |
|
41 |
#---------------------------------------------------------------- |
|
10
67c739ece5d5
depend-Sektion in den Makefiles korrigiert.
Florian Pose <fp@igh-essen.com>
parents:
9
diff
changeset
|
42 |
|
67c739ece5d5
depend-Sektion in den Makefiles korrigiert.
Florian Pose <fp@igh-essen.com>
parents:
9
diff
changeset
|
43 |
endif |