drivers/Makefile
author Florian Pose <fp@igh-essen.com>
Fri, 13 Jan 2006 13:44:22 +0000
changeset 51 b3beaa00640f
parent 50 458e704afc6e
permissions -rw-r--r--
8139too: Immer alle Frames empfangen.
41
42c66194c0c8 Schoenheitskorrekturen.
Florian Pose <fp@igh-essen.com>
parents: 34
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
#  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
#
9
144d220c8ca0 Verbesserte Makefiles (Kernel-Verzeichnisse nicht mehr im SVN).
Florian Pose <fp@igh-essen.com>
parents: 6
diff changeset
     7
#  $Id$
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     8
#
41
42c66194c0c8 Schoenheitskorrekturen.
Florian Pose <fp@igh-essen.com>
parents: 34
diff changeset
     9
#------------------------------------------------------------------------------
0
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),)
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    12
41
42c66194c0c8 Schoenheitskorrekturen.
Florian Pose <fp@igh-essen.com>
parents: 34
diff changeset
    13
#------------------------------------------------------------------------------
22
e8c2cd004e0b Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents: 16
diff changeset
    14
# Kbuild-Abschnitt
6
e36a85dc2730 ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents: 5
diff changeset
    15
27
d75ef6b46e33 EtherCAT-Master in eigenes Modul ausgelagert.
Florian Pose <fp@igh-essen.com>
parents: 22
diff changeset
    16
obj-m := 8139too-ecat.o ecat-master.o
6
e36a85dc2730 ISR-Aufruf in read_process_data
Wilhelm Hagemeister <hm@igh-essen.com>
parents: 5
diff changeset
    17
27
d75ef6b46e33 EtherCAT-Master in eigenes Modul ausgelagert.
Florian Pose <fp@igh-essen.com>
parents: 22
diff changeset
    18
8139too-ecat-objs := 8139too.o
d75ef6b46e33 EtherCAT-Master in eigenes Modul ausgelagert.
Florian Pose <fp@igh-essen.com>
parents: 22
diff changeset
    19
41
42c66194c0c8 Schoenheitskorrekturen.
Florian Pose <fp@igh-essen.com>
parents: 34
diff changeset
    20
ecat-master-objs := ec_module.o ec_master.o ec_device.o ec_slave.o \
42
a22a202d0f42 Domains, Warten beim Senden, 10kHz.
Florian Pose <fp@igh-essen.com>
parents: 41
diff changeset
    21
			ec_command.o ec_types.o ec_domain.o
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    22
34
c1e8d61fa395 Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents: 27
diff changeset
    23
REV = `svnversion $(src)`
c1e8d61fa395 Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents: 27
diff changeset
    24
DATE = `date`
c1e8d61fa395 Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents: 27
diff changeset
    25
c1e8d61fa395 Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents: 27
diff changeset
    26
EXTRA_CFLAGS = -DEC_REV="$(REV)" -DEC_USER="$(USER)" -DEC_DATE="$(DATE)"
c1e8d61fa395 Compile-Informationen hinzugef?gt.
Florian Pose <fp@igh-essen.com>
parents: 27
diff changeset
    27
41
42c66194c0c8 Schoenheitskorrekturen.
Florian Pose <fp@igh-essen.com>
parents: 34
diff changeset
    28
#------------------------------------------------------------------------------
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    29
22
e8c2cd004e0b Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents: 16
diff changeset
    30
else
9
144d220c8ca0 Verbesserte Makefiles (Kernel-Verzeichnisse nicht mehr im SVN).
Florian Pose <fp@igh-essen.com>
parents: 6
diff changeset
    31
41
42c66194c0c8 Schoenheitskorrekturen.
Florian Pose <fp@igh-essen.com>
parents: 34
diff changeset
    32
#------------------------------------------------------------------------------
22
e8c2cd004e0b Portierung der Module in drivers/ und mini/ nach Kernel 2.6.
Florian Pose <fp@igh-essen.com>
parents: 16
diff changeset
    33
# Default-Abschnitt
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    34
50
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 45
diff changeset
    35
ifneq ($(wildcard ethercat.conf),)
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 45
diff changeset
    36
include ethercat.conf
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 45
diff changeset
    37
else
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 45
diff changeset
    38
KERNELDIR = /lib/modules/`uname -r`/build
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 45
diff changeset
    39
endif
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 45
diff changeset
    40
41
42c66194c0c8 Schoenheitskorrekturen.
Florian Pose <fp@igh-essen.com>
parents: 34
diff changeset
    41
modules:
50
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 45
diff changeset
    42
	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    43
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    44
clean:
50
458e704afc6e Makefiles verbessert.
Florian Pose <fp@igh-essen.com>
parents: 45
diff changeset
    45
	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
0
05c992bf5847 trunk, tags und branches
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    46
41
42c66194c0c8 Schoenheitskorrekturen.
Florian Pose <fp@igh-essen.com>
parents: 34
diff changeset
    47
#------------------------------------------------------------------------------
10
67c739ece5d5 depend-Sektion in den Makefiles korrigiert.
Florian Pose <fp@igh-essen.com>
parents: 9
diff changeset
    48
67c739ece5d5 depend-Sektion in den Makefiles korrigiert.
Florian Pose <fp@igh-essen.com>
parents: 9
diff changeset
    49
endif