drivers/Makefile
changeset 16 f04e93b8af0f
parent 13 db0742533c10
child 22 e8c2cd004e0b
equal deleted inserted replaced
15:72d95aa70c1d 16:f04e93b8af0f
     6 #
     6 #
     7 #  $Id$
     7 #  $Id$
     8 #
     8 #
     9 #----------------------------------------------------------------
     9 #----------------------------------------------------------------
    10 
    10 
    11 KERNEL_DIRS_FILE = ../kerneldirs.mk
    11 CONFIG_FILE = ../ethercat.conf
    12 
    12 
    13 ifeq ($(KERNEL_DIRS_FILE),$(wildcard $(KERNEL_DIRS_FILE)))
    13 ifeq ($(CONFIG_FILE),$(wildcard $(CONFIG_FILE)))
    14 include $(KERNEL_DIRS_FILE)
    14 include $(CONFIG_FILE)
    15 else
    15 else
    16 KERNELDIR = /vol/projekte/msr_messen_steuern_regeln/linux/kernel/2.4.20/include/linux-2.4.20.CX1100-rthal5
    16 KERNELDIR = /vol/projekte/msr_messen_steuern_regeln/linux/kernel/2.4.20/include/linux-2.4.20.CX1100-rthal5
    17 RTAIDIR   = /vol/projekte/msr_messen_steuern_regeln/linux/kernel/2.4.20/include/rtai-24.1.13
    17 RTAIDIR   = /vol/projekte/msr_messen_steuern_regeln/linux/kernel/2.4.20/include/rtai-24.1.13
    18 RTLIBDIR = rt_lib
    18 RTLIBDIR  = rt_lib
       
    19 GCC_SYSTEMDIR = /usr/lib/gcc-lib/i486-suse-linux/3.3/include
    19 endif
    20 endif
    20 
    21 
    21 CFLAGS = -O2 -Wall -Wuninitialized -D__KERNEL__ \
    22 CFLAGS = -O2 -Wall -Wuninitialized -D__KERNEL__ \
    22 	-DMODULE -I$(KERNELDIR)/include
    23 	-DMODULE -I$(KERNELDIR)/include -nostdinc \
       
    24 	-isystem $(GCC_SYSTEMDIR)
    23 
    25 
    24 ifdef CONFIG_SMP
    26 ifdef CONFIG_SMP
    25 	CFLAGS += -D__SMP__ -DSMP
    27 	CFLAGS += -D__SMP__ -DSMP
    26 endif
    28 endif
    27 
    29