drivers/Makefile
changeset 10 67c739ece5d5
parent 9 144d220c8ca0
child 13 db0742533c10
equal deleted inserted replaced
9:144d220c8ca0 10:67c739ece5d5
    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 endif
    19 endif
    20 
    20 
    21 ifeq (.depend,$(wildcard .depend))
       
    22 include .depend
       
    23 endif
       
    24 
       
    25 CFLAGS = -O2 -Wall -Wuninitialized -D__KERNEL__ -DMODULE \
    21 CFLAGS = -O2 -Wall -Wuninitialized -D__KERNEL__ -DMODULE \
    26 	-I$(KERNELDIR)/include -D_RTAI -I$(RTAIDIR)/include \
    22 	-I$(KERNELDIR)/include -D_RTAI -I$(RTAIDIR)/include \
    27 	-I$(RTLIBDIR)/msr-include
    23 	-I$(RTLIBDIR)/msr-include
    28 
    24 
    29 ifdef CONFIG_SMP
    25 ifdef CONFIG_SMP
    30 	CFLAGS += -D__SMP__ -DSMP
    26 	CFLAGS += -D__SMP__ -DSMP
    31 endif
    27 endif
    32 
    28 
    33 MODULE = ecat_8139too.o
    29 MODULE = ecat_8139too.o
    34 OBJ = drv_8139too.o ec_device.o ec_master.o ec_slave.o ec_command.o ec_types.o
    30 OBJ = ec_device.o ec_master.o ec_slave.o ec_command.o ec_types.o
    35 SRC = $(OBJ:.o=.c)
    31 SRC = $(OBJ:.o=.c)
    36 
    32 
    37 #----------------------------------------------------------------
    33 #----------------------------------------------------------------
    38 
    34 
    39 all: .output_dirs .depend $(MODULE)
    35 all: .output_dirs .depend $(MODULE)
    59 
    55 
    60 clean:
    56 clean:
    61 	rm -f *.o *~ core .depend
    57 	rm -f *.o *~ core .depend
    62 
    58 
    63 #----------------------------------------------------------------
    59 #----------------------------------------------------------------
       
    60 
       
    61 ifeq (.depend,$(wildcard .depend))
       
    62 include .depend
       
    63 endif
       
    64 
       
    65 #----------------------------------------------------------------