drivers/Makefile
changeset 13 db0742533c10
parent 10 67c739ece5d5
child 16 f04e93b8af0f
equal deleted inserted replaced
12:920e3b41a61f 13:db0742533c10
    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 CFLAGS = -O2 -Wall -Wuninitialized -D__KERNEL__ -DMODULE \
    21 CFLAGS = -O2 -Wall -Wuninitialized -D__KERNEL__ \
    22 	-I$(KERNELDIR)/include -D_RTAI -I$(RTAIDIR)/include \
    22 	-DMODULE -I$(KERNELDIR)/include
    23 	-I$(RTLIBDIR)/msr-include
       
    24 
    23 
    25 ifdef CONFIG_SMP
    24 ifdef CONFIG_SMP
    26 	CFLAGS += -D__SMP__ -DSMP
    25 	CFLAGS += -D__SMP__ -DSMP
    27 endif
    26 endif
    28 
    27 
    29 MODULE = ecat_8139too.o
    28 MODULE = ecat_8139too.o
    30 OBJ = ec_device.o ec_master.o ec_slave.o ec_command.o ec_types.o
    29 OBJ = drv_8139too.o ec_device.o ec_master.o \
       
    30 	ec_slave.o ec_command.o ec_types.o
    31 SRC = $(OBJ:.o=.c)
    31 SRC = $(OBJ:.o=.c)
    32 
    32 
    33 #----------------------------------------------------------------
    33 #----------------------------------------------------------------
    34 
    34 
    35 all: .output_dirs .depend $(MODULE)
    35 all: .output_dirs depend $(MODULE)
    36 
    36 
    37 $(MODULE): $(OBJ)
    37 $(MODULE): $(OBJ)
    38 	$(LD) -r $(OBJ) -o $@
    38 	$(LD) -r $(OBJ) -o $@
    39 
    39 
    40 .c.o:
    40 .c.o:
    48 	@echo "| Kernel $(KERNELDIR)"
    48 	@echo "| Kernel $(KERNELDIR)"
    49 	@echo "| RTAI   $(RTAIDIR)"
    49 	@echo "| RTAI   $(RTAIDIR)"
    50 	@echo "| RT_lib $(RTLIBDIR)"
    50 	@echo "| RT_lib $(RTLIBDIR)"
    51 	@echo "x----------------------------"
    51 	@echo "x----------------------------"
    52 
    52 
    53 .depend:
    53 .depend depend dep:
    54 	$(CC) $(CFLAGS) -M $(SRC) > .depend
    54 	$(CC) $(CFLAGS) -M $(SRC) > .depend
    55 
    55 
    56 clean:
    56 clean:
    57 	rm -f *.o *~ core .depend
    57 	rm -f *.o *~ core .depend
    58 
    58