mini/Makefile
author Florian Pose <fp@igh-essen.com>
Mon, 20 Mar 2006 12:54:17 +0000
changeset 112 eec7639c7be9
parent 103 d2a8adde27c4
child 147 a355b587b4bc
permissions -rw-r--r--
Feldregistrierung: NULL als data_ptr m?glich, field_count 0 = 1.
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     1
#----------------------------------------------------------------
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
#  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
#  Minimales EtherCAT-Modul
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
#
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     9
#----------------------------------------------------------------
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    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
d2a8adde27c4 Konfigurations-Template.
Florian Pose <fp@igh-essen.com>
parents: 54
diff changeset
    14
#  Kbuild-Abschnitt
d2a8adde27c4 Konfigurations-Template.
Florian Pose <fp@igh-essen.com>
parents: 54
diff changeset
    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
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    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
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
#----------------------------------------------------------------
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    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
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    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
d2a8adde27c4 Konfigurations-Template.
Florian Pose <fp@igh-essen.com>
parents: 54
diff changeset
    26
#  Default-Abschnitt
d2a8adde27c4 Konfigurations-Template.
Florian Pose <fp@igh-essen.com>
parents: 54
diff changeset
    27
#----------------------------------------------------------------
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    28
50
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 46
diff changeset
    29
ifneq ($(wildcard ethercat.conf),)
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 46
diff changeset
    30
include ethercat.conf
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 46
diff changeset
    31
else
103
d2a8adde27c4 Konfigurations-Template.
Florian Pose <fp@igh-essen.com>
parents: 54
diff changeset
    32
KERNELDIR = /usr/src/linux
50
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 46
diff changeset
    33
endif
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 46
diff changeset
    34
46
f2d7a73d2f32 Makefiles nochmals verbessert.
Florian Pose <fp@igh-essen.com>
parents: 24
diff changeset
    35
modules:
50
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 46
diff changeset
    36
	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    37
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    38
clean:
50
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 46
diff changeset
    39
	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    40
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    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