libec/Makefile
author Florian Pose <fp@igh-essen.com>
Thu, 26 Jan 2006 09:12:09 +0000
changeset 58 21b7342e2a90
parent 57 bae4965439b8
permissions -rw-r--r--
Code-Dokumentation mit Doxygen aufgearbeitet.
57
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     1
#------------------------------------------------------------------------------
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     2
#
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     3
#  Makefile
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     4
#
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     5
#  EtherCAT-Library
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     6
#
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     7
#  $Id$
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     8
#
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     9
#------------------------------------------------------------------------------
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    10
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    11
ifneq ($(KERNELRELEASE),)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    12
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    13
#------------------------------------------------------------------------------
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    14
# Kbuild-Abschnitt
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    15
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    16
lib-m := libec.o
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    17
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    18
#------------------------------------------------------------------------------
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    19
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    20
else
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    21
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    22
#------------------------------------------------------------------------------
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    23
# Default-Abschnitt
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    24
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    25
ifneq ($(wildcard ethercat.conf),)
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    26
include ethercat.conf
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    27
else
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    28
KERNELDIR = /lib/modules/`uname -r`/build
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    29
endif
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    30
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    31
modules:
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    32
	$(MAKE) -C $(KERNELDIR) M=`pwd`
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    33
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    34
clean:
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    35
	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    36
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    37
#------------------------------------------------------------------------------
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    38
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    39
endif
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    40
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    41