rt/Makefile
changeset 103 d2a8adde27c4
parent 98 f564d0929292
child 181 3e9155836bc7
equal deleted inserted replaced
102:ddb355dd3e21 103:d2a8adde27c4
     1 #------------------------------------------------------------------------------
     1 #------------------------------------------------------------------------------
     2 #
     2 #
     3 # Makefile Echtzeitmodule
     3 #  Makefile Echtzeitmodule
     4 #
     4 #
     5 # $Id$
     5 #  $Id$
     6 #
     6 #
     7 #------------------------------------------------------------------------------
     7 #------------------------------------------------------------------------------
     8 
     8 
     9 ifneq ($(KERNELRELEASE),)
     9 ifneq ($(KERNELRELEASE),)
    10 
    10 
    11 #------------------------------------------------------------------------------
    11 #------------------------------------------------------------------------------
    12 # Kbuild-Abschnitt
    12 #  Kbuild-Abschnitt
       
    13 #------------------------------------------------------------------------------
    13 
    14 
    14 obj-m := msr_modul.o
    15 obj-m := msr_modul.o
    15 
    16 
    16 msr_modul-objs := msr_module.o \
    17 msr_modul-objs := msr_module.o \
    17 		rt_lib/msr-core/msr_lists.o \
    18 		rt_lib/msr-core/msr_lists.o \
    35 #------------------------------------------------------------------------------
    36 #------------------------------------------------------------------------------
    36 
    37 
    37 else
    38 else
    38 
    39 
    39 #------------------------------------------------------------------------------
    40 #------------------------------------------------------------------------------
    40 # Default-Abschnitt
    41 #  Default-Abschnitt
       
    42 #------------------------------------------------------------------------------
    41 
    43 
    42 ifneq ($(wildcard ethercat.conf),)
    44 ifneq ($(wildcard ethercat.conf),)
    43 include ethercat.conf
    45 include ethercat.conf
    44 else
    46 else
    45 KERNELDIR = /lib/modules/`uname -r`/build
    47 KERNELDIR = /usr/src/linux
    46 endif
    48 endif
    47 
    49 
    48 modules:
    50 modules:
    49 	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
    51 	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
    50 
    52